G
Guest
I'm calling a function in .NET (ASP/VB) this way:
If Not myFunction(var1, var2) Then
....
End If
myFunction is declared as: -
Function myFunction(var1 as String, var2 as String) As Boolean
...
End Function
I'm getting an error on the 1st line of code (the IF statement), the
error reads:
Collection is read-only.
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.NotSupportedException: Collection is
read-only.
Stack Trace:
[NotSupportedException: Collection is read-only.]
System.Collections.Specialized.NameValueCollection.Set(String name,
String value)
System.Collections.Specialized.NameValueCollection.set_Item(String
name, String value)
ASP.login_aspx.__Render__control1(HtmlTextWriter __output, Control
parameterContainer)
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
System.Web.UI.Control.Render(HtmlTextWriter writer)
System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
System.Web.UI.Page.ProcessRequestMain()
Any idea?
If Not myFunction(var1, var2) Then
....
End If
myFunction is declared as: -
Function myFunction(var1 as String, var2 as String) As Boolean
...
End Function
I'm getting an error on the 1st line of code (the IF statement), the
error reads:
Collection is read-only.
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.NotSupportedException: Collection is
read-only.
Stack Trace:
[NotSupportedException: Collection is read-only.]
System.Collections.Specialized.NameValueCollection.Set(String name,
String value)
System.Collections.Specialized.NameValueCollection.set_Item(String
name, String value)
ASP.login_aspx.__Render__control1(HtmlTextWriter __output, Control
parameterContainer)
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
System.Web.UI.Control.Render(HtmlTextWriter writer)
System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
System.Web.UI.Page.ProcessRequestMain()
Any idea?