Category "iis"

HttpContext.User NullReferenceException only on deployed server

I am using formsauthentication on my MVC project and when testing locally using the Visual Studio Development Server everything works as expected. Once deployed

Bad Request - Invalid Hostname with Asp.net WebAPI project in Visual Studio 2013

I am running a very basic webAPI project in Visual Studio Pro 2013. It runs fine on localhost on my machine. I then try and go to a browser from a different mac

Publishing and hosting Web API developed in .net core through IIS

I have WEB API developed in .net core (VS 2017). I need to deploy this api in IIS. This is the procedure I have followed. Open VS 2017, open the project -> r

HTTP Error 500.30 - ASP.NET Core 5 app failed to start

I deploy a .NET Core 5 app with settings: And the website shows an error: HTTP Error 500.30 - ASP.NET Core app failed to start Common solutions to this issue:

Cannot find X.509 certificate StoreName 'My', StoreLocation 'LocalMachine', FindType 'FindBySubjectName', FindValue ''

I have added the certificate to Trusted root certification Authorities. But still my code is giving this error when I start my REST service. Error: Cannot fi

How to implement Windows Authentication with IdentityServer 4

How to correctly implement Windows Authentication with Identity Server 4? Are there any samples to do that? I looked at the source code of IdentityServer 4, and

IIS binding prefixes localhost

Is there a way to set up a binding in iis in the format of: website1.localhost:80 website2.localhost:80 website3.lcoalhost:80 etc I set the websites up to

Unknown website after creating website using appcmd

I am using IIS 8.5 (Windows 8.1). I tried to create a website to my local IIS using the appcmd tool. I used those pages as reference (I know they are for IIS 7

How can I host a Asp.NET Core gRPC Service on IIS

I need to host my Asp.NET Core gRPC Service on IIS so that I can make it publicly available for others in my team so can you please provide a proper document or

Apparently Random Error: "Antiforgery token validation failed. The antiforgery cookie token and request token do not match."

Background I have a relatively new ASP.NET Core 2 site. It's running on just one server (Windows Server 2012 R2, IIS 8.5), and I only restart the site once eve

Preventing Angular from running when accessing static files with no extension

I have an Ionic/Angular PWA for a project, which has a native (Ionic Cordova) app as well for mobile. On the app we need to accept deeplinks that will have the

How to attach to IIS process (w3wp.exe) on Windows 10/IIS 10?

Using Visual Studio 2013 in Windows 8.1, I've been used to debug applications hosted in IIS by attaching to the w3wp.exe process running the Application Pool.

WEBAPI not working when i add server ip address instead of name?

I have created WEBAPI application using VS2017 and deployed into IIS. After replace my server ip address instead of msweb102 like below URL, i am getting error.

Testing web API service

I'd like to test the methods of a given Web API service. I could do this by adding a test project, instantiating the controllers and testing the methods. Howeve

IIS font not applying

We are experiencing an issue with IIS not picking up on a font added to the system. Running our webservice through Visual Studio works fine and the font is use

Can't open web project because IIS Express is not installed (even though it is)

I have recently changed machines at work, and a long-standing web project now refuses to open in Visual Studio. The error log reads: "The Web project 'xxx' is

CSS, Images, JS not loading in IIS

My all applications were working fine but suddenly all sites under IIS are not loading css, images, scripts. It redirect to login page. If i login it works fi

HTTP error 403.16 - client certificate trust issue

I am trying to implement client certificate authentication on IIS 8. I have deployed my configuration on a development machine and verified it working as expect

Is there a way to produce an alert when an IIS site goes down using Prometheus?

I have a few IIS sites I would like to monitor using Prometheus. Specifically monitor and alert on outages. I cannot figure out how to grab a metric when a site

Cannot establish connection to SQL Server

I am trying to access SQL DB that is located on my computer from an application that is located on a server (has IIS7). I set the ConnectionString in the WebCon