Visual Studio using a local path when debugging pages

When I debug a page in VS2010, it sends the browser to the file: /// C: / Users / Chris / Documents / Visual Studio 2010 / Projects / Growing / Growing / Bin / Debug, not http: // localhost / . Does anyone know what happened to this? I don’t remember to change any settings for this and don’t know where to change it.

Greetings

0
source share
2 answers

Take a look at the settings in the Web.csproj file. If you open it in notepad (or upload it to the solution and right-click, edit ...), you can see the VisualStudio settings. I assume that you may need to update these settings.

Here are the settings for one of my SL projects that run from the local host.

<VisualStudio> <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}"> <WebProjectProperties> <UseIIS>False</UseIIS> <AutoAssignPort>True</AutoAssignPort> <DevelopmentServerPort>52878</DevelopmentServerPort> <DevelopmentServerVPath>/</DevelopmentServerVPath> <IISUrl>http://localhost/ExternalWeb</IISUrl> <NTLMAuthentication>False</NTLMAuthentication> <UseCustomServer>False</UseCustomServer> <CustomServerUrl> </CustomServerUrl> <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile> </WebProjectProperties> </FlavorProperties> </VisualStudio> 
0
source

I assume that a web project was created to host the Silverlight application, is this true? If so, you may have accidentally installed your Silverlight project as a startup project, not a web project. If you run it from IIS, you can go to it in your browser and see your application. Otherwise, the embedded web server in VS should start.

0
source

Source: https://habr.com/ru/post/1346555/


All Articles