iis-7.5

Prevent IIS from serving static files through ASP.NET pipeline

喜夏-厌秋 提交于 2019-11-26 15:58:45
问题 Requests for my css, js, image files are being served through the ASP.NET pipeline. I thought IIS by default avoided this, but I see the requests on my Application_AuthenticateRequest breakpoint and there's no need to actually authenticate those requests. I've seen conflicting approaches to change this behavior - What is the best way to do this? 回答1: I'm taking a guess here and suspect that you have the following setting configured in your web.config file: <modules

IIS 7.5 no images css js showing

戏子无情 提交于 2019-11-26 15:54:21
问题 I have 2 Windows 2008 R2 x64 servers NLB, ARR with shared configuration. I have the application files in a network share. ASP.net pages (.aspx) come up fine but no css,images,js work. I also have a .htm file shows css and images just fine. In the iis log I do see a 401.3 message. So it seems to be permissions but not sure what else to configure permissions wise. I read similiar issues at: MVC + IIS7 = CSS Issue https://serverfault.com/questions/70050/adding-a-virtual-directory-iis-7-5-windows

iFrame parser error after upgrading to .NET 4.5

孤街醉人 提交于 2019-11-26 15:50:46
问题 We have recently upgraded all of our WebForms projects to .NET 4.5, and encountered a parser issue when loading pages with an iFrame element. We have corrected this by converting of the iFrame from HtmlGenericControl to HtmlIframe . This has corrected all of the parser errors when we run our code locally. When we deploy the app, we get the following error message: Parser Error Message: The base class includes the field 'frame', but its type (System.Web.UI.HtmlControls.HtmlIframe) is not

Viewing my IIS hosted site on other machines on my network

℡╲_俬逩灬. 提交于 2019-11-26 15:08:23
问题 At home I have a simple network setup containing 2 machines. On one machine i have a site hosted with IIS7. Rather than the standard localhost/index.htm address I have added an entry in the HOSTS file pointing the local IP (127.0.0.1) to this domain - www.mysite.dev . I can access the site with www.mysite.dev with no problem. what I would like to do is be able to view this site from my other machine on the network. Initially I assumed this could be done with a URL like so MACHINE-NAME/www

The client and server cannot communicate, because they do not possess a common algorithm ASP.NET C# IIS

╄→尐↘猪︶ㄣ 提交于 2019-11-26 14:26:28
问题 I have an issue with a C# PayTrace Gateway. The below code was working fine until yesterday when I believe they turned off SSL3 due to the Poodle Exploit. When running the code below we got the following message. The remote server has forcefully closed the connection. After doing some research on the problem we determined that because our IIS Server 7.5 was configured to still use SSL3, C# defaulted to SSL3, which PayTrace would forcibly close the connection. We then removed SSL3 from the

How do I enable HTTP PUT and DELETE for ASP.NET MVC in IIS?

老子叫甜甜 提交于 2019-11-26 14:25:05
I use HTTP PUT and DELETE in my ASP.NET MVC3 application. When I run it in local, every thing works correctly; But when I publish the application to the server, these methods do not work. Are there any special settings for enable a web server to support PUT and DELETE requests? I'm using shared hosting with IIS 7.5. UPDATE: I enable PUT and DELETE requests in IIS manager . PUT command work fine. But DELETE still not works. I create requests by jQuery : I'm in this page: http://domain.com/dashboard/edit-site/103323/links/ and my ajax call is: $.ajax({ // url: same as page-url, cache: false,

IIS Server & ASP.Net Core - page cannot be accessed because the related configuration data for the page is invalid

柔情痞子 提交于 2019-11-26 13:48:40
问题 I am getting the following error when I try to launch my ASP.Net Core App using IIS Server v7.5 ... I published the website (File System option in Visual Studio) to a specific directory successfully. It launches fine from approot/web.cmd file. But when I try to hook it up to IIS Server and point it to the wwwroot folder, I get the following error: HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid.

Classic ASP on IIS7: refusing to send errors to browser on 500 Internal Server Error

做~自己de王妃 提交于 2019-11-26 13:46:14
I have classic ASP running on IIS 7. Even though I configured the ASP "Debugging Properties" to "Send Errors to Browser = True", the web app REFUSES to send errors to the browser and continues to send a 500 internal server error. My browser has "Show Friendly HTTP Error Messages" unchecked. Failed Request Tracing is installed (not sure if that's related) Happens both on web pages loaded locally on the server and remotely The App Pool is integrated (not sure if that matters) Any ideas? Try : Internet Information Services (IIS) Manager —> Default Web Site —> Click Error Pages properties and

401 response for CORS request in IIS with Windows Auth enabled

为君一笑 提交于 2019-11-26 13:02:25
I'm trying to enable CORS support in my WebAPI project, and if I enable Anonymous Authentication then everything works fine, but with Windows Auth + disabled anonymous authentication, the OPTIONS request sent always returns a 401 unauthorized response. The site requesting it is on the DOMAIN so should be able to make the call, is there any way to get around the issue without disabling Windows Authentication? You can allow only OPTIONS verb for anonymous users. <system.web> <authentication mode="Windows" /> <authorization> <allow verbs="OPTIONS" users="*"/> <deny users="?" /> </authorization> <

How do I protect static files with ASP.NET form authentication on IIS 7.5?

断了今生、忘了曾经 提交于 2019-11-26 12:22:21
I have a website running on a IIS 7.5 server with ASP.NET 4.0 on a shared host, but in full trust. The site is a basic "file browser" that allows the visitors to login and have a list of files available to them displayed, and, obviously, download the files. The static files (mostly pdf files) are located in a sub folder on the site called data, e.g. http://example.com/data/ ... The site uses ASP.NET form authentication. My question is: How do I get the ASP.NET engine to handle the requests for the static files in the data folder, so that request for files are authenticated by ASP.NET, and