Deployment - how to deploy asp.net application in iis

Asked By abdul rehman on 30-Jun-12 07:19 AM
  i have asp.net application proj i want to deploy with database in iis to use intranet
when  i pasted proj in inetpub=>wwwroot folder and i have taken this path as physical
then its geeting 500.19 error saying that
please send any screen short any
where i done mistake any one please tell me

Error Summary

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 \\?\C:\inetpub\wwwroot\CampusInfoSystem\CampusInfoSystem\web.config
Requested URL http://localhost:80/Aboutus.aspx
Physical Path C:\inetpub\wwwroot\CampusInfoSystem\CampusInfoSystem\Aboutus.aspx
Logon Method Not yet determined
Logon User Not yet determined
Config Source
   86: 		</modules>
   87: 		<handlers>
   88: 			<remove name="WebServiceHandlerFactory-Integrated"/>
Vikram Singh Saini replied to abdul rehman on 30-Jun-12 07:53 AM
Follow steps:

The solution is to make a change in the applicationHost.config file.

  1. Browse to “C:\Windows\System32\inetsrv\config” (you will need administrator rights here)
  2. Open applicationHost.config
  3. Find the section that showed up in the “config source” part of the error message page. In your case it is
    <remove name="WebServiceHandlerFactory-Integrated"/> 
    
  4. Change the overrideModeDefault attribute to be “Allow”

Also check the links:

1. http://blog.thinkoriginally.com/2010/02/17/asp-net-config-error-this-configuration-section-cannot-be-used-at-this-path/

2. http://davefancher.com/2010/10/29/unlocking-configuration-sections-in-iis-7-x/

Super Man replied to abdul rehman on 30-Jun-12 01:35 PM
http://www.eggheadcafe.com/community/asp-net/17/10390635/deploy-the-application-on-iis.aspx
Lalit M replied to abdul rehman on 30-Jun-12 04:02 PM
Check user account you're using for your app pool doesn't have rights to the web site directory, so it can't read config from there. Check the app pool and see what user it is configured to run as. Check the directory and see if that user has appropriate rights to it.

OR

you can lock/unlock sections using appcmd

%windir%\system32\inetsrv\appcmd unlock config -section:system.webServer/handlers

check this link:-> http://learn.iis.net/page.aspx/145/how-to-use-locking-in-iis-configuration/

OR

Check htis link with screen shot will guide you :->

http://www.simple-talk.com/blogs/2011/01/17/resolving-iis7-http-error-500-19-internal-server-error/

http://blogs.msdn.com/b/benjaminperkins/archive/2012/05/03/custom-error-pages-http-error-500-19-internal-server-error.aspx
dipa ahuja replied to abdul rehman on 30-Jun-12 04:27 PM

Here’s what we need to keep in mind.

  1. Check the error code 0x80070032. You will need http://www.microsoft.com/downloads/details.aspx?familyid=be596899-7bb8-4208-b7fc-09e02a13696c&displaylang=en tool to see what the error code mean.  

      ERROR_NOT_SUPPORTED                       winerror.h 
    # The request is not supported. 

  2. Check the Config Error, it says the “The configuration section 'system.serviceModel' cannot be read because it is missing” and it is pointing to the web.config file.

I checked the web.config and found there is an entry for 'system.serviceModel' but I don’t have .net 3.0 installed on my Windows Server 2008 R2 server.

I enabled .net 3.5 from Server Manager –> Features –> Add Features 

http://www.dotnetscraps.com/dotnetscraps/image.axd?picture=WindowsLiveWriter/HTTPError500.19InternalServerErrorinII.5/6E89478F/image2.png

Things are looking much better now.


Source  : http://www.dotnetscraps.com/dotnetscraps/post/e2809cHTTP-Error-50019-Internal-Server-Errore2809d-in-IIS-7-75.aspx