[Mono-list] Problems using System.Collections.Specialized.NameValueCollection Class
laas
laas.mono at gmail.com
Wed Oct 17 07:21:20 EDT 2007
Sorry !
The situation is the following:
1. I have a asp.net form in which user will enter data, i.e.
dataretreiver.aspx
2. The form sends data (POST) to another page, i.e. datahandler.aspx
3. In the datahandler.aspx page I create an object using the
Request.Formcollection as parameter:
MyObj x = new MyObj(Request.Form, ....)
4. The declaration of the MyObj class is inside a DLL that has been added as
reference to the project. In the main ctor the parameter is stored in a
local variable:
NameValueCollection mycoll = <the passed collection>
5. I call the saveData method of the x object:
x.saveData()
The SaveData method start a cycle such as the following one:
for (int k = 0; k < mycoll .Count; k++) {
string curName = mycoll.GetKey(k));
string curValue = mycoll.Get(k); <---- ***
....
I think that this *** is the point where the exception raises. But i don't
know why.
Bye
On 10/17/07, Robert Jordan <robertj at gmx.net> wrote:
>
> laas wrote:
> > Hi all,
> > I'm using the System.Collections.Specialized.NameValueCollection Class
> in
> > order to obtain all the data passed to an ASP.NET page via form
> submission
> > (the Class is used to represents the Request.Forms collection). In
> Windows
> > XP /IIS 6 I have no problems, but with mod_mono on apache (configured in
> > order to use xsp2 engine) I have the following error:
> >
> > http://pastebin.com/m1aa9e1e
> >
> > Can someone help me ?
>
> Please post some source code.
>
> Robert
>
> _______________________________________________
> Mono-list maillist - Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
--
[LAAS]
aka Salvatore
WebSite: http://www.laas02.org
YTSite: http://www.laas02.org/youtranslate
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20071017/5b09e50b/attachment.html
More information about the Mono-list
mailing list