Why can I get the number in brackets in the project title of my website?

This is just curiosity / annoyance and not a problem.

I have a project website for a website using VS 2013. Somehow the project name includes the name (1) or (2) , I have tried to edit the solution file, delete all other sites, restore / clean, etc. .d., still can not understand where he gets (2) .

enter image description here

Solution File:

Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Express 2013 for Web VisualStudioVersion = 12.0.30501.0 MinimumVisualStudioVersion = 10.0.40219.1 Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "Site", "http://localhost:52806", "{5411FD57-5AFE-4A3A-9474-0DCD64C89003}" ProjectSection(WebsiteProperties) = preProject UseIISExpress = "true" TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.0" Debug.AspNetCompiler.VirtualPath = "/localhost_52806" Debug.AspNetCompiler.PhysicalPath = "..\..\..\..\..\..\Dropbox\Projects\Site\" Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost_52806\" Debug.AspNetCompiler.Updateable = "true" Debug.AspNetCompiler.ForceOverwrite = "true" Debug.AspNetCompiler.FixedNames = "false" Debug.AspNetCompiler.Debug = "True" Release.AspNetCompiler.VirtualPath = "/localhost_52806" Release.AspNetCompiler.PhysicalPath = "..\..\..\..\..\..\Dropbox\Projects\Site\" Release.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost_52806\" Release.AspNetCompiler.Updateable = "true" Release.AspNetCompiler.ForceOverwrite = "true" Release.AspNetCompiler.FixedNames = "false" Release.AspNetCompiler.Debug = "False" SlnRelativePath = "..\..\..\..\..\..\Dropbox\Projects\Site\" EndProjectSection EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {5411FD57-5AFE-4A3A-9474-0DCD64C89003}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {5411FD57-5AFE-4A3A-9474-0DCD64C89003}.Debug|Any CPU.Build.0 = Debug|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection EndGlobal 
+6
source share
3 answers

You may have two sites with the same IIS binding information. This usually happens to me if I create, delete, and then recreate a website.

Find your IISExpress folder (mine is in the C: \ Users \ brandon \ Documents \ IISExpress folder), then go to config / applicationhost.config

Find the name of your site with duplicate binding and delete the <site> node. It will look something like this.

 <site name="WEBSITENAME" id="21"> <application path="/" applicationPool="Clr2IntegratedAppPool"> <virtualDirectory path="/" physicalPath="C:\Users\...\YourProject" /> </application> <bindings> <binding protocol="http" bindingInformation="*:SomePortNumber:localhost" /> </bindings> </site> 
+8
source

I am using Visual Studio 2015 and I just deleted the .vs folder to my solution root. It contained .vs\config\applicationhost.config and .vs\mySolutionName\v14\.suo .

Editing one of these files, possibly deleting the old IIS Express binding or something else, can be a pretty good way. But hitting the .vs-folder folder and the reloading solution did the trick for me.

+5
source

Check My Documents\IISExpress\config\applicationhost.config with notepad or similar code; There must be one or more entries with site (x) .

[edit] Brandon beat me to him for 18 seconds ...

+2
source

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


All Articles