Share via


Could not load file or assembly 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Internals\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Internals.dll

Question

Monday, June 1, 2015 1:33 PM

Hi Team,

When I am adding references to the latest version of Syncfusion and building the application I am getting the error message

"'Could not load file or assembly 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Internals\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Internals.dll' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.'"

Can you please help what might be the real issue.

All replies (1)

Tuesday, June 2, 2015 8:16 AM âś…Answered

Hi JMR_1988,

Which kind of development language/project type did you use/create?

>>"'Could not load file or assembly 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Internals\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Internals.dll' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.'"

I met this issue before, we have to make sure all of our projects use the same version of the .NET Framework.

For example, if one projects was targeted to .NET 4.5, but another is using 3.5 or earlier, maybe it would have this issue when we add it as the referencs.

Reference:

https://social.msdn.microsoft.com/Forums/vstudio/en-US/f9c42103-558a-4fe1-b9fb-4a316854433f/this-assembly-is-built-by-a-runtime-newer-than-the-currently-loaded-runtime-and-cannot-be-loaded?forum=clr

Best Regards,

Jack

We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.