IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsSystem AdministrationIIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 15th, 2012, 10:39 AM
jcgldr jcgldr is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2012
Posts: 1 jcgldr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 m 59 sec
Reputation Power: 0
Problem testing website on iis

hi i created a simple website on asp.net and i tested it and it works fine on visual studio but when i try to test it on iis it does not work it returns an error
I'm testing it on my laptop and i have the iis that is installed in window 7


Server Error in '/cse' Application.
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:

Line 15: </connectionStrings>
Line 16: <system.web>
Line 17: <compilation debug="true" strict="false" explicit="true" targetFramework="4.0" />
Line 18:
Line 19: <authentication mode="Forms">


Source File: C:\Users\jb\try\web.config Line: 17

looks like the problem is that my web config is set to net 4 and the iis application pool is set to 2 so i tried to change the application pool to 4 but it didn't help and it seems the page is still running on because on the bottom of the error it says

Version Information: Microsoft .NET Framework Version:2.0.50727.5420; ASP.NET Version:2.0.50727.5420

so maybe there is a different way to change the net

i also tried to change the config file to net 2 but it also failed to work

any ideas help?

Reply With Quote
  #2  
Old June 20th, 2012, 11:46 AM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Jun 2003
Posts: 14,239 Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 4 Weeks 15 h 17 m
Reputation Power: 4445
I don't have any suggestions, sorry. Often googling for the exact error message turns up help from others who have had similar problems.
__________________
======
Doug G
======
It is a truism of American politics that no man who can win an election deserves to. --Trevanian, from the novel Shibumi

Reply With Quote
  #3  
Old June 20th, 2012, 08:44 PM
dotnetmaster's Avatar
dotnetmaster dotnetmaster is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2009
Posts: 46 dotnetmaster User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 h 38 m 46 sec
Reputation Power: 5
Quote:
Originally Posted by jcgldr
hi i created a simple website on asp.net and i tested it and it works fine on visual studio but when i try to test it on iis it does not work it returns an error
I'm testing it on my laptop and i have the iis that is installed in window 7


Server Error in '/cse' Application.
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:

Line 15: </connectionStrings>
Line 16: <system.web>
Line 17: <compilation debug="true" strict="false" explicit="true" targetFramework="4.0" />
Line 18:
Line 19: <authentication mode="Forms">


Source File: C:\Users\jb\try\web.config Line: 17

looks like the problem is that my web config is set to net 4 and the iis application pool is set to 2 so i tried to change the application pool to 4 but it didn't help and it seems the page is still running on because on the bottom of the error it says

Version Information: Microsoft .NET Framework Version:2.0.50727.5420; ASP.NET Version:2.0.50727.5420

so maybe there is a different way to change the net

i also tried to change the config file to net 2 but it also failed to work

any ideas help?


It seems that you havent configured .net 4 properly. Please reinstall it again. If you see an error message, your site should be working on .net 4 version.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > Problem testing website on iis

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap