iis-7

Posting forms to a 404 + HttpHandler in IIS7: why has all POST data gone missing?

不羁岁月 提交于 2019-12-31 02:54:10
问题 OK, this might sound a bit confusing and complicated, so bear with me. We've written a framework that allows us to define friendly URLs. If you surf to any arbitrary URL, IIS tries to display a 404 error (or, in some cases, 403;14 or 405). However, IIS is set up so that anything directed to those specific errors is sent to an .aspx file. This allows us to implement an HttpHandler to handle the request and do stuff, which involves finding the an associated template and then executing whatever

How can I create a local user profile for the anonymous user of an ASP.Net MVC application under IIS 7?

筅森魡賤 提交于 2019-12-31 02:09:11
问题 I've been experimenting with ASP.Net MVC, and have come across a problem that is probably not specifically MVC related. But I cannot get the authentication in the default MVC application (the one created by the wizard when you create a new MVC project) to work properly under IIS 7 on Windows 7. If I run under the Visual Studio environment, it works, but if I switch the settings to run under IIS instead, I get the following exception trying to submit the login or registration: Failed to

Setting folder default page in aspnet

坚强是说给别人听的谎言 提交于 2019-12-30 17:24:30
问题 My question is really simple. I have a Web application with multiple sub-folders and there's no Default.aspx page in any of these. How do I set the default page in each of these folders so users can type /folder instead of /folder/login.aspx? Can this be done through the web.config file? Should I just rename the file in each folder to Default.aspx? Thanks! 回答1: There is a default document section for web.config, and you can even put a web.config in each folder, and inside that config just

how can I enable mod_rewrite on iis server

ぐ巨炮叔叔 提交于 2019-12-30 10:43:09
问题 I found that mod_rewrite function is not enabled on my server(_SERVER["SERVER_SOFTWARE"] -Microsoft-IIS/7.0),Architecture x86 .How can I enabled the mod_rewrite.Could any one please help me. 回答1: If your hosting at a commercial hosting provider they will most likely have the Microsoft URL Rewrite module installed. This gives you similar functionality to the Apache mod_rewrite module. To test if this module is installed, create a file called web.config in the root of your website with the

How to change the amount of fields that can be posted in a form with IIS 7.5?

本小妞迷上赌 提交于 2019-12-30 09:48:10
问题 We've hit a problem with some forms in the admin portion of our web app. There are a handful of forms that contain a large number of fields (it can range anywhere from one input field to the hundreds). We've found that as these forms grow, there is a point where the server will throw 500 errors when a form is posted. After running a test, I was able to find that the server can handle forms with 100 fields in them; once 101 or more fields are used, we get the errors. We run Coldfusion, and we

How to debug Crashed Dump File?

僤鯓⒐⒋嵵緔 提交于 2019-12-30 09:30:13
问题 I run Debug Diagnostic tool on my windows server 2008. It created dump files. Because my asp.net application gives an exception time to time. I need step by step instruction how to debug dump file. Do I need to debug in production server or locally? What do I need to have? How to configure? How to determine where in application is the problem? Is there any other ways how to read Dump files? Here is the post I found it has pretty good explanation about dump files but they didn't explain the

Authorize a directory for anonymous users IIS 7.5?

寵の児 提交于 2019-12-30 09:18:08
问题 I'm trying to add a directory for anon access in IIS 7.5. It works under Web Dev but not IIS 7.5 I'm currently using this web.config in the directory. This is a directory with style sheets: <?xml version="1.0"?> <!-- Note: As an alternative to hand editing this file you can use the web admin tool to configure settings for your application. Use the Website->Asp.Net Configuration option in Visual Studio. A full list of settings and comments can be found in machine.config.comments usually

IIS 7 adding SSL to one site, all other sites responds to https request

核能气质少年 提交于 2019-12-30 08:58:06
问题 I have multiple sites running on my IIS, now for one of the websites (SiteB) we need to support ssl requests. I have enabled it editing bindings for the website, but the problem is when I selected protocol SSL editing bindings HostName field is disabled, being unable to set hostname to respond to https request, this causes that all sites of my IIS if are requested with https:// loads web site of siteB. For example my bidings are the next Site A IP Port HostName * 80 www.sitea.com Site B IP

Error: “An operations error occurred” in System.DirectoryServices.AccountManagement.UserPrincipal.FindByIdentity

老子叫甜甜 提交于 2019-12-30 08:44:52
问题 I have the following code to retrieve AD groups of a given user name in my MVC3 web application: PrincipalContext userDomain = new PrincipalContext(ContextType.Domain, username.Split('\\')[0]); UserPrincipal user = UserPrincipal.FindByIdentity(userDomain, username); PrincipalSearchResult<Principal> memberOfGroups = user.GetGroups(); IEnumerator<Principal> memberOfGroupsEnumerator = memberOfGroups.GetEnumerator(); List<string> userADGroups = new List<string>(); try { while

WCF Service 405 Method Not Allowed Exception

扶醉桌前 提交于 2019-12-30 05:28:08
问题 I'm writing a WCF service in Visual Studio 2008 to be hosted on a Windows 2008 Standard server. I've created a new Web Site in IIS7 with its own application targeted to ASP.NET 2.0. I added .NET 3.0 Framework features to the server role. I've already gone through all of the steps involving *.svc extensions and the aspnet_isapi module. I've run "ServiceModelReg -r" and restarted IIS as well as the server itself. My project targets the .NET framework 3.5 for builds. My solution references the