0

I have a project that was created in another version of visual studio, however I have opened it in vs 2017. While the program maybe executing if I make any changes to a controller, nothing happens only revert to the old version of the project. I have done some research saw where they deleted the generated files form the framework, but still the changes doesn't seem to take effect. i don't what the problem what the issue :(

Applicationhost.config

<sites>
        <!-- <site name="WebSite1" id="1" serverAutoStart="true">
            <application path="/">
                <virtualDirectory path="/" physicalPath="%IIS_SITES_HOME%\WebSite1" />
            </application>
            <bindings>
                <binding protocol="http" bindingInformation=":8080:localhost" />
            </bindings>
        </site> -->
        <site name="com.twcl.it.isms" id="1">
            <application path="/" applicationPool="DefaultAppPool">
                <virtualDirectory path="/" physicalPath="C:\inetpub\wwwroot\TWCLIssuingManagementSystem" />
            </application>
            <bindings>
                <binding protocol="http" bindingInformation="*:80:localhost" />
            </bindings>
        </site>
        <siteDefaults>
            <logFile logFormat="W3C" directory="%IIS_USER_HOME%\Logs" />
            <traceFailedRequestsLogging directory="%IIS_USER_HOME%\TraceLogFiles" enabled="true" maxLogFileSizeKB="1024" />
        </siteDefaults>
        <applicationDefaults applicationPool="DefaultAppPool" />
        <virtualDirectoryDefaults allowSubDirConfig="true" />
    </sites>

1 Answer 1

1

Open up a command line prompt and enter this:

cd "C:\Program Files (x86)\IIS Express"
appcmd list site

Find you website name, and then enter this:

appcmd delete site YourWebsiteName

It should clear the IIS cache for that site. Good luck.

Sign up to request clarification or add additional context in comments.

14 Comments

SITE "WebSite1" (id:1,bindings:http/:8080:localhost,state:Unknown) the results I get
the website is stored in wwwroot folder
Run this then: appcmd delete site WebSite1
SITE object "WebSite1" deleted but that isn't the name of website
Delete these files then: %localappdata%\Microsoft\VisualStudio\Version_Num\ComponentModelCache If this helps you, please mark as answer
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.