开发者

WCF LINQ CSLA Problem

开发者 https://www.devze.com 2022-12-15 23:49 出处:网络
I have a solution that uses CSLA for Business Layer and LINQ to SQL on another. We need to use WCF so 开发者_如何学Cthat we can host our database on remote servers but it seems that the application ca

I have a solution that uses CSLA for Business Layer and LINQ to SQL on another. We need to use WCF so 开发者_如何学Cthat we can host our database on remote servers but it seems that the application cannot read the web.config file in WCF project using ContextManager. We tried using ConnectionManager and somehow it worked. Is there a known issue with ContextManager(Of Sample).GetManager(DBName) not reading the configuration in the WCF Project? Or I need to set something on both app.config(UI) and web.config(WCF)? Thanks.


ConnectionManager and ContextManager both use System.Configuration to read the connection string data from the config file.

Of course a ContextManager connection string is quite different from a "normal" ADO.NET connection string. Is it possible that your connection string is not in the correct format?

0

精彩评论

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