You do not have permission to access the IIS configuration file – Web app error

I was able to solve this issue doing the following: 1- Go to C:\Windows\System32\inetsrv and double click on directory config and accept the warning message. 2- Go to C:\Windows\System32\inetsrv\config directory and double click on directory Export and accept the warning message. Then you will be able to run the app in your local IIS without … Read more

How do I prevent IISExpress & My Web Sites folders from cluttering up my My Documents folder?

Microsoft cluttering up my ‘Documents’ folder with all their programs’ (junk) folders drives me insane as well. I have conceded somewhat by creating a Data folder under my Documents folder, where I am pointing all MS apps (and others apps such as Firefox’s profile folder) to for all their (generally unwanted) folders, and with a … Read more

How to use subdomains with localhost on IISExpress?

This can be accomplished by editing the applicationHost.config file C:\Users\yourProfile\Documents\IISExpress\config\applicationHost.config Visual Studio usually handles editing this file for you when you make configuration changes, but you can manually edit. Find the particular site you are working with and the following bindings should work: <bindings> <binding protocol=”http” bindingInformation=”*:5252:localhost” /> <binding protocol=”http” bindingInformation=”*:5252:contoso.localhost” /> </bindings> You can … Read more

How do I change my IIS Express SSL certificate for one that will work with Chrome 58+?

This is how I fixed this. There may be an easier way (I’m sure there is!) Step 1 – Open Windows PowerShell (in admin mode) and generate a certificate like this: New-SelfSignedCertificate -DnsName “localhost”, “localhost” -CertStoreLocation “cert:\LocalMachine\My” Keep the thumbprint safe. Step 2 – Open a command prompt (in admin mode) and run these commands. … Read more

Visual studio 2019 “Unable to connect to web server ‘IIS Express’”

I tried this one and it worked for me: Go to ‘Debug Properties‘ Find ‘Web Server Settings‘ Change the port in ‘App URL‘ section and save the changes Run the application and the same error will appear again Switch the port back to the original port and save the changes Run the application and enjoy … Read more

how to run iisexpress app pool under a different identity

It looks like this should be possible. In your IIS Express site’s applicationhost.config file, there is a <processModel/> element defined in <applicationPoolDefaults> under <applicationPools> The <processModel> element has attributes for userName and password. From MSDN: Specifies that ASP.NET will run the worker process with a Windows identity that is different from the Windows identity for … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)