Creating virtual directories in IIS express

IIS express configuration is managed by applicationhost.config. You can find it in Users\<username>\Documents\IISExpress\config folder. Inside you can find the sites section that hold a section for each IIS Express configured site. Add (or modify) a site section like this: <site name=”WebSiteWithVirtualDirectory” id=”20″> <application path=”https://stackoverflow.com/” applicationPool=”Clr4IntegratedAppPool”> <virtualDirectory path=”https://stackoverflow.com/” physicalPath=”c:\temp\website1″ /> </application> <application path=”/OffSiteStuff” applicationPool=”Clr4IntegratedAppPool”> <virtualDirectory path=”https://stackoverflow.com/” … Read more

How to fully clean bin and obj folders within Visual Studio?

As others have responded already Clean will remove all artifacts that are generated by the build. But it will leave behind everything else. If you have some customizations in your MSBuild project this could spell trouble and leave behind stuff you would think it should have deleted. You can circumvent this problem with a simple … Read more

Visual Studio 2015 or 2017 shows IntelliSense errors but solution compiles

I had thousands of intellisense errors and 0 build errors. After deleting .suo file and restarting VS intellisense errors are gone. Suo file is located relatively to source in: .vs\SolutionName\v14\.suo According to comment: Beware that *.suo is a hidden file. Edit: According to comments, VS2017 has the same issue, so you can use similar solution: … Read more

How do you tell the Visual Studio project type from an existing Visual Studio project

In the project XML files: Console applications contain: <OutputType>Exe</OutputType> WinForms applications contain: <OutputType>WinExe</OutputType> Library (.dll) projects contain: <OutputType>Library</OutputType> and do NOT contain a <ProjectTypeGuids> ASP.NET and WCF projects contain: <ProjectTypeGuids>{603c0e0b-db56-11dc-be95-000d561079b0};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids> <OutputType>Library</OutputType> The GUIDs do something to define exactly what type of project it is. The ones above were taken from an ASP.NET app. They exist … Read more

Hata!: SQLSTATE[08004] [1040] Too many connections