views:

37

answers:

2

I have a Silverlight site hosted in an asp page, it has been developed using vs2010 using .net 3.5 framework and silverlight 4. It all works on my dev box. However when I publish the site and get it deployed I get the error:

Could not load file or assembly 'Moe.Tactical.Ttas.Web' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.BadImageFormatException: Could not load file or assembly 'Moe.Tactical.Ttas.Web' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

I have checked that the ISS asp setting are using 2.0.50727, and that all my references are using that runtime also. I am not sure what to do to work out what the missing dependencies are at this point (I don't have access to the deployment box, I will have to go and sit with a system admin).

+1  A: 

This looks like a case of the GAC, and nothing to do with Silverlight/VS 2010/whatever.

Basically that assembly lives in the GAC of your dev box, but now on your production box, and the DLL is not included in your build.

TheGeekYouNeed
There are two projects in my solution that are not silverlight, and both of those dll's are included in my published bin folder... so it seems to be included in my build.
Grayson Mitchell
A: 

I was actually exactly the opposite of 'TheGeekYouNeed's suggestion ... the system administrator had not followed my instructions, and had included a couple of extra assemblies in my bin folder, lol.

So interestingly it was complaining about having an extra file! (well actually an extra file that was probably a .net 4 one)

Grayson Mitchell