iis-8

.Net MVC custom error page not working in IIS8

别等时光非礼了梦想. 提交于 2019-12-10 09:23:28
问题 I have an .NET MVC app which I'm having trouble getting my custom error pages working on a server with IIS 8. Throughout my application, I'm catching and throwing exceptions appropriately and displaying an message on my error page which is customized to their infraction. This is all working great locally when running the app through VS in debug and also when I config a site on my localhost in IIS (6.1). I then deployed it to a server with IIS 8 installed. Initially I was getting the nasty,

Retrieving the COM class factory for component with CLSID {688EEEE5-6A7E-422F-B2E1-6AF00DC944A6} failed

感情迁移 提交于 2019-12-09 16:22:11
问题 I am creating application which stop the IIS Default Web Site. I used a PowerShell script to stop website because that script is executed form my website. This is my script: Import-Module C:\Windows\System32\WindowsPowerShell\v1.0\Modules\WebAdministration Stop-Website 'Default Web Site' my copy code Start-Website 'Default Web Site' And this is my C# code: PowerShell _PowerShell = PowerShell.Create(); Runspace rs = RunspaceFactory.CreateRunspace(); rs.Open(); _PowerShell.Runspace = rs;

Assign IIS SSL Certificate to Binding with Host Header using PowerShell

旧街凉风 提交于 2019-12-09 16:12:16
问题 I'm trying to assign a certificate to a HTTPS binding. Unfortunately, I get this error from PowerShell: new-item : Cannot create a file when that file already exists At line:3 char:56 + get-item -Path "cert:\localmachine\my\$cert" | new-item -path IIS:\SslBi ... + ~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [New-Item], Win32Exception + FullyQualifiedErrorId : System.ComponentModel.Win32Exception,Microsoft.PowerShell.Commands.NewItemCommand My PowerShell which I execute is:

Credentials for ServerManager.OpenRemote

╄→гoц情女王★ 提交于 2019-12-09 02:51:39
问题 I'm trying to use ServerManager.OpenRemote (from Microsoft.Web.Administration) but am unable to find documentation on how to give it different credentials from the current user. I tried SimpleImpersonation (from How do you do Impersonation in .NET?) and it gives me the same error: System.UnauthorizedAccessException - Retrieving the COM class factory for remote component with CLSID {2B72133B-3F5B-4602-8952-803546CE3344} from machine [...] failed due to the following error: 80070005 [...]."

IIS UrlRewrite is not working for IIS 8

怎甘沉沦 提交于 2019-12-08 23:35:44
问题 I have just moved my website to new computer which uses IIS 8 from one has IIS 7.5. All but URL rewriting is working well. there is no error message than "HTTP Error 404.0 - Not Found" which I got. What I've only recognized is, there is an entry like RewriteModule (%SystemRoot%\system32\inetsrv\rewrite.dll) in website>modules setting page but, IIS 8 one has no same module. Even though I added same module to IIS 8, It didn't work. I'll be glad if I can have some suggestion about how to solve

server DNS address could not be found - iis

99封情书 提交于 2019-12-08 19:23:33
问题 I added new site in IIS When I'm trying open site in browser it is showing DNS error trying to resolve it since 5 days but I'm unable to solve this issue. please help I'm using windows 10 OS 回答1: It's because the host name is not recognized by the DNS server that your browser is querying looking for the IP address. You can get around this by editing your hosts file at c:\windows\system32\drivers\etc\hosts (there is no file extension on this file). Here's a link explaining how to edit this

Asp.Net Application was not working when we deployed in IIS 8.0

試著忘記壹切 提交于 2019-12-08 14:01:54
问题 In Windows Server 2012 created simple Asp.Net using Visual studio 2012. Then I have deployed it in IIS 8.0. In IIS manger browse the deployed simple Asp.Net application, it was working fine when the sample Visual studio project is open. After closing the Visual studio project then we browse it from IIS manager option, the application was not working. Please provide the solution if you know about it. Note: The page can't be displayed error be occur. 回答1: Few Things you need to check for

How to install a ssl sertificate from diffrent server to my server,

做~自己de王妃 提交于 2019-12-08 10:58:19
问题 I want to create a website in my IIS server, (website already has ssl certificate). So i created a site, I have the certificate details which contains certificate, private key , CA certificate (all in one text file). I havent created a csr request for this, But i need to install this certififcate in my system. When i followed the steps in complete cerififcate request, first it got added, but when i refresh and came back it was gone. Please help me how to install certififcate from other server

How to programmatically set App Pool Identity on IIS 8

做~自己de王妃 提交于 2019-12-08 08:49:32
问题 I'm running Windows Server 2012 with IIS 8. I have IIS 6 Metabase Compatibility installed. I have been trying to figure out how to change the App Pool Identity for IIS 8 with .Net 4.5 - all of the examples I found are for IIS 6 and 7. Here is what I have: public class InternetInformationServices { public void SetApplicationPoolIdentity(string appPoolName, string domain, string username, string password) { try { string metabasePath = "IIS://Localhost/W3SVC/AppPools"; DirectoryEntry myAppPool;

405 Error upon moving MVC 4 application and WCF service to IIS 8

早过忘川 提交于 2019-12-08 07:26:51
问题 Previously a MVC 4 application was hosted in windows 2003 server asp.net 4.0.30319 and the WCF Service was hosted there as well. Anonymous access was checked along with IUSR_ account and the checkbox for Integrated Windows Authentication. Now Upon moving the Website and Service both to Windows 2012 Server ( IIS 8 ) Hitting the Webservice works fine: http://exampleservicetest.test.com/Service.svc?wsdl Problem: Pulling up the website which calls the service returns a 405 error put below.