M
MattC
Hi,
In IIS I have anonymous access set to true and I have a user specifed for
IIS to use (MyAppUser). This user has access to my database.
I retrieve configuration data for my application when the app starts, I
placed my code in the Application_Start event method.
My connection string is (value="server=localhost; database=MyDB;
Trusted_Connection=true" ) and <identity impersonate="true" /> so IIS will
use MyAppUser as the account to try and conenct to the DB as. This works
fine if my code is placed in a Page but when I placed it in
Application_Start it trys to log on as ASPNET user.
Is this becasue the impersonation only takes effect once the Application has
started??
Some advice would be handy about now![Smile :) :)](/styles/default/custom/smilies/smile.gif)
Thanks in advance
MattC
In IIS I have anonymous access set to true and I have a user specifed for
IIS to use (MyAppUser). This user has access to my database.
I retrieve configuration data for my application when the app starts, I
placed my code in the Application_Start event method.
My connection string is (value="server=localhost; database=MyDB;
Trusted_Connection=true" ) and <identity impersonate="true" /> so IIS will
use MyAppUser as the account to try and conenct to the DB as. This works
fine if my code is placed in a Page but when I placed it in
Application_Start it trys to log on as ASPNET user.
Is this becasue the impersonation only takes effect once the Application has
started??
Some advice would be handy about now
![Smile :) :)](/styles/default/custom/smilies/smile.gif)
Thanks in advance
MattC