请帮助关于vs自己的服务器和部署的IIS服务器之间的路径差异 [英] Please help in regards to pathing differences between vs own server and deployed IIS server
问题描述
基本上在编码和调试时,我使用"/ Home"例如作为路径
当部署时,我必须将代码更改为"Home"。这是领先的原因/
为什么会这样?请帮助我理解,以及如何编码它以便路径在IIS7和VS自己的iis快递上工作
ps:这会影响ajax,控制器,加载的多个路径一个真正的痛苦!
嗨朋友,
欢迎。
此论坛适用于Visual Studio IDE问题,您的问题与IIS更相关,并且有特定论坛,您可以在那里发布您的问题以便快速获取专业的答案。
我也帮你找到这个有关IIS和IIS快递的信息的页面:
https://msdn.microsoft.com/en-us /library/58wxa9w5%28v=vs.120%29.aspx?f=255&MSPPError=-2147217396
希望它有帮助。
祝你好运,
陈伟伟
Basically while coding and debugging i use "/Home" for example as a path
When deployed i have to change the code to "Home" that is drop the leading /
Why is that? please help me understand and also how code it so that the paths work on both IIS7 and VS own iis express
ps: this effects multiple paths for ajax, controllers, loading xml and images etc. A real pain!
Hi friend,
Welcome.
This forum is for Visual Studio IDE issues, and your issue is more related to IIS, and there is particular forum for that, you may post your issue there in order to get a quick and professional answer.
I also help you find this page which has some information about IIS and IIS express:
https://msdn.microsoft.com/en-us/library/58wxa9w5%28v=vs.120%29.aspx?f=255&MSPPError=-2147217396
Hope it helps.
Best regards,
Fletch
这篇关于请帮助关于vs自己的服务器和部署的IIS服务器之间的路径差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!