How to Fix the “Server error in ‘/’ application” Error on a Cloud Server With Windows Server 2012

Introduction

Learn how to fix the “Server error in '/' application” error. This is an application error on the server that prevents the website from running. There are many possible causes for this error.
Often when this error appears, the error page will offer more information about the problem. It can be useful to copy and paste this error message into a search engine for more detailed results.
Some of the most common reasons for the "Server error in '/' application" error are as follows.
  • ..... Cloud Server running Windows Server 2012
  • ASP.NET installed
Restart IIS
This error can occur if IIS needs to be restarted. You can restart IIS from the IIS Manager.
From your Remote Desktop connection, click the Start button in the lower left-hand corner.

Requirements

Click the Start button
Next, click the Administrative Tools tile.
Click the Admin Tools tile
Click Internet Information Services (IIS) Manager to launch the IIS manager.
Click to launch IIS Manager
Select the server in the left-hand window pane.
Click to expand the server
On the left-hand side of the IIS Manager, click Restart to restart IIS.
Click to restart IIS

Update the URL

Under some circumstances, a 404 error may be displayed as "Server error in '/' Application." When this is the case, the Description section of the browser will clarify that the error has occurred because the file is missing or has been renamed.
404 Error
To fix this problem, correct the URL in the link that triggers this error.

Add the MIME Type

If you are accessing a file with a file extension that does not have permissions to be run on the server, you will receive this error along with the explanation that "This type of page is not served."
Type of page is not served
To fix this problem, first be sure that you are calling the correct file name. This problem can occur if there is a typo in the file extension, for example a file or URL that references test.htl instead of test.html.
If the file name is correct, then you may need to add the MIME type to the server. In the above example, we are trying to execute a file named Helloboss.cshtm1. The .cshtml file extension is not assigned to a MIME type on Windows 2012 by default.
You can add the MIME type in the IIS Manager. To open the IIS Manager, from your Remote Desktop connection, click the Start button in the lower left-hand corner.
Click the Start button
Next, click the Administrative Tools tile.
Click the Admin Tools tile
Click Internet Information Services (IIS) Manager to launch the IIS manager.
Click to launch IIS Manager
Click the server in the left-hand window pane.
Click to expand the server
Click Sites.
Click to expand sites
Then click on your domain. In the central pane, double-click MIME Types.
Double-click MIME Types
Under the Actions column on the right, click Add...
Click to add MIME type
In the pop-up window which appears, fill in the File name extension and MIME Typefields, then click OK. Note: You may need to do an Internet search to find the correct MIME Type for your file extension.
Add MIME Type pop-up window

Verify the .NET Version

Some programs, features, and file types will only run under certain versions of .NET.
You can check your .NET version from the IIS Manager. To open the IIS Manager from your Remote Desktop connection, click the Start button in the lower left-hand corner.
Click the Start button
)
Next, click the Administrative Tools tile.
Click the Admin Tools tile
Click Internet Information Services (IIS) Manager to launch the IIS manager.
Click to launch IIS Manager
Click to expand the server in the left-hand window pane.
Click to expand the server
Click Application Pools.
Click Application Pools
Right-click on the Domain Name and click on Basic Settings...
Click Basic Settings
In the pop-up window which appears, select the .NET version from the drop-down menu, then click OK to confirm your choice.
Select your .NET version

Related product you might see:

Share this product :
 
Support : Design and Created by | SAID WALI KHAN | IHSAS
Copyright © 2017. IT Solution & Courses - All Rights Reserved
Published by SAID WALI KHAN IHSAS
Proudly Powered by SAID WALI KHAN IHSAS