iis-express

Unable to launch IIS Express Web Server in VS 2013

不羁岁月 提交于 2019-12-04 05:11:52
I have an application in MVC 4 using VS 2013. This is very strange,everything was working fine till last night but today morning when I started working and tried to run my application I found the following error: Unable to launch IIS express web server. Failed to register URL"http://localhost:62707" for site... Access denied(0x80070005) I searched regarding this since morning and I got solutions for this which I tried as: I deleted IIS Express folder from my documents several times and tried running the application by reopening it but that dint work. I tried with changing the binding in

How to configure a different virtual directory for web site project with Visual Studio 2015

百般思念 提交于 2019-12-04 04:22:30
问题 I have a c# Web Site type project which was developed in VS 2012. I want to use VS 2015 and I have trouble specifying a different virtual directory than the default root which is /. In vs 2012, in the sln file there are these lines: VWDPort = "59903" VWDDynamicPort = "true" VWDVirtualPath = "/myapp" and everything works as expected, i.e. when the app launches in the browser it goes to: http://localhost:59903/myapp. I opened the solution in VS 2015 and vs creates a hidden .vs folder where it

Problem hosting WCF service in IIS Express

霸气de小男生 提交于 2019-12-04 03:03:39
问题 We are trying to host a WCF service in IIS Express 7.5 (7.5.1046). IIS Express starts correctly, but when trying to connect to our .svc file, we get an exception with the message "Unable to load DLL 'nativerd.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)". We have searched for this dll and it is present at %WINDIR%\system32\inetsrv\nativerd.dll. The applicationHost.config file that we are using is based on the templates that IIS Express install in the

Setting localhost alias in IIS Express for Visual Studio

独自空忆成欢 提交于 2019-12-04 02:29:56
I'm trying to define an alias to localhost in development ambient in Visual Studio 2013. When I used previous versions of Visual Studio, I used the Visual Studio Development Server to debug and the only thing I needed to do was to change my hosts file adding this entry: 127.0.0.1 localhost 127.0.0.1 localhostalias I'm having problems to do this with VS2013. I've browsed all over the internet and I've tried the following things, but I'd like someone of you to tell me what am I doing wrong. I've obviously already changed the hosts file... In the web project Properties -> Web in the section

Visual Studio keeps adding IIS Express back into my launchsettings.json

我们两清 提交于 2019-12-04 00:51:10
I am trying to remove the IIS Express profile from my .NET Core launch settings but every time i repoen the solution, Visual Studio adds it back in again. For example, in a new project my launch settings looks like this { "iisSettings": { "windowsAuthentication": false, "anonymousAuthentication": true, "iisExpress": { "applicationUrl": "http://localhost:55735/", "sslPort": 0 } }, "profiles": { "IIS Express": { "commandName": "IISExpress", "launchBrowser": true, "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" } }, "MyProject": { "commandName": "Project", "launchUrl": "http:/

Mini Profiler does not render scripts

妖精的绣舞 提交于 2019-12-04 00:20:54
问题 I've added Mini Profiler through NuGet and though in a really simple project works lovely , this is a big and existing project, and of course that I'm getting some problems with it :( it writes the correct script tags in the source code as <link rel="stylesheet" type="text/css" href="/mini-profiler-includes.css?v=1.9.0.0"> <script type="text/javascript"> if (!window.jQuery) document.write(unescape("%3Cscript src='/mini-profiler-jquery.1.6.2.js' type='text/javascript'%3E%3C/script%3E")); if (

Assembly Not Referenced compilation error in foreach loop in Razor view

為{幸葍}努か 提交于 2019-12-04 00:17:49
EDIT: I have checked and attempted a lot of the other Assembly Not Referenced issues found on SE, but I haven't found many dealing with what should be a built-in assembly ( System.Collections.Generic.List<t> ). This makes it difficult to manually add or remove the reference etc. I am trying to build a PartialView from an API response. I have confirmed the response is correct and well-formed, my objects are being built correctly, but when I generate the Partial View, a Compilation Error is instead shown. Compiler Error Message: CS0012: The type 'System.Collections.Generic.List`1<T0>' is defined

How do I stop IIS from caching any files, ever, under any circumstances?

我的梦境 提交于 2019-12-03 23:51:30
I do some web development for work and the biggest hit to my productivity comes from IIS. It caches files that will not update even when they are changed, unless I restart IIS. Specifically, I am referring to html, js, and css files. This problem forces me to stop and start my web application constantly. Since I have Windows 7 I believe I have ISS 7.5. I am using IIS Express. This is so frustrating that I'd prefer IIS to never cache anything, ever. I am fine with a solution that stops all forms of caching or just for the project I am working on. IIS Manager is not available to me. It is not

How can I stop IISExpress from dumping every detail of every request into the Visual Studio Output window?

橙三吉。 提交于 2019-12-03 22:24:13
My VS 2013 output window is full of this: iisexpress.exe Information: 0 : Request, Method=GET, Url=http://localhost:51741/api/Clients/?$filter=UniqueName eq '6269', Message='http://localhost:51741/api/Clients/?$filter=UniqueName eq '6269'' iisexpress.exe Information: 0 : Message='Clients', Operation=DefaultHttpControllerSelector.SelectController iisexpress.exe Information: 0 : Message='MyProj.Controllers.ClientsController', Operation=DefaultHttpControllerActivator.Create iisexpress.exe Information: 0 : Message='MyProj.Controllers.ClientsController', Operation=HttpControllerDescriptor

HttpContext.Current.User is null under windows authentication (integrated pipeline)

倾然丶 夕夏残阳落幕 提交于 2019-12-03 22:18:13
问题 In the web.config: <configuration> <authentication mode="Windows"> </authentication> <authorization> <deny users="?" /> </authorization> </configuration> in global.asax protected void Application_AuthenticateRequest(object sender, EventArgs args) { tracker.LogRequest(HttpContext.Current.User, DateTime.Now) ///THIS IS ALWAYS NULL!!! } I am just really confused by this, any ideas? 回答1: I think this is a symptom of listening on the wrong event. You should probably listen for Application