+ Reply to Thread
Results 1 to 8 of 8

Thread: IIS7 Error from web.config

  1. #1
    Barn Enthusiast Shem is on a distinguished road Shem's Avatar
    Join Date
    Mar 2008
    Posts
    305
    Rep Power
    4

    IIS7 Error from web.config

    Hi

    i'm working on vista now, which I now work with IIS7, i've setup my .Net
    and now have run my app for the first time.

    But I get a IIS7 error:
    Code:
    HTTP Error 500.19 - Internal Server Error
    The requested page cannot be accessed because the related configuration data for the page is invalid.
    
    and it's pointing to a line in my web.config: (in red)
    Code:
    <handlers>
    			<remove name="WebServiceHandlerFactory-Integrated"/>
    			<remove name="ScriptHandlerFactory"/>
    			<remove name="ScriptHandlerFactoryAppServices"/>
    			<remove name="ScriptResource"/>
    			<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    			<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    			<add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></handlers></system.webServer>
    
    But when I debugg from VS it runs fine, no errors?
    I have a '<handlers>' further up in my page that doesn't give an error, is
    this one just in the wrong place or something?

    Shem

  2. #2
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    Have a look here. Looks like something that you've installed has affected .NET in IIS

  3. #3
    Barn Enthusiast Shem is on a distinguished road Shem's Avatar
    Join Date
    Mar 2008
    Posts
    305
    Rep Power
    4

    I don't understand?
    I def do have .Net framework, it shows when i go to IIS?

  4. #4
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    I think if you read one of the links included in the thread you have to remove all instances of .NET in IIS and then reinstall using the windows tools add/remove wizard

  5. #5
    Barn Enthusiast Shem is on a distinguished road Shem's Avatar
    Join Date
    Mar 2008
    Posts
    305
    Rep Power
    4

    haven't a clue how to do that?
    I was just in IIS7 and don't see how to remove .Net anywhere...

    gona google it

  6. #6
    Barn Enthusiast Shem is on a distinguished road Shem's Avatar
    Join Date
    Mar 2008
    Posts
    305
    Rep Power
    4

    should anyone else have this problem, this is how you turn on ASP.NET
    in IIS7 on Vista platform:

    Install ASP.NET via the Windows Vista Control Panel. Select "Programs and Features" - "Turn on or off Windows features". Then open "Internet Information Services" - "World Wide Web Services" - "Application Development Features" and check "ASP.NET".
    Shem

    EDIT:
    Also your virtual directory must be converted to an application
    Last edited by Shem; August 21st, 2008 at 07:35 AM.

  7. #7
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    Moved to Microsoft IIS
    Last edited by richyrich; August 21st, 2008 at 07:24 AM.

  8. #8
    Barn Frequenter lewy is on a distinguished road lewy's Avatar
    Join Date
    Mar 2008
    Posts
    108
    Rep Power
    4

    I'm running IIS7 on vista
    Are you still having issues Shem?

+ Reply to Thread

Similar Threads

  1. Update sql connection string in web config
    By peebman2000 in forum .NET Development
    Replies: 5
    Last Post: April 18th, 2008, 01:23 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

SEO by vBSEO