![]() |
IIS failure
When I tried to run your web app as a virtual directory under IIS I get the following error code message:
Cannot open database "PlanetWrox" requested by the login. The login failed. Login failed for user 'IIS APPPOOL\ASP.NET v4.0'. |
I forgot to mention
I forgot to mention, that the application runs fine when I run it in Cassini, but as soon as you deploy to IIS as part of virtual directory, and try to run it that way it throws an permissions error.
|
Hi there,
It's a permissions issue. The account used by the web server is not allowed to access the database. Check out Chapter 19 and Appendix for more details. Cheers, Imar |
I followed all the directions in your book on pages 718 thru 722 and I got the following error when I tried to browse this website:
Cannot open database "PlanetWrox" requested by the login. The login failed. Login failed for user 'NT AUTHORITY\NETWORK SERVICE'. |
Those steps deals with the file system, right? You error suggest a database error. The account used by the webserver is not allowed to access the database. Did you check out Appendix B?
If you did and it still doesnt't work I need more information such as the version of Windows and SQL Server you're using, how you set up the site in IIS, how you configured the database and so on. Imar |
Quote:
|
Yes, that's what I was referring to. The appendix shows you how security in SQL Server works, and then shows you how to attach and configure your database and then use it from a web application running under IIS.
Cheers, Imar |
Okay I will do that
I will follow those instructions. I just don't know if doing some of the things that are in the examples in chapter 19 of the book will have messed up my IIS settings or not. Thanks for the info.
|
The error you're getting can be fixed with the proper configuration as explained in Appendix B. And if not, you can always start over with Chapter 19 ... :-)
Imar |
The IIS problem
Quote:
|
All times are GMT -4. The time now is 07:49 PM. |
Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.