Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

Publishing Codes in IIS

$
0
0

Hi,

I tried to publish  codes to the server(Windows Server 2012) and after deployment I tried to browse the site from IIS, I am getting the below error

HTTP Error 500.19 - Internal Server Error

The requested page cannot be accessed because the related configuration data for the page is invalid.

Detailed Error Information:

Module

IIS Web Core

Notification

BeginRequest

Handler

Not yet determined

Error Code

0x80070021

Config Error

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".

Config File

\\?\F:\TGSS\web.config

Requested URL

http://192.0.0.51:80/

Physical Path

F:\TGSS

Logon Method

Not yet determined

Logon User

Not yet determined

Config Source:

  114:     </defaultDocument>
  115:     <modules runAllManagedModulesForAllRequests="true" />    
  116:   </system.webServer>

I tried to solve the error by removing the line <modules runAllManagedModulesForAllRequests="true" /> from webconfig and i get the below error.

HTTP Error 404.3 - Not Found

The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.

Most likely causes:

It is possible that a handler mapping is missing. By default, the static file handler processes all content.

The feature you are trying to use may not be installed.

The appropriate MIME map is not enabled for the Web site or application. (Warning: Do not create a MIME map for content that users should not download, such as .ASPX pages or .config files.)

If ASP.NET is not installed.

Things you can try:

In system.webServer/handlers:

Ensure that the expected handler for the current page is mapped.

Pay extra attention to preconditions (for example, runtimeVersion, pipelineMode, bitness) and compare them to the settings for your application pool.

Pay extra attention to typographical errors in the expected handler line.

Please verify that the feature you are trying to use is installed.

Verify that the MIME map is enabled or add the MIME map for the Web site using the command-line tool appcmd.exe.

    1. To set a MIME type, use the following syntax: %SystemRoot%\windows\system32\inetsrv\appcmd set config /section:staticContent /+[fileExtension='string',mimeType='string']
    2. The variable fileExtension string is the file name extension and the variable mimeType string is the file type description.
    3. For example, to add a MIME map for a file which has the extension ".xyz": appcmd set config /section:staticContent /+[fileExtension='.xyz',mimeType='text/plain']

Warning: Ensure that this MIME mapping is needed for your Web server before adding it to the list. Configuration files such as .CONFIG or dynamic scripting pages such as .ASP or .ASPX, should not be downloaded directly and should always be processed through a handler. Other files such as database files or those used to store configuration, like .XML or .MDF, are sometimes used to store configuration information. Determine if clients can download these file types before enabling them.

Install ASP.NET.

Create a tracing rule to track failed requests for this HTTP status code. For more information about creating a tracing rule for failed requests, clickhere.

Detailed Error Information:

Module

StaticFileModule

Notification

ExecuteRequestHandler

Handler

StaticFile

Error Code

0x80070032

Requested URL

http://192.0.0.51:80/Login.aspx

Physical Path

F:\TGSS\Login.aspx

Logon Method

Anonymous

Logon User

Anonymous

 

I checked in one site for the solution and its given as below

I resolved this by doing an IIS ASP.Net re-install.   It wont break anything, it will just make sure all the file are in order.   Run CMD.exe as administrator   locate to  'C:\Windows\Microsoft.NET\Framework\v4.0.30319'... in DOS this would be 'cd C:\Windows\Microsoft.NET\Framework\v4.0.30319'  Once you have navigated to this folder, type in   aspnet_regiis -i   Press enter.

I tried it but still  I am facing the above error.

Can any one help me on this?


Viewing all articles
Browse latest Browse all 27852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>