Posts

Setting IIS for https and domain

Image
  1.        Site Binding Type Host Name Port ID Address Binding In http   80 ·          ( All Unassigned)   http www.b2b.bce.net.au 80 *   http b2b.bce.net.au 80 *   https b2b.bce.net.au 443 *   https www.b2b.bce.net.au 443 * In SSL certificate, select its name   2.        Advance setting   3.        SSL Setting Client certificates: Ignore 4.        Redirect   Add rule -> Blank Rule We type a  Name  for the new rule and in the  Matched URL  section...

IIS Manager is showing empty list

Image
  Try command : 1. cd inetsrv 2. appcmd list sites 3. appcmd.exe list apppools 4. iisreset /status showing  Status for IIS Admin Service ( IISADMIN ) : Running   Status for Windows Process Activation Service ( WAS ) : Running   Status for Net.Msmq Listener Adapter ( NetMsmqActivator ) : Running   Status for Net.Pipe Listener Adapter ( NetPipeActivator ) : Start pending   Status for Net.Tcp Listener Adapter ( NetTcpActivator ) : Start pending   Status for World Wide Web Publishing Service ( W3SVC ) : Running  Checked the services.svc and these two services  Net.Tcp  and  Net.Pipe  are stuck at  Stating 5. iisreset /restart: to reset IIS IIS Manager is showing empty list - Stack Overflow - can back up your applicationhost.config and then try using other working configue file from other machine or other people.

Using Microsoft.Office.Interop.Word and Excel in ASP NET Web App

Image
 - If you are using Microsoft.Office.Interop.Word/Excel to parse to other format, it may work well in testing but will not work in real IIS server: Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)). Description:  An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details:  System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)). ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET h...

Make a website as a sub folder of an existed website in IIS

Image
I have website DOTNETAPI and deploy it into IIS with url http://www.domain.com (in my local: localhost:8080), now I want to make another web app run  as http://www.domain.com/Demo 1. Publish new website into a folder Demo (or whatever you want) 2. Copy this folder into subfolder of DONETAPI website  3. In Internet Information Manager (IIS), expand DOTNETAPI, right click on Demo -> Add Application 4. Then Browser this with url http://www.domain.com/Demo 5. You may face with an error [FileNotFoundException: Could not load file or assembly 'Microsoft.AspNet.TelemetryCorrelation' or one of its dependencies. The system cannot find the file specified.] System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type) +0 System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boo...

Required IIS components

  The IIS components listed below satisfy the minimum requirements to run the Web Adaptor. If other IIS components are enabled, they do not need to be removed. Web Server (World Wide web Services) Common HTTP Features Default Document Static Content Security Request Filtering Basic Authentication Windows Authentication Application Development .NET Extensibility 4.7 .NET Extensibility ASP.NET 4.6 ASP.NET ISAPI Extensions ISAPI Filters WebSocket Protocol Management Tools (Web Management Tools) IIS Management Console IIS 6 Management Compatibility IIS 6 Metabase Compatibility IIS Management Scripts and Tools Management Service .NET Framework 4.x Advanced Services: ASP.NET 4.x Can use command line: Dism.exe /online /enable-feature /all /featurename:IIS-ManagementConsole Dism.exe /online /enable-feature /featurename:IIS-WindowsAuthentication /featurename:IIS-WebServerMan...

IIS website access Network Resource

Image
  Set identity for Application pool: User name and password are valid account to access the resource network Then go to network resource, set full control for this user