开发者

ActiveX Data Objects (ADO) in wcf not working after deployment

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 l开发者_如何学Goink 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.


Because you use Active X components, you have to run the application out-of-browser. Did you try that?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜