Profile:Object reference not set to an instance of an object
- by sallalman83
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