We're building a .NET 4 WPF application that runs from a network drive. The application starts fine for me and most of my (developer) peers. Recently, a software tester has joined our development team and was put in the same AD groups as I'm in.
Whenever he launches the application, this dialog pops up:
and the app naturally crashes after that.
When attaching a debugger, the debugger breaks at the first line of EF 4.4's DbContext constructor, for which the code is as follows:
public class CardioDanosContext : DbContext
{
// ...
public CardioDanosContext()
: base("CardioDanos")
{
// Irrelevant first line
As you can see, we call the DbContext's constructor with a connection string name which is defined in our app.config like so:
<?xml version="1.0"?>
<configuration>
<configSections>
<!-- ... -->
</configSections>
<runtime>
<loadFromRemoteSources enabled="true"/>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="External;Resources;Base;Services;Modules;Data;"/>
</assemblyBinding>
</runtime>
<connectionStrings>
<add name="CardioDanos"
connectionString="Data Source={snip};Initial Catalog=CardioDanos;Integrated Security=True;"
providerName="System.Data.SqlClient"/>
</connectionStrings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
<appSettings>
<!-- ... -->
</appSettings>
<!-- ... -->
</configuration>
Now, I'm assuming it is an issue with permissions, but we've verified all permissions for the affected user and they all seem in order. He can read and modify the app.config file without problems. I also assume it has something to do with running it from a network drive, but then again, it works fine for some of us.
I've not really found anything about this while searching the Internet, but does anyone have a clue why this could be happening?