Click here to Skip to main content
15,890,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,
I hosted my asp.net website in iis 5.1 it is working fine but when i hosted this site on ii7 seven in my laptop(windows vista) it generates error to view aspx pages html pages working fine but aspxpages does not open in iis seven.
In windows XP i just right click on my website folder choose properties and choose websharing it goes automatically in iis virtual directory. But in windows vista there is no option of websharing.

I observe i fail to set the username under directory security Tab in iis5.1 but i did not find in iis7.
And i did not find Asp.net version in iis7


The setting is quite different in iis7. Can anybody please explain it step by step.


Please help me.

Thanks in Advance.
Posted
Updated 7-Jul-11 21:11pm
v4
Comments
walterhevedeich 8-Jul-11 1:48am    
Whats the error message?
Sachin__Sharma 8-Jul-11 2:07am    
Server Error in '/Quickbrowse' 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 9:
Line 10: <system.web>
Line 11: <compilation debug="true" strict="false" explicit="true" targetframework="4.0">
Line 12: <authentication mode="Forms">
Line 13: <forms loginUrl="~/Account/Login.aspx" timeout="2880"/>


Source File: D:\Quickbrowse\Quickbrowse\web.config Line: 11

</pre>
Prerak Patel 8-Jul-11 2:18am    
Check framework version for your site in IIS.
Sachin__Sharma 8-Jul-11 2:25am    
How to check framework version for a site in IIS7?
Prerak Patel 8-Jul-11 2:29am    
You need to set it on app pool.

1 solution

Check the version of framework for your site.
IIS > Right click on WebSite > Properties > ASP.NET > Version
or from App Pool in IIS7

It should match the version of your project.

Ref:http://forums.asp.net/t/1491204.aspx/1/10[^]

http://forums.asp.net/t/1693259.aspx/1?How+to+change+ASP+NET+version+in+IIS7[^]
http://www.webcosmoforums.com/windows-server/21310-how-change-asp-net-version-iis-7-a.html[^]
 
Share this answer
 
v2
Comments
Sachin__Sharma 8-Jul-11 2:23am    
But in iis7 i did not find Right click on WebSite > Properties > ASP.NET > Version.
Prerak Patel 8-Jul-11 2:28am    
Check updated links.
Sachin__Sharma 8-Jul-11 2:41am    
Thanks for useful help.
Prerak Patel 8-Jul-11 2:42am    
You are welcome. If it is solved, mark it as answer.
arathi_suresh 8-Jul-11 2:41am    
Click Application Pools and Find the corresponding application pool that your web site/virtual directory use. By default there is a “DefaultAppPool” application pool.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900