Monday, July 13, 2015

Renaming Website name in visual studio solution

1. Close the solution.
2. Open the following file
   C:\Users\s5142805\Documents\IISExpress\config\applicationhost.config

Remove sections for portal MexicoSRPortal.

remove
            <site name="MexicoSRPortal" id="13">
                <application path="/" applicationPool="Clr4ClassicAppPool">
                    <virtualDirectory path="/" physicalPath="C:\Development2012\Team_Singleview\Main\Source\SingleviewGlobal\Source\Websites\MexicoSRPortal" />
                </application>
                <bindings>
                    <binding protocol="http" bindingInformation="*:64510:localhost" />
                </bindings>
            </site>


remove
      <location path="MexicoSRPortal">
        <system.webServer>
            <security>
                <authentication>
                    <anonymousAuthentication enabled="false" />
                    <windowsAuthentication enabled="true" />
                </authentication>
            </security>
        </system.webServer>
    </location>

3. Edit solution file and open the solution.

Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "MexicoSRPortal", "Source\Websites\MexicoSRPortal", "{13AEC0A7-0CE1-41CD-A5A5-26F5DFE1D19D}"
ProjectSection(WebsiteProperties) = preProject
SccProjectName = "SAK"
SccAuxPath = "SAK"
SccLocalPath = "SAK"
SccProvider = "SAK"
TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.5"
ProjectReferences = "{a6cc4137-6344-4571-a6b8-4864f52e8721}|AMSCommonLibrary.dll;{8a598149-8ff0-44ab-8267-8613e81c7ea3}|AssetMgmtServicesLibrary.dll;{2b3994c0-8f07-4ee7-9d77-19edb667d204}|SingleviewGlobalLibrary.dll;{f5ac9c5c-58ff-4eeb-b178-d19345cfbfc7}|SmartstreamPOLibrary.dll;{146c8fc3-8104-4fd1-9716-42140a119279}|SmartstreamRequisitionLibrary.dll;"
Debug.AspNetCompiler.VirtualPath = "/MexicoSRPortal"
Debug.AspNetCompiler.PhysicalPath = "Source\Websites\MexicoSRPortal\"
Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\MexicoSRPortal\"
Debug.AspNetCompiler.Updateable = "true"
Debug.AspNetCompiler.ForceOverwrite = "true"
Debug.AspNetCompiler.FixedNames = "false"
Debug.AspNetCompiler.Debug = "True"
Release.AspNetCompiler.VirtualPath = "/MexicoSRPortal"
Release.AspNetCompiler.PhysicalPath = "Source\Websites\MexicoSRPortal\"
Release.AspNetCompiler.TargetPath = "PrecompiledWeb\MexicoSRPortal\"
Release.AspNetCompiler.Updateable = "true"
Release.AspNetCompiler.ForceOverwrite = "true"
Release.AspNetCompiler.FixedNames = "false"
Release.AspNetCompiler.Debug = "False"
VWDPort = "64510"
SlnRelativePath = "Source\Websites\MexicoSRPortal\"
EndProjectSection
EndProject

No comments:

Post a Comment