Last post Jun 21, 2019 09:05 PM by bruce (sqlwork.com)
Jun 21, 2019 07:11 PM|ExceedingLife|LINK
I’m not sure why I been having these troubles but I have a site ready to be hosted. I am initially trying to host it on my windows 10 IIS machine to make sure everything is good before hosting it on the server I followed a few different tutorials and directions
movies and reading stuff to setup IIS and to do this. I published my site and created a new website in IIS. I linked the site directory with the new site I created in IIS. I set the application pool with the one I created. When I launch the site and browse
it I get an error permissions error. When I change the permissions to ISS_IUSRS of the web.config my site infinitely loads.
Any help would greatly be appreciated.
Jun 21, 2019 07:49 PM|Mikesdotnetting|LINK
I get an error permissions error.
Jun 21, 2019 09:00 PM|DA924|LINK
You can deploy the ASP.NET Web project to local IIS through Visual Stuido. In other words, you can develop code, debug code and test code with the project code bound to local IIS and disconnect from using IIS Express.
You may start off using IIS Express for the project, but at anytime, you can push the project out to local IIS and stop using IIS Express.
Jun 21, 2019 09:05 PM|bruce (sqlwork.com)|LINK
typically you need to set read permissions to IIS app folder for the the app pool account. if you allow anonymous, you will need to add the anonymous user account (specified in IIS site settings) to read access or static files (.js, .css, etc) will get permission
if you are connecting to sqlserver on a different box (recommended), then the app pool account needs to be a domain account with access to the database.