I am trying to convert a big website project to a web application project. The project was fine as website project but after i converted it into a web application project it started to give "Object reference not set to an instance of an object."
I resarched web for the convert proccess. Firstly i created an Empty Web Application. Then i gave the required referances to the new application and copied the old files to new project. I build again and select the Convert to Web Application.
The error occured when i tried to start, which is this
I thought it was from some global asax related issue and searched. I saw that i can't add global asax to a converted website and i moved the converted project to a brand new web application. I added the global asax, modified and build successfully but again, when i started the project it gave me the exact same error.
I followed it through a breakpoint. No problem with application start but it explodes on beginning of session start.
Can you please help me on this?