iis-7.5

Get Angular2 routing working on IIS 7.5

我的梦境 提交于 2019-11-27 02:33:31
问题 I have been learning Angular2. The routing works just fine when running on the nodejs lite-server. I can go to the main (localhost:3000) page and move through the application. I can also type localhost:3000/employee and it will go to the requested page. The app will eventually live on an Windows IIS 7.5 server. The routing works fine if I start at the main page (localhost:2500), I am able to move through application with out any problems. Where I run into a problem is when trying to go

CORS settings for IIS 7.5

霸气de小男生 提交于 2019-11-27 02:22:36
问题 Could someone please help me, convert the following code for use in the web.config in IIS 7.5 and where in the web.config file I should place each piece of code? # Always set these headers. Header always set Access-Control-Allow-Origin "*" Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT" Header always set Access-Control-Max-Age "1000" Header always set Access-Control-Allow-Headers "x-requested-with, Content-Type, origin, authorization, accept, client-security

IIS 7.5 - 403 Forbidden

你。 提交于 2019-11-27 02:05:51
问题 Ok, I have scoured online resources and applied all the suggested solutions. I am setting up a simple website on Windows Server 2008 R2 under IIS 7.5 using the "ASP.NET v4.0" pool. I am setting this up as an application under Default Web Site with a different root. I keep getting the 403 Forbidden error. I have: Installed asp.net using aspnet_regiis.exe -i (many times) Made sure my root directory (physical path) has permissions for "IIS_IUSR" and "IUSR" users. Made sure "Anonymous

jQuery POST, Error 405 Method not allowed

这一生的挚爱 提交于 2019-11-27 01:59:27
I am trying to host an ASP.NET MVC4 web application with IIS 7.5. When debugging the app everything works fine (I'm assuming this is because of Windows Authentication). However, when I publish the app and browse to it I get a 405 Method not allowed error: POST http://localhost/ 405 (Method Not Allowed) send i.extend.ajax i.(anonymous function) (anonymous function) From what I've been reading this is either a problem with the Handler Mappings in IIS or some configuration is needed in the web.config. Either way, I have not found the correct solution. Could anyone tell me what my web.config

How to prevent IIS from shutting down Web Site when not in use?

狂风中的少年 提交于 2019-11-27 01:57:32
问题 I have a web application hosted under IIS. It is a data warehouse, and during its startup process it requires instantiating a large set of items in memory (takes roughly ~20 minutes to fully set up). Because this website is critical to our company, this system must be online 100% during the daytime, and only can be restarted during off-work hours. For some reason, this web application seems to be "offline" when there is no usage for some time. I know this because the cache is not fully

“Access to the registry key 'Global' is denied” when accessing performance counters

大兔子大兔子 提交于 2019-11-27 01:28:19
问题 I'm attempting to read some performance counters from my ASP.NET application. When I do, I get the error "Access to the registry key 'Global' is denied." I have tried following the instructions here and here, using the user IIS AppPool\DefaultAppPool , which is the identity my app pool is configured to use: I have added that user to the Performance Monitor Users group: And after adding the user, I restarted my computer. But I am still getting the error. I have also tried adding the users IUSR

How to config application pool in IIS 7.5 automatically re-start when it was stopped?

▼魔方 西西 提交于 2019-11-27 01:15:47
问题 My website was down several times per day and when I check the application pool (IIS 7.5), I saw it was stopped and I must restart it manually. How can I setup application pool so that it automatically restarts after an error? 回答1: You will need to change the startMode for the application pool your website is running on from onDemand to AlwaysRunning. By default IIS sets all application pools to onDemand. In IIS Manager, click computer name in the Connection pane. Switch to Features View if

Can't run ASP.NET MVC 2 web app on IIS 7.5

北城余情 提交于 2019-11-27 00:16:41
I'm trying to run an ASP.NET MVC 2 web application under IIS on Windows 7, but I get a 403.14 error. Here are the steps to reproduce: Open Visual Studio 2010 Create a new ASP.NET MVC 2 project called MvcApplication1 Shift+F5 to run the app. You should see http://localhost:{random_port}/ and the page will render correctly. Click on MvcApplication1, and select "Properties". Go to the "Web" section. Select "Use Local IIS Web server" and create a virtual directory. Save. Shift+F5 to run the app. You should see http://localhost/MvcApplication1/ and an IIS error HTTP Error 403.14 - Forbidden The Web

IIS 7.5 remove etag headers from response

ぐ巨炮叔叔 提交于 2019-11-27 00:11:14
问题 I know this question has been asked alot of times, however most of them were in 2009-2010. I am pretty sure a while back a project I was working on removed them, however I cannot find any way to remove them at the moment. So has there been any advances in this field? It seems crazy that microsoft has made IIS to not be able to easily configure these headers. Currently have tried: Adding a blank etag header to the web.config Adding an etag with quotes inside to the web.config Adding a blank

Windows Authentication for ASP.NET MVC 4 - how it works, how to test it

好久不见. 提交于 2019-11-27 00:05:39
I have never used Windows Authentication for ASP.NET MVC web applications before, but Forms Authentication. Recently, I have had an ASP.NET MVC 4 web application that requires a Windows Authentication implementation for users who are granted to log in my company web server. So, I have some questions regarding Windows Authentication. I am using Visual Studio 2012. How does Windows Authentication work? How do I implement Windows Authentication correctly in the web.config file? How do I test if the Windows Authentication really works for my ASP.NET MVC 4 web site? In other words, how do I test it