wcf 中的 ActiveX 数据对象 (ADO) 在部署后不起作用
我在我的 silverlight 应用程序中使用 ActiveX 数据对象 (ADO) 来显示创建数据库连接向导.. 数据链接属性对话框 .. 这是在后台 WCF 服务中创建并显示的。
当我从 Visual Studio 2010 运行它时,它工作得很好。但是当我将它部署在本地 IIS 中时,它没有显示。
我尝试过捕获异常,但没有。
流程就在这里停止(以粗体和斜体标记)。我还在 wwwroot
Log("before adodb"); 中有客户端策略和跨域文件 MSDASC.DataLinks dataLinks = new MSDASC.DataLinks();
Log("after adodb");
if (dataLinks == null)
Log("Data link is null");
else
Log("data link isi not null");
//note that a reference to:
// c:\Program Files\Microsoft.NET\Primary Interop Assemblies\adodb.dll
//is also required to read the ADODB._Connection result
ADODB._Connection connection;
Log("Promting for new connection");
***connection = (ADODB._Connection)dataLinks.PromptNew();***
Log("after new connection");
任何帮助表示赞赏。谢谢。
i am using ActiveX Data Objects (ADO) in my silverlight application to show the create database connectoin wizard .. data link properties dialog box .. this is create and showed in the background WCF service.
this works perfectly fine when i run it from visual studio 2010. but when i deploy it in my local IIS, it does not show up.
i have tried cathing the exception, but there is none.
The flow just stops here ( marked in bold and italics). I also have the client ploicy and crossdomain file in wwwroot
Log("before adodb");
MSDASC.DataLinks dataLinks = new MSDASC.DataLinks();
Log("after adodb");
if (dataLinks == null)
Log("Data link is null");
else
Log("data link isi not null");
//note that a reference to:
// c:\Program Files\Microsoft.NET\Primary Interop Assemblies\adodb.dll
//is also required to read the ADODB._Connection result
ADODB._Connection connection;
Log("Promting for new connection");
***connection = (ADODB._Connection)dataLinks.PromptNew();***
Log("after new connection");
any help is appreciated . thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于您使用 Active X 组件,因此必须在浏览器外运行应用程序。你尝试过吗?
Because you use Active X components, you have to run the application out-of-browser. Did you try that?