iis-7.5

Allow anonymous to ASP.NET Web API controller while rest of the application runs under windows authentication

社会主义新天地 提交于 2019-12-17 20:34:41
问题 I have an ASP.NET web application that has Windows authentication enabled. I need to write an ASP.NET Web API controller in that application that uses some of the data access logic of the application. I don't want to create a new project for the Web API alone as I need to expose just a small end point that handles a couple of requests. The Web API clients would consume the service anonymously. To allow this, I tried using AllowAnonymous action filter on both controller as well as the actions.

IIS 7 Not Serving Default Document

对着背影说爱祢 提交于 2019-12-17 18:27:04
问题 We have a problem occuring on some of our developer workstations: when visiting a URL without a filename (e.g. http://localhost/), IIS 7 returns a 404 error . Everyone is running Windows 7/IIS 7.5 and ASP.NET 4.0. The application pool is configured to use Classic pipeline mode. Default documents are enabled, and default.aspx is in the default document list. I enabled failed request tracing, and see this in the log: OldHandlerName="", NewHandlerName="ExtensionlessUrl-ISAPI-4.0_64bit",

HTTP Error 404.7 - Not Found The request filtering module is configured to deny the file extension

心不动则不痛 提交于 2019-12-17 16:30:35
问题 I'm trying to configure the default webpage for an IIS 7.5 website. Request filtering is turned on. However .aspx pages are allowed, I've set default.aspx to be the default page for the website. If I browse to localhost/default.aspx I get a webpage as expected. IF I browse to localhost/ I get HTTP Error 404.7 - Not Found The request filtering module is configured to deny the file extension. Any ideas? 回答1: It looks like the request filtering is actually filtering for a blank file name.

In IIS7.5 what module removes the body of a 400 Bad Request

对着背影说爱祢 提交于 2019-12-17 16:27:37
问题 I have written ASP.NET (4.0) code that sets the Response.StatusCode to 400 if the data posted to the server is in valid. I place useful information in the response body in the format that the request accepts header asks for. eg an html message saying "The date field is required...". In IIS7 (7.5.7600) on Windows 7 I get the correct html response back to the browser. In IIS7 (7.5.6000) on Windows 2008 I do not get the html body back, but only a text body with "Bad Request" as the content. Can

How to set up FTP on Azure VM

非 Y 不嫁゛ 提交于 2019-12-17 15:09:10
问题 I need some help setting up FTP on my Azure VM instance. The VM is Windows Server 2012 R2. I have set up the Web Server Role and created an FTP site in IIS. I have confirmed that I can access the FTP server with ftp command: open localhost I have also configured an FTP end point for the VM on the Azure Portal configured for the standard port 21. Lastly, I have created a firewall rule to allow all traffic in/out of port 21. Now when I try to FTP to it from my home machine I can see the server

Proper method to remove www from address using IIS URL Rewrite

我怕爱的太早我们不能终老 提交于 2019-12-17 11:01:04
问题 What is the optimal way to remove the www subdomain from a url using IIS URL Rewrite? 回答1: If you want it to work with any hostname (not hardcoding it into the rule), you'd want to do something like this: <rule name="Remove www" stopProcessing="true"> <match url="(.*)" ignoreCase="true" /> <conditions logicalGrouping="MatchAll"> <add input="{HTTP_HOST}" pattern="^www\.(.+)$" /> </conditions> <action type="Redirect" url="http://{C:1}/{R:0}" appendQueryString="true" redirectType="Permanent" />

Script not served by static file handler on IIS7.5

元气小坏坏 提交于 2019-12-17 10:15:21
问题 I've just tried to deploy my first web application to IIS on my Windows 7 Home Premium notebook. After creating the application, I had to change to the Classic App Pool, then set that pool for framework 4.0. Now I get the following error: HTTP Error 404.17 - Not Found The requested content appears to be script and will not be served by the static file handler. The requested URL is http://localhost:80/pvmms/default.aspx I'm afraid extensive Googling has yielded nothing clear or definite enough

ASP.NET MVC Routing - add .html extension to routes

孤街醉人 提交于 2019-12-17 07:30:25
问题 i am pretty new to MVC and Routing and i was asked to modify an app to use diffrent url's. a task that is a bit over me since i have no experience. ok, lets talk a bit of code: routes.MapRoute( "CategoryBySeName", // Route name "products/{SeName}", // URL with parameters new { controller = "Catalog", action = "CategoryBySeName" } ); this works as expected, but then the client wanted ".html" at the end of paths, so i changed: "products/{SeName}", // URL with parameters to: "products/{SeName}

Where does IIS 7.5 log errors?

落爺英雄遲暮 提交于 2019-12-17 07:29:05
问题 Where does IIS 7.5 log errors? Event Viewer? Log File? I get a very non specific internal 500 error. I would like to find out more. I'm running PHP and I did what this last comment on this post said. But still not logging to the C:\windows\temp . 回答1: To report errors in the Event viewer, go to your php.ini and make sure logging is on. log_errors = On then enable error_log to write to syslog (with is the Event Viewer on Windows machines) error_log = syslog 回答2: For PHP v5.3, look here: C:

IISExpress User Interface [closed]

我的梦境 提交于 2019-12-17 07:04:30
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I have just downloaded and installed IIS express and it all works well running it from the command line: But how do i configure options for it, is there a standalone windows interface for it like IIS Manager or do you have do do everything manually in the config files? Or do you have to install webmatrix to