Unable to create a new web project in Visual Studio 2013

前端 未结 5 1187
悲哀的现实
悲哀的现实 2020-12-16 22:48

Background:

I am trying to use my office machine, where I have some limited rights, from home. All products are installed through when I was connect

相关标签:
5条回答
  • 2020-12-16 22:53

    I found this it in a strange manner! look for the IIS config file in my case it was. C:\Users\\OneDrive\Documents\IISExpress But accidentally my One Drive was paused. So it was able to access that files in the folder below. C:\Users\\OneDrive\Documents\IISExpress\config So just make sure IIS has access to configuration files.

    0 讨论(0)
  • 2020-12-16 22:59

    Please use the following path :

    Go to MyComputer>Documents>IISExpress>config>applicationhost.config

    Right click on applicationhost.config and go to "Properties" option. Now click advanced button and uncheck Encrypt contain security data.

    Hope this will solve your problem...!!! :)

    0 讨论(0)
  • 2020-12-16 23:00

    I had the similar issue could not even start a web project in vs 2013. None of solutions suggested worked

    So i tried the following

    Gave read & write permission to following folder

    C:\Program Files (x86)\IIS Express\config(default installation iisexpress8) made sure both subfolders schema and template have read & write access

    Then went in to schema folder and renamed asp net_schema.xml and ran iisexpress.exe from command prompt.

    It started iis express and successfully registered url "xxxx" for site "webisite1" application

    After that i quit iisexpress and renamed the schema file again to the old name.

    After that i had no issues starting a web project

    0 讨论(0)
  • 2020-12-16 23:04

    Alright - I am able to find the workaround.

    If you find this error coming then probably it is to do with the IISExpress or IIS configuration that you may not be able to control from home.

    The workaround that I have found is that:

    1. Create Project,
    2. System will not be able to attach the project, however it has been created. Then browse to that directory where the project has been created, and open the project file in the notepad or any editor.
    3. Make sure that <UseIISExpress>false</UseIISExpress>
    4. Before modifying further in the project file, Create a virtual directory in your IIS and point to the project path.
    5. find <WebProjectProperties> in your project file config.
    6. Define the virtual directory path under IISUrl.

    Your config file should look something like this:

    <WebProjectProperties>
              <UseIIS>True</UseIIS>
              <AutoAssignPort>True</AutoAssignPort>
              <DevelopmentServerPort>0</DevelopmentServerPort>
              <DevelopmentServerVPath>/</DevelopmentServerVPath>
              <IISUrl>http://localhost/YourAppAlias/</IISUrl>
              <NTLMAuthentication>False</NTLMAuthentication>
              <UseCustomServer>False</UseCustomServer>
              <CustomServerUrl>
              </CustomServerUrl>
              <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
            </WebProjectProperties>
    
    0 讨论(0)
  • 2020-12-16 23:17
    1. open C:\Program Files (x86)\IIS Express\config.
    2. open schema folder and rename ASPNET_schema (e.g ASPNET_schema1)
    3. copy in run and hit enter "C:\Program Files (x86)\IIS Express\iisexpress.exe" /userhome:c:\temp\iisexpress
    4. and you are all done. enjoy
    0 讨论(0)
提交回复
热议问题