machine-config

Connection Strings for Entity Framework

我只是一个虾纸丫 提交于 2019-11-28 05:20:52
I want to share same Database information across multiple entities in Silverlight.. but I want the connection string to be named xyz and have everyone access that connection string from machine.config... The meta data part of the entities will be different since I didn't name the entities the same.. Can I put multiple entities in that metadata section? Here is an example.. I want to use this connection string but note that i put multiple entities in the metadata section.. Basically I want to take this Connection String <add name="XYZ" connectionString="metadata=res://*/ModEntity.csdl|res://*

The remote server returned an error: (407) Proxy Authentication Required

这一生的挚爱 提交于 2019-11-28 04:03:10
I'm getting this error when I call a web service: "The remote server returned an error: (407) Proxy Authentication Required". I get the general idea and I can get the code to work by adding myProxy.Credentials = NetworkCredential("user", "password", "domain"); or by using DefaultCredentials in code. My problem is that the call to the web service works in production without this. It seems like there is a non code solution involving Machine.config, but what is it? At the moment I can't get to the production box's machine.config file to see what that looks like. I tried updating my machine.config