Showing posts with label IIS. Show all posts
Showing posts with label IIS. Show all posts

Monday, November 16, 2015

IIS log location

%SystemDrive%\inetpub\logs\LogFiles
http://stackoverflow.com/questions/6426375/where-can-i-find-the-iis-logs
http://programming4.us/website/3684.aspx

Wednesday, November 4, 2015

IIS Express authentication changes

http://stackoverflow.com/questions/4762538/iis-express-windows-authentication

select project and press F4

Wednesday, October 21, 2015

IIS relative path

<div style="WIDTH: 100%" class="pageTitleSection"><A href="/">
      <img src="Images/logo.png">

if web site setup on virtual directory, you can use web browser F12 key console to see if it can load image file. 'Images" is a folder in the VS project directory,

below dose not work:
img src="../images/logo.png"
img src="/images/log.png"
img src="../../images/log.png"

below worked:
img src="Images/logo.png"
img src="./Images/logo.png"

Tuesday, September 8, 2015

The URL 'http://localhost:port#/' for Web project 'xxx' is configured to use IIS as the web server but the URL is currently configured on the IIS Express web server.

C:\xxx\yyy.vbproj : error  : The URL 'http://localhost:51854/' for Web project 'xxx' is configured to use IIS as the web server but the URL is currently configured on the IIS Express web server. To open this project, you must edit the 'C:\Users\zzz\Documents\IISExpress\config\applicationhost.config' file to change the port of the site currently using the URL in IIS Express.

http://rickgaribay.net/archive/2012/11/08/the-url-x-for-web-project-y-is-configured-to.aspx

To fix the above following section must be in project file.

 <ProjectExtensions>
    <VisualStudio>
      <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
        <WebProjectProperties>
          <UseIIS>False</UseIIS>
          <AutoAssignPort>True</AutoAssignPort>
          <DevelopmentServerPort>51854</DevelopmentServerPort>
          <DevelopmentServerVPath>/</DevelopmentServerVPath>
          <IISUrl>
          </IISUrl>
          <NTLMAuthentication>False</NTLMAuthentication>
          <UseCustomServer>False</UseCustomServer>
          <CustomServerUrl>
          </CustomServerUrl>
          <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
        </WebProjectProperties>
      </FlavorProperties>
    </VisualStudio>
  </ProjectExtensions>

Tuesday, July 28, 2015

Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive

http://www.codeproject.com/Questions/281518/Unrecognized-attribute-targetFramework-Note-that-a

Check the .NET version of Application pool in IIS. If application pool is running on .NET version 2 and the web.Config file specify .Net version 4, you get this error.
Note this may not be the only cause for your error. But check this.

Monday, July 27, 2015

ASP.NET Web Deployment using Visual Studio: Deploying to Test

http://www.asp.net/mvc/overview/deployment/visual-studio-web-deployment/deploying-to-iis

Wednesday, July 15, 2015

Unable to retrieve NT credentials. Make sure 'Anonymous Access' is disabled within IIS.

\Documents\IISExpress\config\applicationhost.config

  <authentication>

                <anonymousAuthentication enabled="false" userName="" />

                <basicAuthentication enabled="true" />

                <clientCertificateMappingAuthentication enabled="false" />

                <digestAuthentication enabled="false" />

                <iisClientCertificateMappingAuthentication enabled="false">
                </iisClientCertificateMappingAuthentication>

                <windowsAuthentication enabled="false">
                    <providers>
                        <add value="Negotiate" />
                        <add value="NTLM" />
                    </providers>
                </windowsAuthentication>

            </authentication>

Thursday, July 9, 2015

.webinfo file needed when Can't open my VS2003 project: The project you are trying to open is a Web project. You need...

Re: Can't open my VS2003 project: The project you are trying to open is a Web project. You need...

Mar 05, 2007 12:44 PM|LINK

    <Web URLPath = "http://localhost/Folder/fred.csproj" />
Folder is the application name of the  in the IIS manager website properties
ex. xyzService is the application name


VB.net

<VisualStudioUNCWeb>
    <Web URLPath = "http://localhost/xyzService/xyzServices.vbproj" />
</VisualStudioUNCWeb>




To fix this error all you need to do is add a webinfo file.  If your using VSS for source control, it's probably a good idea to add the webinfo file to SourceSafe as well as this is not done for you automatically.
If you have a project file c:\Inetpub\wwwroot\Folder\fred.csproj then you need a corresponding webinfo file fred.csproj.webinfo.  The contents of the webinfo file looks like this:
<VisualStudioUNCWeb>
    <Web URLPath = "http://localhost/Folder/fred.csproj" />
</VisualStudioUNCWeb>
When you go to add this web project to your solution file you actually don't specify “Add Existing Project From Web”, but simply “Add Existing Project”, then browse to c:\Inetpub\wwwroot\Folder\fred.csproj

Thursday, June 25, 2015

ERROR: Failed to backup website http://localhost

ERROR: Failed to backup website http://localhost/....

just delete that project from solution and added it back from the correct file folder.


Wednesday, June 24, 2015

Troubleshooting 503 "service unavailable" errors

http://mvolo.com/where-did-my-iis7-server-go-troubleshooting-503-quotservice-unavailablequot-errors/

Sunday, May 10, 2015

URL rewrite module


http://www.iis.net/learn/extensions/url-rewrite-module/using-the-url-rewrite-module






Sunday, January 18, 2015

Installing IIS Features

http://msdn.microsoft.com/en-us/library/hh167503(v=nav.71)