iis-6

ASP.NET MVC + jQuery + IIS6: Multiple Ajax requests

我只是一个虾纸丫 提交于 2019-12-01 12:22:46
I'm not sure where the problem is... I have an ajax request that checks the tracking information for a package on a page with a list of packages: $(".fedex_status").each(function() { var item = this; // some code to construct tracking_url $.ajax({ type: "GET", url: tracking_url, async: true, cache: false, success: function(data) { $(item).html("(" + data + ")"); }, error: function() { $(item).html("request failed...");} }); }); So if there are 10 packages on the page (10 things with class 'fedex_status') 10 requests are created. The requests work fine, but results are returned one at a time

ASP.NET MVC routing fails when using default.aspx/controller/action style url

旧巷老猫 提交于 2019-12-01 12:19:27
问题 I'm deploying an ASP.NET MVC site to a IIS6 webserver, so I'm using a default.aspx/{controller}/{action} style routing strategy. However, for some reason it doesn't really work when using the default.aspx part. No matter the url, it always gets the default action (Index) on the default controller (Public). I've been using the excellent Routing Debugger to see what's going on. route fail http://img169.yfrog.com/img169/7532/routefail.gif As you can see I'm requesting default.aspx/contact ,

How to debug asp.net website code hosted on IIS?

强颜欢笑 提交于 2019-12-01 12:02:31
I am getting some issues/bugs in my code. I need to debug the code from my visual studio, but code is deployed on IIS. Can you please provide some solution so that I can debug the code and find the error I am using Windows XP. you can refer below link. This link contains what you need... http://www.codeproject.com/Articles/37182/Debug-your-ASP-NET-Application-while-Hosted-on-IIS If you need to debug a remote server, then you should refer to the following link: Remote IIS Debugging : Debug your ASP.NET Application which is hosted on "Remote IIS Server" (interestingly enough, by the same author

MVC3 RC app deployed on IIS 6 giving “403 forbidden” error

巧了我就是萌 提交于 2019-12-01 11:44:01
I've deployed a very simple MVC3 RC app to an IIS 6 + Windows 2003 server. I'm just getting a "403 forbidden" error when trying to accesss the root. Right now the app is only one page, so there are no others to try out. I noticed there is no longer a default.aspx in the root to handle default requests, could this maybe be the problem? Or is there some special config needed for IIS 6? It depends. If you are using extensionless routes then yes there's a special config . I've just deployed an MVC3 RC app on IIS6.0+win2003 server recently, To get the route works correct ,all your should do is to

How to debug asp.net website code hosted on IIS?

蓝咒 提交于 2019-12-01 11:36:40
问题 I am getting some issues/bugs in my code. I need to debug the code from my visual studio, but code is deployed on IIS. Can you please provide some solution so that I can debug the code and find the error I am using Windows XP. 回答1: you can refer below link. This link contains what you need... http://www.codeproject.com/Articles/37182/Debug-your-ASP-NET-Application-while-Hosted-on-IIS 回答2: If you need to debug a remote server, then you should refer to the following link: Remote IIS Debugging :

ASP.NET MVC + jQuery + IIS6: Multiple Ajax requests

萝らか妹 提交于 2019-12-01 11:12:13
问题 I'm not sure where the problem is... I have an ajax request that checks the tracking information for a package on a page with a list of packages: $(".fedex_status").each(function() { var item = this; // some code to construct tracking_url $.ajax({ type: "GET", url: tracking_url, async: true, cache: false, success: function(data) { $(item).html("(" + data + ")"); }, error: function() { $(item).html("request failed...");} }); }); So if there are 10 packages on the page (10 things with class

Redirect to webapp default document when another page is specified?

本小妞迷上赌 提交于 2019-12-01 11:05:23
IIS6, ASP.NET 2.0, No Forms Authentication I'm calling Response.Redirect("~/foo.aspx"), but the default document ("Default.aspx") for my site is appearing. To make matters worse, it only happens intermittently. Sometimes the redirect displays the right page. I've checked session state, and I don't see any values in the web.config (that is, I'm assuming I'm using the 20-minute defaults). I wish I had more relevant information to share (I'll do my best to answer any questions). Any ideas? Why isn't it redirecting to the specified page? EDIT: I've looked deeeeeper into the code and learned more

Redirect to webapp default document when another page is specified?

不问归期 提交于 2019-12-01 09:31:37
问题 IIS6, ASP.NET 2.0, No Forms Authentication I'm calling Response.Redirect("~/foo.aspx"), but the default document ("Default.aspx") for my site is appearing. To make matters worse, it only happens intermittently. Sometimes the redirect displays the right page. I've checked session state, and I don't see any values in the web.config (that is, I'm assuming I'm using the 20-minute defaults). I wish I had more relevant information to share (I'll do my best to answer any questions). Any ideas? Why

Can I make IIS add (inject) HTML to every page it serves?

和自甴很熟 提交于 2019-12-01 09:20:21
I would like to add some HTML to every page that our IIS 6 server serves. It's serving static HTML for the most part. Is this something IIS or an extension can do? I would need some control over how and where the HTML is injected, in this case before the tag. Thanks for your suggestions! Natively I believe the only thing you can do is insert a document footer (on the Documents tab). If you're familiar with ASP.NET, you could write a HTTP Response Filter to do that. Read this article by Milan Negovan . The HttpResponse class has a very useful property: public Stream Filter {get; set;} MSDN

Error handling for ASP.NET MVC 2 and IIS 7.0

廉价感情. 提交于 2019-12-01 08:29:00
Good day! I've recently switched from IIS 6.0 to IIS 7.x and I'm in search of error handling technique of my dream for ASP.NET MVC 2. What I want to achive: Handle all unhandled exceptions in one place (preferable in Global.asax handler) Custom handlers for 404 and 403 errors (both for MVC controller\actions and static files). These handlers should not perform rewriting and should send HTTP error codes. For example if user navigates to http://example.com/non-existing-page/ he should remain on this URL, but get HTTP 404 status and custom 404 page. Ability to trigger 404 and 403 errors