开发者

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

开发者 https://www.devze.com 2023-01-05 16:42 出处:网络
I\'ve built a backend in ASP.NET MVC2 w开发者_Python百科hich has an underlying ADO.NET Entity-based Database.

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

精彩评论

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