Need help with asp.net, web.config, & <identity impersonate="true"> tag.
Posted on 2009-05-15
I no clue what to do about this problem. I am developing a web application which creates PDF documents on one server using data from a database on another server. The application impersonates a useraccount that was set up specifically for the application and noone else uses it. The application throws a 'Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object' whenever it trys to create a PDF document while impersonating a user. It throws the exception from the published version of the application on the server and from the development version on my laptop while impersonating the useraccount that was set up for the application and also while impersonating my own useraccount. I have full administrative rights in my company's domain. When I comment out the '<identity impersonate="true" userName=OMITTED password=OMITTED />' tag in the web.config file, the application works perfectly on my laptop while I'm logged on with my username. The people who will be using the final version of this application won't have the access rights necessary to that a possible solution to my problem, though, so I'm in desperate need of help.