FabriceB
01-11-2011, 08:16 PM
Hi!
I've been asked in my work place to complete a transition from ASP to ASP.NET. I am new to ASP.NET so this may very well be something simple that I just had no idea about. In either case, thanks for even looking at this.
Ok, that said, as mentioned, most of the reports we offer are in ASP but we had some existing reports in ASP.NET (2 of them more specifically).
So far what i've done is to first install the latest framework (4) on my system. From there, the issues began. The 2 application that use to run on my localhost no longer run.
To be as specific as I can, note that these 2 applications work just fine if I revert back to the 2.0 framework. :confused:
I get the following error message:
Overload resolution failed because no accessible 'parameters' accepts this number of arguments.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.MissingMemberException: Overload resolution failed because no accessible 'parameters' accepts this number of arguments.
Source Error:
Line 68: cmd.parameters.Add(New OleDbParameter())
Line 69: cmd.parameters.Add(New OleDbParameter())
Line 70: cmd.parameters(0).Value = "LOGON"
Line 71: cmd.parameters(1).Value = session("lan_id")
Line 72: cmd.parameters(2).Value = Session("SQLSession")
Source File: D:\zzzz_localdev\auth\basic.aspx Line: 70
I made a search on google for "New OleDbParameter" since I am unfamiliar with it and most of what I came accross had OleDbParameter() with the parameter being passed. Am I wrong to see this as the issue since the values for each parameters are precised afterword (as shown in line 70 and onwards)? (maybe there is a change from 2.0 to 4.0 which prevents the format of these statements of being used?)
Thanks in advance!
Fab
I've been asked in my work place to complete a transition from ASP to ASP.NET. I am new to ASP.NET so this may very well be something simple that I just had no idea about. In either case, thanks for even looking at this.
Ok, that said, as mentioned, most of the reports we offer are in ASP but we had some existing reports in ASP.NET (2 of them more specifically).
So far what i've done is to first install the latest framework (4) on my system. From there, the issues began. The 2 application that use to run on my localhost no longer run.
To be as specific as I can, note that these 2 applications work just fine if I revert back to the 2.0 framework. :confused:
I get the following error message:
Overload resolution failed because no accessible 'parameters' accepts this number of arguments.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.MissingMemberException: Overload resolution failed because no accessible 'parameters' accepts this number of arguments.
Source Error:
Line 68: cmd.parameters.Add(New OleDbParameter())
Line 69: cmd.parameters.Add(New OleDbParameter())
Line 70: cmd.parameters(0).Value = "LOGON"
Line 71: cmd.parameters(1).Value = session("lan_id")
Line 72: cmd.parameters(2).Value = Session("SQLSession")
Source File: D:\zzzz_localdev\auth\basic.aspx Line: 70
I made a search on google for "New OleDbParameter" since I am unfamiliar with it and most of what I came accross had OleDbParameter() with the parameter being passed. Am I wrong to see this as the issue since the values for each parameters are precised afterword (as shown in line 70 and onwards)? (maybe there is a change from 2.0 to 4.0 which prevents the format of these statements of being used?)
Thanks in advance!
Fab