Click here to Skip to main content
15,884,473 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
Hi ,
Can anybody tell me how to host a web application on IIS7.5 in windows 7.

When I'm trying to do so. I'm getting following error.



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.

Please help.

Thank you.
Posted
Updated 6-Feb-13 21:42pm
v2
Comments
Joezer BH 29-Jan-13 1:11am    
Where are you getting the error?
and
What do you "how to create a URL"?
Nitish Arora - Web Developer(Learner) 29-Jan-13 2:52am    
what is the exactly thing you want ???

Do you need to create the URL using any lang. or IIS ???
Dee_Bee 29-Jan-13 4:09am    
I need to create URL using IIS 7.5
Michiel du Toit 6-Feb-13 8:06am    
You're going to have to provide more details on the error you're getting. Windows 7 has default settings in place that stops some standard IIS stuff from working by default - these settings just needed to be changed.

Some changes in your %windir%\Microsoft.NET\Framework\v____\config's files are required to allow application web.configs to enable HttpModules, etc - without knowing which your web app requires we can't point you in the right direction...
[no name] 7-Feb-13 4:48am    
http://www.dotnetfunda.com/articles/article1247-how-to-host-aspnet-application-on-the-web-server-iis.aspx

1 solution

Ahmm,

The message is saying that your configuration file is corrupt in some way. However it also says that it can't actually access the config file. So I'd ignore the original message about corruption/lack of validity as this is most likely just the effect of not being able to read the file due to a lack of authorization.

The reason it cannot read the config file is because the process running your web app does not have permission to access the file/directory. So you need to give the process running your web app those permissions.

The access rights should be fairly straightforward, i.e. at least Read, and, depending on your app, maybe Write.

The file web.config should only be accessible through your application.


Option:
Perhaps the asp.net account does not appear in the IIS manager, if so, in windows 7 follow the steps:

- Open control panel
- Click on” program” link (not uninstall programs)
- Click” turn windows features on/off” link
- locate” Internet Information services IIS” in the pop up window and expand its node
- Expand the” World Wide Web Service” node
- Expand “Application Development Features” node
- check the check box of”ASP.NET”
- Then click ok button


[by Intermension]

Cheers,
Edo
 
Share this answer
 
v3

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