NameValueCollection problem in Hello_map sample application

2 Messages Forum Options Options
Embed this topic
Permalink
padmini godavarthi
NameValueCollection problem in Hello_map sample application
Reply Threaded MoreMore options
Print post
Permalink
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.
Kenneth Skovhede, GEOGRAF A/S
Re: NameValueCollection problem in Hello_map sample application
Reply Threaded MoreMore options
Print post
Permalink
Does this help you?
http://www.mail-archive.com/mapguide-users@.../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.
>
>  
_______________________________________________
mapguide-users mailing list
mapguide-users@...
http://lists.osgeo.org/mailman/listinfo/mapguide-users