Go Back   DeveloperBarn Forums > Operating Systems, Servers & Software > Microsoft IIS

Sponsored Links

Discuss "IIS7 Error from web.config" in the Microsoft IIS forum.

Microsoft IIS - Learn how to install, setup and administer Microsoft Internet Information Server (IIS).


Reply « Previous Thread | Next Thread »  
 
LinkBack Thread Tools Display Modes
  #1  
Old August 21st, 2008, 05:22 AM
Shem's Avatar
Barn Enthusiast

 
Join Date: Mar 2008
Posts: 261
Thanks: 30
Thanked 5 Times in 5 Posts
Rep Power: 1
Shem is on a distinguished road
Default 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
Reply With Quote
Sponsored Links
  #2  
Old August 21st, 2008, 05:27 AM
richyrich's Avatar
Moderator


 
Join Date: Mar 2008
Location: Somewhere only we know...
Posts: 395
Thanks: 26
Thanked 32 Times in 32 Posts
Blog Entries: 1
Rep Power: 1
richyrich will become famous soon enough

Awards Showcase
Classic ASP JavaScript 
Total Awards: 2

Default

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

Comments on this post
Shem agrees: Thanked Post
Reply With Quote
The Following User Says Thank You to richyrich For This Useful Post:
Shem (August 21st, 2008)
  #3  
Old August 21st, 2008, 05:53 AM
Shem's Avatar
Barn Enthusiast

 
Join Date: Mar 2008
Posts: 261
Thanks: 30
Thanked 5 Times in 5 Posts
Rep Power: 1
Shem is on a distinguished road
Default

I don't understand?
I def do have .Net framework, it shows when i go to IIS?
Reply With Quote
  #4  
Old August 21st, 2008, 06:08 AM
richyrich's Avatar
Moderator


 
Join Date: Mar 2008
Location: Somewhere only we know...
Posts: 395
Thanks: 26
Thanked 32 Times in 32 Posts
Blog Entries: 1
Rep Power: 1
richyrich will become famous soon enough

Awards Showcase
Classic ASP JavaScript 
Total Awards: 2

Default

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
Reply With Quote
  #5  
Old August 21st, 2008, 06:15 AM
Shem's Avatar
Barn Enthusiast

 
Join Date: Mar 2008
Posts: 261
Thanks: 30
Thanked 5 Times in 5 Posts
Rep Power: 1
Shem is on a distinguished road
Default

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
Reply With Quote
  #6  
Old August 21st, 2008, 06:21 AM
Shem's Avatar
Barn Enthusiast

 
Join Date: Mar 2008
Posts: 261
Thanks: 30
Thanked 5 Times in 5 Posts
Rep Power: 1
Shem is on a distinguished road
Default

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

Quote:
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 06:35 AM.
Reply With Quote
  #7  
Old August 21st, 2008, 06:22 AM
richyrich's Avatar
Moderator


 
Join Date: Mar 2008
Location: Somewhere only we know...
Posts: 395
Thanks: 26
Thanked 32 Times in 32 Posts
Blog Entries: 1
Rep Power: 1
richyrich will become famous soon enough

Awards Showcase
Classic ASP JavaScript 
Total Awards: 2

Default

Moved to Microsoft IIS

Last edited by richyrich; August 21st, 2008 at 06:24 AM.
Reply With Quote
  #8  
Old August 21st, 2008, 09:30 PM
Barn Newbie

 
Join Date: Mar 2008
Posts: 40
Thanks: 0
Thanked 4 Times in 4 Posts
Rep Power: 1
lewy is on a distinguished road
Default

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

  DeveloperBarn Forums > Operating Systems, Servers & Software > Microsoft IIS

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Update sql connection string in web config peebman2000 .Net Development 5 April 18th, 2008 12:23 PM


All times are GMT -4. The time now is 04:45 PM.



Content Relevant URLs by vBSEO 3.2.0