MVC部署问题 [英] MVC Deployment issue

查看:118
本文介绍了MVC部署问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


当我尝试在服务器中部署MVC 3应用程序时,URL中出现了多余的字符.我不确定这是什么.另外,当我在另一台服务器上托管相同的应用程序时,它也可以正常工作.

获得的结果

Hi Guys,


When i am trying to deploy the MVC 3 application in the server i am getting an unwanted characters in the URL . I am not sure what is it. Also when i host the same application in another server it works fine.

obtained result

http://localhost/(S(igqi2tjoar3d5ebficlmpo3i))/


预期结果


expected result

http://localhost


当我们导航到其他动作时,也会出现


also when we navigation to some other action it comes like

http://localhost/(S(igqi2tjoar3d5ebficlmpo3i))/Home/Index


对于简单的mvc3应用程序也会发生这种情况.

期待您的快速答复.


this happens for simple mvc3 application also.

Expecting your quick reply soon.

推荐答案

看起来像无cookie会话.检查您的web.config并确保其读取如下内容:

< sessionState cookieless ="false"; />
Looks like cookieless sessions. Check your web.config and make sure it reads something like:

<sessionState cookieless="false" />


Amazingggggggggggggggggggg !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

谢谢lottttttttttttt:)
Amazingggggggggggggggggg !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Thanks a lottttttttttt :)


这篇关于MVC部署问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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