asp.net - Why do I get a number in brackets on my web site project name? -
this curiosity/annoyance , not issue.
i have web forms web site project using vs 2013. somehow, project name includes (1) or (2) in name, have tried editing solution file, deleting other sites, rebuilding/cleaning etc, still cannot figure out gets (2) from.
solution file :
microsoft visual studio solution file, format version 12.00 # visual studio express 2013 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
you might have 2 sites same iis binding information. happens me if create, delete, re-create web site.
find iisexpress folder (mine in c:\users\brandon\documents\iisexpress), go config/applicationhost.config
find site name duplicate binding , remove <site>
node. 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>
Comments
Post a Comment