[mapserver-users] Object reference not set to an instance of an object

Tamas Szekeres szekerest at gmail.com
Wed Jul 8 19:21:33 EDT 2009


Hi Suman,

I suspect
System.Configuration.ConfigurationManager.AppSettings[“C:/ms4w/Apache/htdocs/mapservertest/Addison.map”]
evaluates to null in your case, and therefore the ToString() operation on
the null reference is failing which problem is not related to the MapScript
library itself.

Best regards,

Tamas


2009/7/8 Suman Chatterjee <schatterjee at addisontx.gov>

>  Hi all,
>
> I am trying to develop an application in C# (VS2005) with mapscript. I saw
> the material of Paolo. But I am facing a problem
>
>
>
> In the line
>
>
>
> mapObj map= new
> mapObj(System.Configuration.ConfigurationManager.AppSettings[“C:/ms4w/Apache/htdocs/mapservertest/Addison.map”].toString())
>
>
>
> It is generating the error “ Object reference not set to an instance of an
> object”
>
>
>
> How can I correct this? If anyone helps me in correcting it, it will be
> great.
>
>
>
> Suman
>
>
>
>
>
> *******************************************************************************************************************
>
>
> This e-mail and any files or attachments transmitted with it contains
> Information that is confidential and privileged. This document may contain
> Protected Health Information (PHI) or other information that is intended
> only for the use of the individual(s) and entity(ies) to whom it is
> addressed. If you are the intended recipient, further disclosures are
> prohibited without proper authorization. If you are not the intended
> recipient, any disclosure, copying, printing, or use of this information is
> strictly prohibited and possibly a violation of federal or state law and
> regulations. If you have received this information in error, please delete
> it and notify Hamid Khaleghipour at 972-450-2868 immediately. Thank you.
>
>  *******************************************************************************************************************
>
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090709/60b71723/attachment.html


More information about the mapserver-users mailing list