I found a lot of articles on internet about "Deploying ASP.NET website on IIS 7.0" and now i know that how to do it. But unfortunately when i set website on the IIS, i get another error! At the first i got "IIS APPPOOL\TradeSite" error. but, when i changed IDENTITY of related Application Pools to LOCALSYSTEM it solved. After that i got new error message with this specification:
Server Error in '/' Application. Cannot open database "TradeSite" requested by the login. The login failed. Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.
please help me how to fix this problem.
i add sites with this method:
- copy published project to wwwroot folder of IIS
- Add new web site in IIS and Set their port to a unique port number ex:8090
- Change .Net framework version from 2.0 to integrated 4.0
- Change process model identity to LOCALSYSTEM from advance setting menu
that's it. it was all the work that i did.
also, I read somewhere that you should open an connection to SQL, i don't know was it a correct solution or not, but i did it but again nothing changed. Also i tested on both Server and Local IIS but the result was same.
it will be my pleasure that anyone help me on this issue.
Thanks in advance.