iis-express

IIS Express path to applicationhost.config in Visual Studio 2010

旧城冷巷雨未停 提交于 2019-12-24 05:30:30
问题 Is there a way to tell Visual Studio 2010 what value to use for the /config parameter when IIS Express is started? Using Process Explorer I can see: the iisexpress.exe process is started by Visual Studio with the /config parameter pointing to ' My Documents\IISExpress ' via the environment variable named IIS_USER_HOME . However I need to store my applicationhost.config in another location. Changing that IIS_USER_HOME variable might do the trick (?) but I don't know any way to access it. What

IHttpModule behaves differently on different servers

安稳与你 提交于 2019-12-24 03:42:54
问题 I'm developing an application and I'm debugging the code with Visual Studio 2013 and Visual Studio 2010 and the code behaves differently with the two programs. In VS 2010, after the code behind has been executed and the page has been built, the execution ends. In VS 2013, after the page has been built, it gets fired another call to the method context_BeginRequest(object sender, EventArgs e) in IHttpModule, which I have implemented. First problem is: why is there this additional call? Second

Start IIS Express without opening default site

醉酒当歌 提交于 2019-12-24 02:06:48
问题 When I launch my MVC4 project from Visual Studio 2012, IIS Express starts and then automatically launches the default page for the default site (i.e. the one I'm working on). How do I prevent it from opening the default page - is there a config option somwhere? 回答1: If you want to open a different file in your browser when you start then right-click on a file in your Solution Explorer and choose "Set as start page". To not do anything (i.e. just start IIS without invoking your browser) then

Windows Authentication doesn't work with IIS Express 10

荒凉一梦 提交于 2019-12-24 01:24:21
问题 At work we were forced into a hardware refresh where we went from a Windows 7 box with VS 2013 and IIS Express 6 to a Windows 10 box with VS 2017 and IIS Express 10. The problem is that Windows Authentication refuses to work. I get a 401.2 - Unauthorized with the explanation of "Invalid Authentication Headers". I've checked the web.config and the properties for the web project and they are correct. I've modified the applicationhost.config file in the .vs folder in the project to enable

Certificate private key throws CryptographicException under IIS Web Server

人走茶凉 提交于 2019-12-23 20:11:11
问题 In my ASP.NET application I'm loading a certificate from the certificate store: var myCert = CertificateUtils.GetCertificate("thumbprint"); This certificate contains a key pair which is used to decrypt the encrypted application settings. The certificate is installed in Personal certificate store under the Local Computer . It works well when the application is running under the IIS Express . But if I execute it under the full IIS Web Server , the myCert instance is missing the private key .

Unable to Add .net 3.5 Website to IIS Express

心已入冬 提交于 2019-12-23 20:01:02
问题 So, my issue is that I have a fairly large ASP.NET 3.5 project that I am trying to run locally using an IIS Express installation. I am one of many developers on my team who run this and other projects using IIS Express, and I actually run a .NET 4.0 site (complete with local SSL) on a daily basis with no issues. For reference, my machine runs Windows 7 Ultimate 64-bit with Microsoft Visual Studio 2010, and I am the administrator on the local machine. Visual Studio runs with administrative

Certificate private key throws CryptographicException under IIS Web Server

 ̄綄美尐妖づ 提交于 2019-12-23 19:50:08
问题 In my ASP.NET application I'm loading a certificate from the certificate store: var myCert = CertificateUtils.GetCertificate("thumbprint"); This certificate contains a key pair which is used to decrypt the encrypted application settings. The certificate is installed in Personal certificate store under the Local Computer . It works well when the application is running under the IIS Express . But if I execute it under the full IIS Web Server , the myCert instance is missing the private key .

Visual Studio 2010 iis express freezes when debugging multiple websites

左心房为你撑大大i 提交于 2019-12-23 18:38:08
问题 I have a Visual Studio 2010 solution in which I'm debugging two websites simultaneously. Not long after the debug is started and something throws an error, Visual Studio will freeze and I get the tray icon and message 'Visual studio is busy. Microsoft Visual Studio is waiting for an internal operation to complete. If you regularly encounter this delay during normal usage, please report this problem to Microsoft.' Sometimes I can Exit the iis express process through the tray icon and get

ASP.NET Core + IIS Express how to setup SSL Certificate

本秂侑毒 提交于 2019-12-23 17:41:25
问题 We are running a web API with ASP.NET Core on IIS Express locally. We are using a custom domain name configured in the hosts-file. This works fine, but we have to manually trust the site in Chrome every now and then, so we would like to set IIS Express up to use our SSL-certificate. IIS Express is configured in launchSettings.json: "iisExpress": { "applicationUrl": "http://applocal.ourdomain.com:5000", "sslPort": 44300 } How can we configure IIS Express to use our SSL Certificate? 回答1:

VS2013 cannot add WCF service reference in solution

我与影子孤独终老i 提交于 2019-12-23 12:47:16
问题 I just created a WCF web site .net 3.5, I think by creting a default one would be enough to replicate. yet it is defficult to replicate. I have VS2013 with all updates as downloaded from my MSDN and I have windows 8.1. I must say, that a few months ago I was having the issue in some machines, so the other ones heleped and I was assuming it was something related with the installation, but now it is appearing on 3 different machines, one of them with windows 8. all of them 64 bits. The service