C#webapplication仅在本地m / n中工作,而不在Web中 [英] C# webapplication is working only in local m/n not in web

查看:134
本文介绍了C#webapplication仅在本地m / n中工作,而不在Web中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在VS 2008中创建一个web应用程序c#。它在本地工作正常。

表示,如果我使用链接,如

http:// Localhost / virtualdirectoryname /default.aspx

它工作正常。但是如果我使用我的端口地址而不是像本地主机那样

http:// port address // virtualdirectoryname / default.aspx

它不起作用......

请尽快给出一个好的解决方案......

谢谢...... 。

I am creating one webapplication in VS 2008 c#.It works proper in local.
means,if i use the link like
http://Localhost/virtualdirectoryname/default.aspx
it is working properly.But if i use my port address instead of tht localhost like
http://port address//virtualdirectoryname/default.aspx
it is not working...
please give a good solution as soon as possible...
thanks.......

推荐答案

你不是说http://地址:端口?您是否安装了IIS,或者您使用的是内置的VS Web服务器?如果你有IIS,它是否配置为使用主机头?
Don''t you mean http://address:port? Do you have IIS installed or are you using the built-in VS web server? If you have IIS, is it configured to use host headers?


我已经安装了IIS。如何配置它以使用主机头?
i have installed IIS .How i can configure it to use host headers?


您不必安装IIS或配置主机头。我的问题是因为拥有或不拥有IIS会影响您访问网站的方式。这同样适用于主机头。


如果您没有IIS并且只使用内置的Visual Studio Web服务器,那就可以解释为什么您无法访问任何其他方式的网络应用程序。


你想做什么,你打算怎么做?
You don''t have to install IIS or configure host headers. My question was there because having or not having IIS affects how you can access the web site. The same applies to host headers.

If you didn''t have IIS and only were using the built-in visual studio web server, that would explain why you can''t access the web app in any other way.

What are you trying to do and how are you trying to do it?


这篇关于C#webapplication仅在本地m / n中工作,而不在Web中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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