Skip to main content
Home Forums Silverlight Programming Visual Studio & Silverlight Development Tools Visual Studio default web server issue
5 replies. Latest Post by MrCyprom on July 20, 2008.
(0)
MrCyprom
Member
256 points
112 Posts
07-16-2008 5:07 PM |
Hi,
my problem is strange. When I try to launch SL applications with the default Visual Studio WebServer, my browser (IE) can't display it.
But when I deploy this same application on IIS 7, it works fine. So I think I forgot something in the default web server configuration.
Has someboby met this problem ?
Regards.
PS : I am under Vista.
SteveWong
Contributor
6343 points
1,281 Posts
07-16-2008 9:29 PM |
What is the URL there in IE?
I think that should be the differences between localhost and 127.0.0.1
07-17-2008 1:27 AM |
You are right, when I execute the application the url is http://localhost:4151/... and it does not work. When I change manually to http://127.0.0.1:4151/... it works. Can I configure the cassini to be able to execute my application with the second url ?
Regards
07-17-2008 11:12 AM |
This is the only way I know: (I know it wont be a good method but it works)
If you want to test your project, you can disconnect your NetworkCable or disable the network card. Then you can successfully do the trick.
By the way, I did something different is to create the website on IIS directly in VS following the steps:
sladapter
All-Star
17439 points
3,172 Posts
07-17-2008 4:14 PM |
You can choose to use local IIS Server when you develop. Right Click your Web project goto the Properties page. Select Web Tab. On that Tab, on the Servers section select use IIS server instead of User Visual Studio Dev Server.
07-20-2008 12:55 PM |
I simply set a specific starting URL in Visual Studio Web application properties (http://127.0.0.1/...) to fix my problem.
Thank you for all your help.