iis-7

Doubts relating to error handling in Ajax requests in ASP.net MVC

风流意气都作罢 提交于 2019-12-23 09:30:06
问题 I have been developing a web application on my local machine for some days now using Visual Studio 2010. Last night I deployed my application on IIS 7 and frustratingly stumbled across a major show stopper. The problem is related to error handling in Ajax request. To begin with I have some edit screens which works on ajax request. Here is the what the ajax part of the Ajax edit screen looks like. @using (Ajax.BeginForm("_CityEdit", null, new AjaxOptions { HttpMethod = "Post", UpdateTargetId =

Unauthenticated users can't see images in website

梦想与她 提交于 2019-12-23 08:54:24
问题 When I run my website through debug mode in visual studio everything looks great and all the images on the page show up fine. But once I deploy my website to an IIS7 web server (doubt that other versions would make any difference, but you never know) then users can't see the images on the site until they log in. The website is an asp.net MVC site and I'm new to MVC, though I do have lots of experience with asp.net forms. It seems that only authenticated users are allowed to access the images

IIS Rewrite Input Types

久未见 提交于 2019-12-23 07:07:35
问题 What are the input types you can use in IIS rewrite rules? The ones I mean are like as follows: <conditions> <add input="{HTTP_HOST}" type=”Pattern” pattern="^www\.mysite\.com$" negate="true"> </conditions> HTTP_HOST URL REQUEST_FILENAME ? 回答1: You can try the below input types. See also reference docs for the URL Rewrite module. CACHE_URL DOCUMENT_ROOT HTTP_URL HTTP_HOST PATH_INFO PATH_TRANSLATED QUERY_STRING REQUEST_FILENAME REQUEST_URI SCRIPT_FILENAME SCRIPT_NAME SCRIPT_TRANSLATED

.net 4.5 Asp Mvc -> Error 403.14- IIS 7 - Windows Server 2008 R2

妖精的绣舞 提交于 2019-12-23 07:02:24
问题 When I want to deploy an MVC 4 (.net 4.5) application to my iis i got the 403.14 calling me that the content ist not browseable. This also occurs when i deploy the unchanged mvc 4 template. when using the mvc 4 template with .net 4.0 everything works. I checked the other posts but can't figure out the solution. ist set i ran aspnet_regiss -i which completed without any errors. the only strange thing is that .net 4.5 is installed in the .net 4.0 directory %windows%/microsoft.net/Framework64/ 4

How to configure single app domain to Two Applications?

微笑、不失礼 提交于 2019-12-23 05:50:12
问题 As i know for every application we host there is single app domain for respective applications which are hosted,but i want to use single app domain for my two applications as i have given same physical folder path for both applications.Please help if anyone knows,Thank you. 来源: https://stackoverflow.com/questions/55350815/how-to-configure-single-app-domain-to-two-applications

url rewrite for aspx page

浪子不回头ぞ 提交于 2019-12-23 04:15:17
问题 I have a page, called foo.aspx and i d like to rewrite the url as bar.something How to do this? How does url rewrite happens in asp.net Should i create a generic handler? or should i get some url rewrite modules and add to app? 回答1: This is done by configuring IIS, and will require IIS7, look here for configuration help: http://learn.iis.net/page.aspx/460/using-the-url-rewrite-module/ 回答2: Remember, you also have the new Routing option with ASP.NET 4.0: https://stackoverflow.com/questions

ASP.NET MVC application when deployed to IIS 7 in integrated mode using NHibernate data will not load

跟風遠走 提交于 2019-12-23 03:49:29
问题 We have built an ASP.NET MVC application which utilizes NHibernate, the MVCContrib version of StructureMap, and an onion architecture as outlined by Jeffery Palermo in ASP.NET MVC in Action. This application works well when running locally from Visual Studio 2008. The Index action on our Home controller loads a view which immediately pulls data from the database utilizing the tools as outlined above. When running on IIS 6 or in Classic Mode on IIS 7 this section of the page loads data. Of

How to set up URL Rewrite on IIS7 so that multiple subdomains redirect to the correct web site?

坚强是说给别人听的谎言 提交于 2019-12-23 01:50:55
问题 I asked a previous question about how to have multiple subdomains all pointing at the same site; the answer I accepted there was to use URL Rewrite. Cool. But for the life of me I cannot figure out how URL Rewrite works, and I consider myself a relatively smart guy. |-) Lots of questions... Each customer (and there will be hundreds, if not thousands) gets their own subdomain e.g. customer1.mydomain.com , cooldude.mydomain.com etc. The regex would be (.+)\.mydomain\.com , and all of these URLs

Azure Web Role Stress Test - 1000ms blocking operation in AsyncController

霸气de小男生 提交于 2019-12-23 01:37:14
问题 Today, I wanted to simulate waiting for a long-running blocking process (5 to 30 seconds) from within an AsyncController in an MVC3 web role. However, to begin, I just started with 1 second, to get things going. Yes, the wisdom of this is questionable, since the blocking operation cannot currently be run asynchronously on an I/O Completion Port to an external service, but I wanted to see what the performance limit is for this particular situation. In my web role, I deployed 6 small instances.

Unmanaged memory in a .net 4 application pool

落爺英雄遲暮 提交于 2019-12-23 01:14:03
问题 I'm trying to track down the source of some unmanaged memory in a .net 4 application (this is curiosity...I don't have a major problem with it, I just want to know what it is) My application currently consists of 1 file: index.html - contains "hello world" From a memory profiler, I load up index.html and it's consuming very little (in fact, the profile hasn't kicked int) I then load up /fish (which doesn't exist) and now suddenly we're on a total of about 57MB usage, 54MB of which is