[mapguide-users] NameValueCollection problem in Hello_map sample application

Kenneth Skovhede, GEOGRAF A/S ks at geograf.dk
Wed Nov 12 03:38:07 EST 2008


Does this help you?
http://www.mail-archive.com/mapguide-users@lists.osgeo.org/msg07452.html

Regards, Kenneth Skovhede, GEOGRAF A/S



padmini godavarthi skrev:
> Hi iam using Mapguide opensource 2.0 ( with .Net 2.0 +IIS)
> i have a problem while running the hello_map sample application  
>   
>   i got an error that 
>
> Invalid argument(s):
> 	[0] = " "
> The string cannot be empty.
>
>  i got an error where it was happend .but i dont know the solution.
>
> By debugging the hello_map application i found that
> -------------------------------------------------------------------
>     NameValueCollection serverVars = Request.ServerVariables;
>     String platform = serverVars["SERVER_SOFTWARE"];
>     String queryStr = serverVars["QUERY_STRING"];
>
>     NameValueCollection requestParams = Request.HttpMethod == "GET" ?
> Request.QueryString : Request.Form;
>
>
> String mgSessionId = requestParams["SESSION"];
>     String mgLocale = requestParams["LOCALE"];
>     String mgMapName = requestParams["MAPNAME"];
> -------------------------------------------------------------------------------------------------
> in the above code i got platform as null, and queryStr as null and 
> requestParams as also nulls coming.
>
> plz tell me the  solution if anybody  Knows.
>
>
>
> Regards,
> Padmini.
>
>   


More information about the mapguide-users mailing list