views:

47

answers:

3

I have an app that I've recently added two C# classes to. It always built in both debug and release. The differences between the two configs are nothing. Now when I build the release, it says that one of the dependencies cannot be accessed. This is only for the release build. Nothing changed to that dependency and it always worked.

Any ideas?

A: 

Are the references between the various projects project, or binary references? If they are binary references, are your output folders pointing to the right locations for the different build targets and platforms? You may also want to ensure that your build order is correct.

Hugo
A: 

VS sometimes gets itself into this state. Try removing that reference from the project and adding it back in, and see if that doesn't cure it.

500 - Internal Server Error
A: 

So to resolve this issue, I had to add a config file at C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools that read:

<?xml version ="1.0"?>
<configuration>
    <runtime>        
        <loadFromRemoteSources enabled="true" />
    </runtime>
</configuration>
Jason N. Gaylord