asp.net mvc ajax请求iis [英] asp.net mvc ajax requst iis

查看:94
本文介绍了asp.net mvc ajax请求iis的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在VS2010,Asp.net mc2项目中工作.该项目已完成,但仍有待IIS公开,但出现了问题.
调用controller方法的Ajax请求在IIS上不起作用,但是在vs中起作用.我不知道是否应该特别为iis ajax支持添加一些内容?
我需要帮助,以及如何转发请求,并且将url解释为带有参数的MVC请求?
我使用IIS.5
最好的问候
Ivan

I work in VS2010, Asp.net mc2 project. The project was completed, it remains to be revealed at the IIS, but the problems arise.
Ajax request that calls the controller method does not work on IIS, but work in vs. I do not know whether something should be included especially for iis ajax support?
I need help and how to forward the request and url is interpreted as the MVC request with parameters?
I use IIS.5
Best regards
Ivan

推荐答案

好吧,我听说过许多与这种部署有关的问题.如果Ajax请求无法正常工作,那么其他页面请求是否可以正常工作(home除外)?

我的理解是,您需要在盒子上完全注册.NET,并以柔和,令人信服,友好的方式配置IIS.换句话说,它不友好.

这里''是堆栈溢出 [ ^ ]处理该问题的问题.

我可以把它扔在那里吗? IIS 5已有10多年历史了...这是一个商业应用程序吗? BizSpark或DreakSpark或WebSpark免费提供W2k8的新版本.为什么不尝试这些程序之一?

无论如何,希望对您有所帮助.

干杯.
Well, I have heard a number of problems related to this kind of deployment. If Ajax requests aren''t working, are you other page requests working (other than home)?

My understanding is that you need to get .NET fully registered on the box and configure IIS in a gentle, convincing, friendly way. Said another way: it''s not friendly.

Here''s a Stack Overflow[^] question that deals with the issue.

Can I just throw this out there as a side note? IIS 5 is 10+ years old...is this a commercial app? A new version of W2k8 is free with BizSpark or DreakSpark or WebSpark. Why not give one of those programs a try?

At any rate, hope this helps some.

Cheers.


所有工作但ajax不工作不能调用控制器方法,在vs所有工作中.
解决方案之一是Url.Action("Method","Controller")..不起作用

请帮帮我吗?
all work but ajax not working not call controller method,in vs all work.
One of more solution is Url.Action("Method","Controller")..not working

Please help me?


这篇关于asp.net mvc ajax请求iis的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆