Skip to main content

Microsoft Silverlight

Answered Question Visual Studio default web server issueRSS Feed

(0)

MrCyprom
MrCyprom

Member

Member

256 points

112 Posts

Visual Studio default web server issue

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.

Romain Jestin
Brainsonic The Rich Media Factory

SteveWong
SteveWong

Contributor

Contributor

6343 points

1,281 Posts

Re: Visual Studio default web server issue

 What is the URL there in IE?

I think that should be the differences between localhost and 127.0.0.1

Regards,
SteveWong (HongKong)
Please mark post as answer if they help you

Client App Dev

MrCyprom
MrCyprom

Member

Member

256 points

112 Posts

Re: Visual Studio default web server issue

Hi,

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

Romain Jestin
Brainsonic The Rich Media Factory

SteveWong
SteveWong

Contributor

Contributor

6343 points

1,281 Posts

Re: Re: Visual Studio default web server issue

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:

 

  1. You should have an IIS.
  2. Open VS and Click File->New->WebSite
  3. Then, choose HTTP to be your location
  4. enter http://localhost/MyWeb/ next to browse
  5. Choose ASP.Net WebSite and then press OK
  6. On the solution explorer, right click on the Solution'xxx'(1project)
  7. add a existing Silverlight project or add a new Silverlight project
  8. Link the Silverlight project onto the MyWeb
  9. Try to press F5 on your project

Regards,
SteveWong (HongKong)
Please mark post as answer if they help you

Client App Dev

sladapter
sladapter

All-Star

All-Star

17439 points

3,172 Posts

Re: Visual Studio default web server issue

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.

 

sladapter
Software Engineer
Aprimo, Inc

Please remember to mark the replies as answers if they answered your question

MrCyprom
MrCyprom

Member

Member

256 points

112 Posts

Answered Question

Re: Visual Studio default web server issue

Hi,

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.

Regards.

Romain Jestin
Brainsonic The Rich Media Factory
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities