Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

VS.NET 2008 Debug ASP.NET on VISTA with IIS7?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Asaf - 11 Mar 2008 19:11 GMT
Hello,

I have just installed VISTA Enterprise and VS.NET 2008.
When pressing F5 to debug my test ASP.NET website, IE 7 display the message
"Internet Explorer cannot display the webpage".
The local URL that VS.NET 2008 generates is
http://localhost:49705/aaa/Default.aspx.
In IIS7 Manager, ASP.NET V2.0… is "Allowed" in the ISAPI and CGI Restrictions.
Also IIS7 is working and display ASP.NET web sites if I convert them to IIS7
"Application" but I would like to use the Debug option.

Thanks in advanced for any help,
Asasf
Peter Bromberg [C# MVP] - 11 Mar 2008 20:15 GMT
That ":49705" port number looks more like you are hitting the VS 2008 Web
Development built in webserver, not IIS. Make sure your project is configured
to use IIS and that the /aaa/ folder is marked as an IIS application.
The resultand url would then resemble:
http://locahost/aaa/default.aspx
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short Urls & more: http://ittyurl.net

> Hello,
>
[quoted text clipped - 9 lines]
> Thanks in advanced for any help,
> Asasf
Asaf - 11 Mar 2008 20:59 GMT
Hi Peter,

Thanks for your answer.
I am confused now.
I don't want to use IIS for my ASP.NET applications so why VS.NET is using
http://localhost/ ?
When creating a new website I have set it to work on "File System" so it is
going to look for localhost?
Where can I configure to use VS.NET 2008 built in web server please?

Thanks,
Asaf

> That ":49705" port number looks more like you are hitting the VS 2008 Web
> Development built in webserver, not IIS. Make sure your project is configured
[quoted text clipped - 19 lines]
> > Thanks in advanced for any help,
> > Asasf
George Ter-Saakov - 11 Mar 2008 22:00 GMT
If you choosing "file system" then VS starts it's own internal web server.
That is the only way to run Web applications (through web server).

And if do not want to use IIS then you doing exactly what you want to do.

The only problem is that something is blocking browser requests to that
internal web server. Most likely it's antivirus software. Try to configure
it so it lets through the requests to that port.

George.

> Hi Peter,
>
[quoted text clipped - 37 lines]
>> > Thanks in advanced for any help,
>> > Asasf
Steven Cheng - 12 Mar 2008 02:08 GMT
Hi Asaf,

Yes, the url indicate that you're using the built-in ASP.NET server rather
than IIS server.  The error you saw in IE is a general one, here is a kb
article which provided some suggestion about troubleshooting this error:

http://support.microsoft.com/kb/926431

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we

can improve the support we provide to you. Please feel free to let my
manager know what you think of

the level of service provided. You can send feedback directly to my manager
at: msdnmg@microsoft.com.

==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>From: =?Utf-8?B?QXNhZg==?= <AG70@newsgroups.nospam>
>References:  <F31AF95E-F805-4C11-BB9C-53C06E260D72@microsoft.com>
<A5B50182-B44B-477B-BFC1-7C98A35C5A2D@microsoft.com>
>Subject: RE: VS.NET 2008 Debug ASP.NET on VISTA with IIS7?
>Date: Tue, 11 Mar 2008 12:59:11 -0700

>Hi Peter,
>
[quoted text clipped - 27 lines]
>> > http://localhost:49705/aaa/Default.aspx.
>> > In IIS7 Manager, ASP.NET V2.0�is "Allowed" in the ISAPI and CGI
Restrictions.
>> > Also IIS7 is working and display ASP.NET web sites if I convert them to IIS7
>> > "Application" but I would like to use the Debug option.
>> >
>> > Thanks in advanced for any help,
>> > Asasf
George Ter-Saakov - 11 Mar 2008 21:00 GMT
It looks like you hitting the internal web server in Visual studio. And not
IIS.

Also seems to be firewall/antivirus is blocking the request to
localhost:79705

Either allow it on firwall or use http and not local file system for your
project.

George.

> Hello,
>
[quoted text clipped - 12 lines]
> Thanks in advanced for any help,
> Asasf
Asaf - 11 Mar 2008 23:44 GMT
Hi,

I have disabled Vista Firewall and NOD32 Anti-Virus but still I can't load
my website pages to IE7 from VS.NET 2008.

Does the internal VS.NET 2008 web server is using http://localhost or
something else?

Is there some kind of a log that I can see what exactly it’s happening with
the IE7 when I try to debug?

Asaf

> It looks like you hitting the internal web server in Visual studio. And not
> IIS.
[quoted text clipped - 23 lines]
> > Thanks in advanced for any help,
> > Asasf
Asaf - 12 Mar 2008 00:05 GMT
Hi,

I have found that instead of http://localhost:49705/aaa/Default.aspx if I
change the localhost to 127.0.0.1 like this
http://127.0.0.1:49705/aaa/Default.aspx then it is working.

Is there a way to configure VS.NET to user 127.0.0.1 instead of localhost?

Asaf

> It looks like you hitting the internal web server in Visual studio. And not
> IIS.
[quoted text clipped - 23 lines]
> > Thanks in advanced for any help,
> > Asasf
Steven Cheng - 12 Mar 2008 08:54 GMT
Hi Asaf,

It seem that your Vista system has some problem with the "localhost" name's
resolving. I think you should fix this problem first. Here is a web thread
discussing on the same problem(localhost not work):

http://forums.vnunet.com/message.jspa?messageID=1023002

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we

can improve the support we provide to you. Please feel free to let my
manager know what you think of

the level of service provided. You can send feedback directly to my manager
at: msdnmg@microsoft.com.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>From: =?Utf-8?B?QXNhZg==?= <AG70@newsgroups.nospam>
>References:  <F31AF95E-F805-4C11-BB9C-53C06E260D72@microsoft.com>
<u0O8IK7gIHA.1208@TK2MSFTNGP03.phx.gbl>
>Subject: Re: VS.NET 2008 Debug ASP.NET on VISTA with IIS7?
>Date: Tue, 11 Mar 2008 16:05:00 -0700

>Hi,
>
[quoted text clipped - 33 lines]
>> > Thanks in advanced for any help,
>> > Asasf
Asaf - 12 Mar 2008 12:12 GMT
Hi,

I have found the solution.
Looking at hosts file I have found a second line like this:

::1             localhost

I have deleted this line and now every things works!

Thanks you all for your time and support.

Asaf

> Hi Asaf,
>
[quoted text clipped - 69 lines]
> >> > Thanks in advanced for any help,
> >> > Asasf
Steven Cheng - 13 Mar 2008 02:35 GMT
Thanks for your followup.

Glad that you've got it working.

Have a nice day!

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: =?Utf-8?B?QXNhZg==?= <AG70@newsgroups.nospam>
>References:  <F31AF95E-F805-4C11-BB9C-53C06E260D72@microsoft.com>
<u0O8IK7gIHA.1208@TK2MSFTNGP03.phx.gbl>
<C3C923DC-C1B9-4C0D-AF24-959A72ADDF4B@microsoft.com>
<a1cKeZBhIHA.360@TK2MSFTNGHUB02.phx.gbl>
>Subject: Re: VS.NET 2008 Debug ASP.NET on VISTA with IIS7?
>Date: Wed, 12 Mar 2008 04:12:02 -0700

>Hi,
>
[quoted text clipped - 82 lines]
>> >> > Thanks in advanced for any help,
>> >> > Asasf
OneTime Use - 23 Mar 2008 00:58 GMT
I ran into the same issue after the Vista SP1 install in the 64 bit
version.  The address "::1" is the IPv6 version of localhost or
127.0.0.1.  It should NOT be removed from the hosts file if you're
running IPv6.

The fact that IE fails to dereference it properly looks like a bug.
Anyway, you're right, removing the entry will fix the problem for IPv4
just fine.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.