2016-04-14 54 views
0

我已经使用本地Visual Studio环境成功测试了Windows Azure BizTalk Services和内部部署SQL LOB混合集成。我想将我的适配器服务移动到我的开发独立IIS服务器。所以,我成功地在Windows 2012R2服务器上安装了BizTalk Adapter Service运行时。我以管理员身份打开Visual Studio 2012,并尝试通过转到服务器资源管理器> BizTalk适配器服务并右键单击添加BizTalk适配器服务菜单项来连接到该服务。输入URL http://myappserver:8080/BAService/ManagementService.svc/后,出现以下错误。Visual Studio 2012无法连接到远程计算机上的BizTalk Adapater服务

虽然花费大量时间搜索和阅读Microsoft文档,但我知道Windows身份验证是在IIS中为此服务设置的。所以,我尝试通过浏览器。我的Visual Studio机器不是作为开发IIS机器加入的域。所以,我被提示登录。通过提供我的IIS机器本地管理员用户凭证,我能够访问http://myappserver:8080/BAService/ManagementService.svc URL。有人遇到这个问题吗?我的更广泛的问题是,如何将此BizTalk服务解决方案部署到生产环境中。微软没有任何指导。


Unable to connect to the specified BizTalk Adapter Service. Please check the service URL including the scheme (http/https), server name and port.


Exception Code: Unauthorized

401 - Unauthorized: Access is denied due to invalid credentials.

Server Error

401 - Unauthorized: Access is denied due to invalid credentials.

You do not have permission to view this directory or page using the credentials that you supplied.

Stack Trace: System.Net.WebException: The remote server returned an error: (401) Unauthorized. at System.Net.HttpWebRequest.GetResponse() at Microsoft.BizTalk.Adapter.Services.Common.ServiceBusConnectClient.GetWebResponse(WebRequest request) at Microsoft.BizTalk.Adapter.Services.Common.ServiceBusConnectClient.get_WabsDeploymentAddress() at Microsoft.BizTalk.Adapter.Services.Common.ServiceBusConnectClient..ctor(Uri address, TimeSpan timeout, Boolean checkClient, Boolean trustAllCertificate) at Microsoft.BizTalk.Adapter.Services.Common.ServiceBusConnectClient..ctor(Uri address, Boolean checkClient, Boolean trustAllCertificate) at Microsoft.ServiceBus.AFConnect.ServerExplorer.FormAddServer.ButtonOK_Click(Object sender, EventArgs e)

回答

0

最后我终于明白了这一点。希望这会有助于某人。这是解决方案。当连接到远程BizTalk适配器服务并且您的机器不在域中时,可以使用以下命令从命令窗口启动Visual Studio。确保以管理员身份启动命令窗口。

的RunAs/netonly /用户:w12r2apps \管理员 “C:\ Program Files文件(x86)的\微软的Visual Studio 11.0 \ Common7 \ IDE \ devenv.exe的”

注:w12r2apps是您的服务器名称,其中BizTalk适配器服务运行时已安装。另外,请确保您使用的帐户是服务器上的域管理员或本地管理员。否则,将不会创建适配器(例如SQL Adapater)。

相关问题