设置IIS防爆preSS接受上的Visual Studio 2012的本地连接 [英] Setting up IIS Express to accept local connections on visual studio 2012

查看:140
本文介绍了设置IIS防爆preSS接受上的Visual Studio 2012的本地连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做了MVC4 Web服务和与IIS前preSS本地主机上运行似乎罚款。结果
但我需要从外部访问,所以我将不得不使用一个本地IP。

I made a web service with MVC4 and running on localhost with IIS express seems fine.
But I need to access from outside, so I'll have to use a local IP.

我发现,IIS防爆preSS只接受在头本地主机规格传入的请求。

I've found out that IIS Express only accepts incoming requests with localhost specification in the header.

我试图去了对ApplicationHost.config,改变了

I've tried to go to the "applicationhost.config" and change the

binding protocol="http" bindingInformation="*:4019:localhost"

这样:

 binding protocol="http" bindingInformation="*:4019:10.250.38.85"      

但现在的Visual Studio不会让我运行IIS防爆preSS并称其无法启动。

but now visual studio wont let me run IIS Express saying its unable to launch.

我也一直在四处游荡IIS管理器中试图附加的网站,没有成功的项目之一。

I've also been wandering around IIS manager trying to attach one of the websites to the project without success.

我是什么忘记?

我还需要这种使用SSL和不知道如何配置

I'll also need this to use SSL and not sure how to configure

我试过编辑IIS防爆preSS对ApplicationHost.config和更改绑定协议=HTTP到https但随后vs2012想不出甚至加载的项目说这不可能创建虚拟目录

I've tried to edit IIS Express applicationhost.config and change binding protocol="http" to https but then vs2012 couldnt even load the project saying it couldnt create the virtual directory

有没有办法来改变IIS前preSS正常IIS 7这样我就可以使用管理员?

Is there a way to change IIS express to normal IIS 7 so I can use the manager?

推荐答案

您可以在IIS分配IP如下:

You can assign IP in the iis as follows:

然后,你需要发布您的网站到这个IIS站点。它会工作......

Then you need to publish your website into this iis website. it will work....

这篇关于设置IIS防爆preSS接受上的Visual Studio 2012的本地连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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