FAQ Database Discussion Community


Couldn't determine an appropriate version of runtime to run

iis-express,asp.net-5,visual-studio-2015,dnvm
I just finished upgrading to beta4. My code compiles successfully with no errors/warnings but I am unable to launch my web api hosted in IIS Express (by hitting F5). I get the following error: Couldn't determine an appropriate version of runtime to run. See http://go.microsoft.com/fwlink/?LinkId=517742 for more information. Description: An...

How do you add a mime type when using ASP.NET vNext?

iis-express,asp.net-5
There's LOADS of information on how to add MIME types into a normal project. These include configuring IIS, or modifying the web.config. Both of these options are unavailable to me in vNext with IIS Express. I had a look at the schema to the project.json file and couldn't find anything...

Uploading a file to a directory inside your application folder VS2013

c#,visual-studio-2013,webforms,iis-express
While developing inside VS2013 using the built in IIS Express Web Server I created a Documents folder within my Application folder to upload files to. When trying to save a file I am using: string uploadedFile = @"C:\dev\myApps\Application1\Documents\uploadedFile.pdf"; file.SaveAs(uploadedFile ); I added full control permissions to the Documents folder for...

IIS High CPU Usage in Visual Studio 2013

iis,visual-studio-2013,iis-express
When we use Visual Studio 2013 for web development, we experience the following issues while debugging: Web application takes a very long time to load Client scripts take a long time to load CPU usage by the IIS worker process increases enormously while debugging the application Changing to a local...

Web Api 2 Controller behaves different in Visual Studio 2012 vs 2013, Authorize Attribute

visual-studio-2012,visual-studio-2013,asp.net-web-api2,iis-express,authorize-attribute
The exact, precise, .sln file which contains my MVC 5/ Web Api 2 web project behaves one way when I run it from the Visual Studio 2012 installation and behaves in an entirely different way when I run it from Visual Studio 2013. In particular, I have a CustomerController that...

Exposing localhost to the internet via tunneling (using ngrok): HTTP error 400: bad request; invalid hostname

asp.net,visual-studio-2012,asp.net-web-api,iis-express,ngrok
From previous versions of the question: (So there is this, which outlines pretty much what I've done so far...I've got the local IP working. Then I found ngrok, and apparently I don't need to connect via the IP.) What I am trying to do is expose my website running on...

IIS Express 8 vs. IIS

windows,visual-studio,iis,iis-express
I downloaded Visual Studio 2013 Express. I have IIS Express 8 Installed. Is it OK if I download IIS 7 or 8? Do I have to do anything to make Visual Studio 2013 work with IIS 7 or 8?...

Increasing max. request length in asp.net 5 (vNext)

asp.net,iis,iis-express,asp.net-5,asp.net-mvc-6
My problem is similar to the one described here: Maximum request length exceeded Since there is no web.config file in asp.net 5 (it is replaced by 'config.json' as far as I understand), how can one do this? Also, if anyone found any documentation on the new 'config.json' file, I would...

Run Web Service using IIS Express without Visual Studio

c#,asp.net,web-services,iis-express
I have created asmx web service in PC1. Now I have coped this project to some other PC2. I have installed only IIS Express and .NET Framework. I want to run web service in PC2 using IIS Express. Is it possible or not? Thanks!!...

IIS Express Does Not Seem to Be Picking Up Changes to applicationhost.config

asp.net,.net,visual-studio-2012,web-applications,iis-express
I followed the accepted answer to this question to try to get my .Net web application to run under a specific set of credentials when debugging locally via the IIS Express server running on my machine, however, I can't seem to get the changes to pick up. Admittedly, I have...

Can't get the OWIN Startup class to run in IIS Express after renaming ASP.NET project file

asp.net,asp.net-web-api,owin,iis-express
I've got a situation where I needed to change the solution and project names within a OWIN-based WebAPI website. Everything worked great before this change, and to my knowledge the renaming was successful because of the following: The solution builds fine and all my unit tests run sucessfully both locally...

Replace IIS Express certificate with sha-256 certificate

https,iis-express,sha
Since sha-1 is no longer secure and Google Chrome now shows an error when using https with a sha1 certificate, how do I replace the IIS Express certificate with a sha-256 self-signed certificate?

How to automate “run asp.net website” from command line?

asp.net,visual-studio,batch-file,iis,iis-express
Right now, I do the following manual steps to run an ASP.NET website on my PC: Open Visual Studio and the project inside it Press Ctrl+F5 which: Builds the solution Runs IIS express Opens a browser How to write a batch file that does the same thing? The last step...

IIS Express 8 - Max allowed length

c#,asp.net,iis,visual-studio-2013,iis-express
In case the below is too long, my question is whether IIS Express 8 in Visual Studio 2013 obeys the maxAllowedContentLength attribute or if it has some overriding value that prevents large requests When debugging some webapi calls against Visual Studio 2013, I'm receiving this error: Maximum request length exceeded....

.vs\config\applicationhost.config in source control

iis-express,asp.net-5,visual-studio-2015
Visual Studio 2015 adds a file named .vs\config\applicationhost.config to the root of a solution when an ASP.NET Web application project is created. Should this file be checked in to source control or should it be ignored (so that each user will have their own local copy)?...

How to run a Selenium NUnit test using Windows Authentication with Firefox?

firefox,selenium,selenium-webdriver,windows-authentication,iis-express
Our web app requires Windows Authentication. I have a NUnit test that Launches a IIS Express process hosting my web app. Starts up a FirefoxDriver and navigates to the web app. Unforntunately it gets a 401.0 - Unauthorized error without even asking for credentials. I'm used to Firefox asking for...

Matter with IIS Express in Win 8.1

c#,asp.net,iis-express
i just created a local website last year , and i was using it on windows 7 IIS(express) and it worked correctly for a long time , after switching to windows 8.1 some parts of the website are not working , i donno why!!!!!!!!! the site is about file browsing...

IIS express dont respect serviceCredentials

wcf,iis-express
I have testing WCF service and i want to deploy it for development purposes to IIS Express (not classical IIS) part of my Web.config </serviceHostingEnvironment> <services> <service name="WcfService1.Service1" behaviorConfiguration="test"> <endpoint binding="basicHttpsBinding" contract="WcfService1.IService1" /> <endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" /> </service> </services> <behaviors> <serviceBehaviors> <behavior> <serviceMetadata...

IIS express 8 webpage is not available

iis-express
I set up a site using IIS Manager but cannot get it to serve a static web page from my local file system (get the above error) the only way I can serve it is to copy the page assets into the directory for the default site (C:\inetpub\wwwroot). I can't...

SignalR: WebSockets is unsupported in the current application configuration

asp.net,iis,signalr,iis-express
I'm using SignalR 2.1.2 in my project. Everything was OK, But today I saw that notifications don't work in my project. I tried to troubleshoot issue So I checked Windows Event Viewer and saw this error: Exception information: Exception type: InvalidOperationException Exception message: WebSockets is unsupported in the current application...

IISExpress cannot find ssl page running localhost with Visual Studio 2013

c#,asp.net,ssl,visual-studio-2013,iis-express
When I access the site as http://localhost:26049, the site runs fine. If I try to access the site with https://localhost:44319, I get page not found. This is my project properties: This is from my IISExpress application config: <site name="MVC Authentication" id="2"> <application path="/" applicationPool="Clr4IntegratedAppPool"> <virtualDirectory path="/" physicalPath="F:\Projects\MySite\Test" /> </application> <bindings>...

Injecting data into running IISExpress from SpecFlow

asp.net-mvc,bdd,iis-express,specflow
I'm new to the ASP.NET MVC 5 world and SpecFlow. I'm trying to put together a simple example for learning purposes. I've a ASP.NET MVC project in one assembly and a SpecFlow definition in another. I'm trying to avoid having a database in the setup since I'm trying to keep...

IIS Express stops after saving *.cs or *.cshtml file in Visual Studio 2015

asp.net,asp.net-mvc,iis-express,visual-studio-2015,asp.net-mvc-6
Im testing new ASP.NET 5 web template in Visual Studio 2015 Ultimate CTP 5. (14.0.22412.0 DP) My problem is, that when i run application, each time i press save on any of .cs or .cshtmlfiles, server stops. No warnings or error dialogs appear. I can reproduce error using empty starter...

OWIN not firing up if project not set as Startup with IIS Express

visual-studio-2013,owin,iis-express,katana
I have a solution in VS2013 with the following setup: App.Web (Web Project with only static files) App.Web.API (Web API project with OWIN) Both the projects have a default url pointing to their own localhost:portX (I am using IIS Express), so App.Web is listening on localhost:2222 and APP.Web.API is listening...

How to perform test to check whether WCF Response is compressed with httpCompression on IIS7+

wcf,iis-express,http-compression
I am building test WCF Service (PersonService) in .NET 4.5 hosted on IIS 8 express. I also have installed dynamic compression on IIS. As far as I know WCF 4.0 onward compression is enabled by default. To enable httpCompression at service I have updated Web.Config as follows: <?xml version="1.0"?> <configuration>...

ASP.NET call hangs on async await

asp.net,async-await,iis-express
My calls to a Google API from an API Controller in IIS express hang indefinitely when called sequentially using async await. var id = CreateDocument("My Title").Result; async Task<string> CreateDocument(string title) { var file = new GData.File { Title = title }; // Stepping over this line in the debugger never...