in the IIS manager, drill down to the web site, right-click it & choose properties.
Choose the Directory Security tab & click Edit under Anonymous access & authentication control.
Either put in a user name that has rights to the SQL server, or disable anonymous access and chose one or more of the authenticated access methods.
Main Topics
Browse All Topics





by: servoadminPosted on 2009-01-13 at 07:22:13ID: 23363565
http://mikeplate.wordpress .com/2006/ 11/24/runn ing-legacy -asp- scrip ts-on-vist a-and-iis- 70/
/en-us/lib rary/ aa984 236(VS.71) .aspx
vider=sqlo ledb;Data Source=(local);Initial Catalog=NorthWind;User Id=sa;Password=;
"
Mike,
Im going to add this information to your blog as it may help other people. Your site is one of the best in terms of describing whats going on with IIS 7 and Classic ASP.
You wrote: Regarding your comment on my blog post about asp scripts on Vista:
What I talked about there was only related to Microsoft Access databases, and probably have no relevance on a SQL Server connection. Your problem seems to be related to identity and integrated security (or lack thereof). The IIS process have the identity NT AUTHORITY\IUSR but that user does not have any permissions to the SQL Server. What identity IIS is running under can be configured, and that is probably what differs between your Vista machine and XP machine.
Im not sure if this information might help?
http://msdn2.microsoft.com
I kept playing around and I finally figured it out you are completely correct in that SQL Server 2000 had a different set of issues than Access under IIS. What I needed to do was to change the security mode from Windows to Windows & SQL Server (this is the mixed mode). This is available under the Enterprise Manager by right clicking on the server name under the SQL Server Group. The top half of the security tab will let an administrator change the authentication mode. I was then able to access the server with ASP by using the following connection string: conn.ConnectionString=Pro
I also tried creating other user names within the security settings of SQL Server and granted them the necessary permissions to the database and each was able to access it.
So in summary, I didnt need to change any permissions on the Temp directory nor did I need to change anything on the Application Pool in order to get Classic ASP to talk to SQL Server 2000 under IIS 7 and Vista. I just wanted to add this out here so that other people who are going through the same headache might have an easier time!
Thanks again Mike for all of the help and suggestions! It is really appreciated!!!!
"
Just for your information from one of the forums...