简体   繁体   中英

Deploying site to IIS server

I am developing a MVC site in VS 2013 using 4.6.1 Framework. I need to deploy the site to a Remote desktop IIS server.

But after deploying, The site responds with 503 error

Steps I followed: Created a application pool with version 4.0 To verify if IIS has 4.6.1 installed. Location: HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full and checked Release Data (has value 394271) Created a new site and converted it into an application. Created a new virtual directory and pasted the code from project into it (publish setup done).

Problem: When I try to access the site, It responds back with 503 and the app pool stops. I have disabled the App pool-> advanced setting ->Rapid-Fail protection -> Enabled to false But the app pool seems to stop still.

My error log Reason is AppOffline. I have gone through the code, (which when run on the local dev machine works great) but I am not sure how to identify the cause of the problem.

What are the possible causes for the above problem on IIS.

See This .

Your web pages are served by an application pool. If you disable/stop the application pool, and anyone tries to browse the application, you will get a Service Unavailable. It can happen due to many reasons,

  1. Your application may have crashed [check the event viewer and see if you can find event logs in your Application/System log]
  2. Your application may be crashing very frequently. If an app pool crashes for 5 times in 5 minutes [check your application pool settings for rapid fail], your application pool is disabled by IIS and you will end up getting this message.

In either case, the issue is that your worker process is failing and you should troubleshoot it from crash perspective.

Check this and this .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM