Showing posts with label IIS. Show all posts
Showing posts with label IIS. Show all posts

Thursday, September 1, 2022

(Solved) HTTP Error 503, the service is unavailable

Error Message:

HTTP Error 503, the service is unavailable

Reason:

This error occurring because of any of the following reasons,
  • The Application pool is stopped.
  • The server itself turned-off. 
  • The user identity which is running the application pool is outdated. The password might have changed.

Tuesday, November 12, 2019

(Solved) This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".

IIS Error Message:

This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".

Solution:
  1. Click "Start button"
  2. in the search box, enter "Turn windows features on or off"
  3. in the features window, Click: "Internet Information Services"
  4. Click: "World Wide Web Services"
  5. Click: "Application Development Features"
  6. Check (enable) the features.
It should be working now.

Thursday, December 1, 2016

(Solved) Error: Memory gates checking failed because the free memory (203841536 bytes) is less than 5% of total memory. As a result, the service will not be available for incoming requests. To resolve this, either reduce the load on the machine or adjust the value of minFreeMemoryPercentageToActivateService on the serviceHostingEnvironment config element.

Error: 

Memory gates checking failed because the free memory (203841536 bytes) is less than 5% of total memory. As a result, the service will not be available for incoming requests. To resolve this, either reduce the load on the machine or adjust the value of minFreeMemoryPercentageToActivateService on the serviceHostingEnvironment config element.

Solution:

  • To resolve this, either reduce the load on the machine or adjust the value of minFreeMemoryPercentageToActivateService on the serviceHostingEnvironment config element.
<system.serviceModel>
    <serviceHostingEnvironment minFreeMemoryPercentageToActivateService="0" />
</system.serviceModel>

(Solved) Error: You do not have permission to view this directory or page using the credentials you supplied (access denied due to Access Control Lists). Ask the Web server's administrator to give you access to 'C:\inetpub\wwwroot\...\Service.svc

Error:

You do not have permission to view this directory or page using the credentials you supplied (access denied due to Access Control Lists). Ask the Web server's administrator to give you access to 'C:\inetpub\wwwroot\...\Service.svc

Solution:

  • Give access permission to the "IUSR" in IIS. That should solved the problem.


Monday, August 29, 2016

(Solved) Error: Server.CreateObject Failed - Classic ASP in IIS

Error:
Server object error 'ASP 0177 : 800401f3' Server.CreateObject Failed

C:\INETPUB\WWWROOT\TestApp\AUTHENTICATION\../serverlib/global.asp, line 190

800401f3

Solution with Sample code:

  • Open the error file and go to the corresponding line (here 190)

if (!sleep.waiter) sleep.waiter = Server.CreateObject("WaitFor.Comp"); // error line
sleep.waiter.WaitForSeconds(sleepSeconds);

  • Get the Waitfor component file location.
  • Run command prompt as Administrator.
  • Execute the below command 

C:\Windows\system32> regsvr32 "C:\inetpub\wwwroot\TestApp\serverlib\components\WaitFor\waitfor.dll"

Note: WaitFor is a component used here.

Wednesday, October 21, 2015

(Solved) Error: Unable to make the session state request to the session state server

Error:

Unable to make the session state request to the session state server. Please ensure that the ASP.NET State service is started and that the client and server ports are the same.  If the server is on a remote machine, please ensure that it accepts remote requests by checking the value of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameters\AllowRemoteConnection.  If the server is on the local machine, and if the before mentioned registry value does not exist or is set to 0, then the state server connection string must use either 'localhost' or '127.0.0.1' as the server name.

Solution:

1. Go to Run command, type services.msc



2. Right click over the ASP.NET State Service and click Start or Restart if it is already Started.




Note:
You could set the service to automatic so that it will work after a reboot.

Thursday, October 8, 2015

(Solved) Error: Memory gates checking failed because the free memory (201310208 bytes) is less than 5% of total memory

Error:
Memory gates checking failed because the free memory (201310208 bytes) is less than 5% of total memory. As a result, the service will not be available for incoming requests. To resolve this, either reduce the load on the machine or adjust the value of minFreeMemoryPercentageToActivateService on the serviceHostingEnvironment config element.

Solution:
To solve the above error, Add or update the below line in the Web.Config file.
<system.serviceModel>
    <serviceHostingEnvironment minFreeMemoryPercentageToActivateService="0"/>
</system.serviceModel>
Read more about serviceHostingEnvironment
https://msdn.microsoft.com/en-us/library/ms731336(v=vs.110).aspx

Wednesday, August 19, 2015

(Solved) Error: 500 - Internal server error

Error: 500 - Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed.

Of course the above line makes no sense. We should return the detailed error to fix it.

To display the detailed error follow the below steps,
  • In Internet Information Services (IIS) Manager select your published site
  • In the right side windows double click the "Error Pages" icon
  • A list of errors will be displayed.
  • Right click and choose the "Edit Feature Setting" on the error status code "500"
  • Select the "Detailed Error" radio button
  • Click Ok
  • Run the application again. You will get the detailed error.


Monday, August 17, 2015

(Solved) Error: HTTP Error 401.3 - Unauthorized

HTTP Error 401.3 - Unauthorized
You do not have permission to view this directory or page because of the access control list (ACL) configuration or encryption settings for this resource on the Web server.
Solution:

In IIS,

  • Right Click the  published site -> Edit Permission
  • A dialog will open
  • In the security tab, "Group or user names" section check IUSER is there.
  • If not, click edit button below that section
  • Click the Add button in the dialog
  • Click Advanced button in the dialog
  • Click Find Now button in the dialog
  • In the Search results section select IUSER and click ok.
  • Now choose IUSER and give all the permission by clicking the check box's.

Wednesday, December 11, 2013

(Solved) Error: HTTP Error 404.3 - Not Found in IIS 7.5

Solution: 
  • Got to Control Panel -> Programs and Features -> Turn Windows features on or off
  • A popup window will be displayed
  • Navigate through the tree view Internet Information Services -> World Wide Web Services -> Application Development Features
  • Here check the ASP.NET , .NET Extensibility, ISAPI Extensions, ISAPI Filters checkboxes
  • Click OK
  • Go to Visual Studio Command prompt
  • Run the command : %windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -ir

(Solved) Error: HTTP Error 500.19 – Internal Server Error in IIS 7.5

Solution: 
  • Just check out the the Microsoft kb articles Click Here 
  • If you still can't find the solution just comment the web.config lines that's showing error.
  • It should work.


Wednesday, March 6, 2013

Default Web Site not found in IIS 7

I recently had a problem that i couldn't find the "Default Web Site" under Sites tree view in IIS 7 and i found the solution too.

To Solve this we have to re install the IIS and WAS (Windows Process Activation Service)
To do this,

  • Go to Control Panel
  • Make sure the View By filter is set to "Category"
  • Click the Program link
  • Under the Programs and Features click "Turn windows features on or off link"
  • A window will popup
  • There uncheck the Internet Information Services and Windows Process Activation Services checkbox
  • Restart the system
  • Then recheck the check box you have unchecked(IIS & WAS)
  • Now check the Default Web Site in IIS, that will be there!

Friday, March 1, 2013

(Solved) Error: 503 Service Unavailable in IIS7

Solution:

  • Go to IIS
  • Select the Application Pool in the left side
  • Select the application pool that you are using for your application
  • Start the application pool if its stopped

Tuesday, February 26, 2013

Set up ASP.NET web application default start up page in IIS 7.0

It's essential you need to set the starting page of your ASP.net application in IIS 7.0. hear i have provided the solution to do that

  • Go to IIS 7.0
  • Select the Published ASP.NET application
  • In the right side double click the Default document
  • There add your Start up page


(Solved) Error: HTTP Error 403.14 - Forbidden The Web server is configured to not list the contents of this directory.


When you publish a ASP.NET application in IIS 7.0 you may getting this error.

HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory.
To Solve this,

  • Add a Start up page for your published application in IIS.





(Solved) Error: Could not load file or assembly 'Oracle.DataAccess' or one of its dependencies. An attempt was made to load a program with an incorrect format.

When you publish a ASP.NET application in IIS you may getting this error.

"Could not load file or assembly 'Oracle.DataAccess' or one of its dependencies. An attempt was made to load a program with an incorrect format." To Solve this,


  • Go to IIS
  • Double click the Application Pool
  • Right click the application pool you are using for your application
  • Select Advanced Settings
  • There you can see Enable 32 bit Application set to False
  • Change that to True 
  • It will work now

Wednesday, January 23, 2013

Set up ASP.NET web application default page in IIS

It's essential to set the starting page of your ASP.net application in IIS. Here I have provided the solution to do that
  • Go to Start -> Run
  • Type "inetmgr" then press Enter
  • In the Default Web Site right click your web application then select Properties
  • Navigate to Documents tab
  • Add the page name with extension by clicking the add button
  • Press Apply

It will work now!

(Solved) Error: Unrecognized attribute 'targetFramework'.

Error:

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.

Source Error:
</controls>  
    </pages>  
    <compilation debug="true" targetFramework="4.0" />    
<authentication mode="Forms">  
Solution:
In IIS 5.1
  • Go to Start -> Run
  • Type "inetmgr" then press Enter
  • In the Default Web Site right click your web application then select Properties
  • Navigate to ASP.NET tab
  • Change the ASP.NET version to 4.0
  • Press Apply
  • It will work now