Profile:Object reference not set to an instance of an object

Posted by sallalman83 on Stack Overflow See other posts from Stack Overflow or by sallalman83
Published on 2009-08-06T21:14:22Z Indexed on 2010/03/11 4:55 UTC
Read the original article Hit count: 258

Hi, i just lunch my web site i used the asp.net routing technology on it, and its work fine in my localhost but when i moved the project to the hosting server(Godaddy.com) its just work fine when there is no virtual sub directories like this(havebreak.com)
but when u click on this link (havebreak.com/Registration/) or any other links that contain a virtual sub-directories its give Object reference not set to an instance of an object error on the profile object

if (!Profile.IsAnonymous) Line 18: mlvRegistratioin.ActiveViewIndex = 1;

i check my IIS settings and found it using the "Integrated pipeline" as recommended (at least at my knowledge), i checked the httpModules and httpHandlers tags under the system.webServer (since my hosting plan use the IIS7) and under the normal tag and every thing is fine

then i used the url-rewriting instead of URL-Routing and the same problem exist and i notice that the session also not working in the virtual sub-directories too

and by the way the ASP.NET routing work fine with my site its just the profile and session objects that not workin

any help will be appreciated

© Stack Overflow or respective owner

Related posts about profile

Related posts about object-reference