Last post Mar 18, 2010 10:53 AM by night_dog
Mar 07, 2010 07:14 AM|Hunzian|LINK
Hello All, <div></div> <div>I am using visual studio 2008 team system to test web application on Windows Vista Home Premium. I am unable to see the compiled pages in vs built in web server. I
get "Internet explorer cannot display webpage" error whenever i run any of the web site which i want to test. For the solution i followed the following steps</div> <div></div> <div>1. I reinstall asp.net by using the following command</div> <div>
%windir%\microsoft.net\framework\v2.0.50727\aspnet_regiis.exe -i -enable
2. i edited c:\windows\system32\drivers\etc\hosts file by commenting #::1 localhost and :::1 localhost and I also tried by completely removing the two lines.
3. I stopped windows firewall
4. I stopped avast antivirus
But still i am not able to solve the problem
Can any buddy tell me the solution.
Mar 07, 2010 08:53 AM|adeelehsan|LINK
Sometimes this is an issue due to the antivirus that blocks some ports and thus your server can not use those ports. See the following link, it might help you.
ASP .net 2. 0
Mar 07, 2010 11:02 AM|cnranasinghe|LINK
Check for any messengers (Skype, Yahoo etc ) working around. Disable and re register IIS with asp.net.
Mar 07, 2010 10:23 PM|Hunzian|LINK
Thanks for your reply. Well i uninstalled avast antivirus and still problem persists.
Mar 08, 2010 12:52 AM|cnranasinghe|LINK
Try using the internal browser rather than IE. To change to setting File>Browse With>Internal Web browser/
Mar 08, 2010 01:32 AM|alnaji|LINK
Try to open your page in other browser like (Mozilla FireFox)
Mar 08, 2010 02:35 AM|Hunzian|LINK
Thanks Singhe for your reply.
I tried to browse with internal broswer, google chrome, ie, firefox but no luck so far.
Mar 08, 2010 03:37 AM|alnaji|LINK
Try to reset settings of your visual studio 2008 Team System as follwing
go to the visual studio comand prompt and write this command
try it and let us see what will happend good luck
Mar 08, 2010 04:11 AM|Hunzian|LINK
Thank you very much for your reply i tried by resetting vs 2008 but no luck so far.
Mar 08, 2010 05:44 AM|Hunzian|LINK
I also tried to recreate "http://support.microsoft.com/kb/972034" host file but still no luck .
Mar 08, 2010 05:50 AM|night_dog|LINK
After you try to open the page can you check the "Application" event log? Are there any errors?
Mar 08, 2010 06:29 AM|Hunzian|LINK
Event code: 3008
Event message: A configuration error has occurred.
Event time: 3/8/2010 3:41:54 PM
Event time (UTC): 3/8/2010 11:41:54 PM
Event ID: 5ba3b83a27aa4b3cb857d321433e4f04
Event sequence: 2
Event occurrence: 1
Event detail code: 0
Application domain: /LM/W3SVC/1/ROOT-3-129125653136727092
Trust level: Full
Application Virtual Path: /
Application Path: C:\inetpub\wwwroot\
Machine name: J3FFREY-PC
Process ID: 2432
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception type: ConfigurationErrorsException
Exception message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. (C:\inetpub\wwwroot\OES\web.config
Request URL: http://localhost/oes/default.aspx
Request path: /oes/default.aspx
User host address: ::1
Is authenticated: False
Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread ID: 5
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)
at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors)
at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
at System.Configuration.BaseConfigurationRecord.GetSection(String configKey, Boolean getLkg, Boolean checkPermission)
at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
at System.Web.Configuration.RuntimeConfig.GetSectionObject(String sectionName)
at System.Web.Configuration.RuntimeConfig.GetSection(String sectionName, Type type, ResultsIndex index)
at System.Web.HttpApplication.AssignContext(HttpContext context)
at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
Mar 08, 2010 06:53 AM|night_dog|LINK
Mar 08, 2010 06:56 AM|alnaji|LINK
Try and check this link
Mar 09, 2010 06:30 AM|Hunzian|LINK
Thanks for the reply but i am facing the problem while running my application in built in web server in visual studio 2008.
Mar 09, 2010 06:52 AM|night_dog|LINK
What is the url displayed in the browser when it throws the error?
If it is something like http://localhost/oes/default.aspx - it is IIS website
If it has a port number like http://localhost:6413/oes/default.aspx - then you are definitely using the built-in webserver.
I'm asking you this because I saw that the url in the event log which you pasted is "http://localhost/oes/default.aspx". This means the request goes to IIS.
You can check the "Start options" when you right click - "Property Pages" on the website in VS solution explorer.
Mar 10, 2010 08:12 AM|Hunzian|LINK
Thank you very much for your reply.
Actually I had two problems one with the IIS and the other with the builtin asp.net development server in visual studio. I have solved the problem off IIS using your given links but the second problem still persists. The log was created IIS.
I still get the "page cannot be displayed" error when i browse my application using development server (builtin) in visual studio.
Mar 10, 2010 08:47 AM|cnranasinghe|LINK
Did you try hosting in a virtual server? According the error description, it is saying that problem with configuration. Are you sure that all setting in IIS are correct?
if not hosted on IIS you can check start up form from the solution explorer. Try changing the startup form by right clicking and set as startup.
Mar 16, 2010 02:02 PM|hollypatterns|LINK
This is why I use Chrome!! It is so much simpler and hardly has any problems!!
Mar 18, 2010 10:53 AM|night_dog|LINK
hollypatterns, this has nothing to do with the browser type.
Hunzian, if you made it work in iis you can setup the website to use this url in Visual studio:
Right click on the site, choose Property Pages, then select Start options. In Server section select Use custom server and for Base URL type your site for example: