Object reference not set to an instance of an object.

Topics: ASP.NET 2.0, Controls
Mar 25 at 12:13 PM
Edited Mar 25 at 12:20 PM
<siteMap>
Line 284: <providers>
Line 285: <add name="MySqlSiteMapProvider" type="MySql.Web.SiteMap.MySqlSiteMapProvider, MySql.Web, Version=6.9.6.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" connectionStringName="LocalMySqlServer" applicationName="/" />
Line 286: </providers>
Line 287: </siteMap>


When I tried to debugged and open it under VS 2013
it shows error here
private void BindMenu()
    {
        var sitemap = SiteMap.Providers["SecuritySiteMap"];
     }
Image
Apr 12 at 6:56 AM
any help here ?
Coordinator
Apr 12 at 7:56 PM
Do you have MySQL installed? Is this same version as in web.config? If not, did you try to change it to match the one installed?