locked
trouble with membership RRS feed

  • Question

  • User1215122619 posted

    OK here goes.

    I log on the the site and click on the membership link and get this error.

     

    Compiler Error Message: BC30455: Argument not specified for parameter 'data' of 'Public Shared Function uploadImage(title As String, albumid As Integer, data As System.IO.Stream) As Integer'.

    Source Error:

    Line 128:    Protected Sub UploadBtn_Click(ByVal sender As Object, ByVal e As System.EventArgs)
    Line 129:        Dim newimageid As Integer
    Line 130:        newimageid = ImageUtils.uploadImage(Title.Text, CInt("0" & AlbumList2.SelectedValue))
    Line 131:
    Line 132:        ImageId = newimageid


    Source File: c:\inetpub\wwwroot\Photos_FormPicker.ascx    Line: 130

     

    Stack trace

    Microsoft (R) Visual Basic Compiler version 8.0.50727.42
    for Microsoft (R) .NET Framework version 2.0.50727.42
    Copyright (c) Microsoft Corporation.  All rights reserved.

    c:\inetpub\wwwroot\Photos_FormPicker.ascx(130) : error BC30455: Argument not specified for parameter 'data' of 'Public Shared Function uploadImage(title As String, albumid As Integer, data As System.IO.Stream) As Integer'.

            newimageid = ImageUtils.uploadImage(Title.Text, CInt("0" & AlbumList2.SelectedValue))
              

    Thanks in advance. I'm a network guy not a programmer. This is beyond me.

     



     

    Tuesday, May 23, 2006 9:18 PM

All replies

  • User1215122619 posted

    Now I'm getting the same error when I try to add an Event.

    ????????????????????

    Wednesday, May 24, 2006 9:42 AM
  • User-1346905220 posted

    Looks like the Photos_FormPicker.ascx control has been incorrectly edited and the third argument removed. Line 130 should read:

    newimageid = ImageUtils.uploadImage(Title.Text, CInt(AlbumList2.SelectedValue), FileUpload1.FileContent)

    You can add an appostrophie before the current line to remark it out and then add the above line to make sure it works correctly. There is no performance penalty to do this as remarked lines are not compiled.

    Hope this helps.

    -Mike

    Wednesday, May 24, 2006 2:39 PM
  • User1215122619 posted

    You're the man Mike!

    That fixed it. I don't know what happened but that did the trick.

    Thanks

    Wednesday, May 24, 2006 7:21 PM