开发者

How do i get my Windows Azure Worker Role to connect to my Ado.NEt Entity-based db

I've built a backend in ASP.NET MVC2 w开发者_Python百科hich has an underlying ADO.NET Entity-based Database.

In the MVC Backend, I call my database entities, i.e.:

Entities entities = new Entities();

...and that all works fine.

Unforutnetly, in my Azure/mvc2 project, My worker role makes the azure project throw weird exceptions:

"The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid."

Any ideas ladies and gentlemen?


Solved it myself - it was a PEBKAC issue. Had to manually set the configuration string in the Worker role's App.config (Copypasted from from the ASP/NET MVC2 Project's Web.config).

All works well now.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜