question

2956 avatar image
0 Votes"
2956 asked BruceZhang-MSFT commented

Server Error in '/' Application, Login failed for user 'Doamin\user$'

I am migrating a web application from one server to another new server. Everything is fine until I publish the project on the new server. After I logon I get a server error in '/' Application. The error message is:
Server Error in '/' Application. Login failed for user 'Domain\user$'. An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

I could logon if I run my ASP project "start without debugging". Any clue to fix it? Thanks.

windows-server-iisdotnet-aspnet-webforms
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @2956 ,

How you migrate the application? You need to figure out what the Domain\user$ used for. If it is used to login SQL Server, you need to check if it can login SQL Server directly in MS Server management. If it just a custom user, you need to check if it still exists in web.config. Web.config should has an item like this:` <identity impersonate="true" userName="domain\username" password=""/>`.

So you'd better check event viewer for more detailed stack trace message.

0 Votes 0 ·

0 Answers