Link to home
Start Free TrialLog in
Avatar of cmdolcet
cmdolcetFlag for United States of America

asked on

VS.net 2010

I get the following error when I try and compile a project.

'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.'      C:\Users\Software\AppData\Local\Temporary Projects\WindowsApplication1\LC      WindowsApplication1

I am new to the 2010.Net environment. Tried to load a new control from a 3rd party and after I added it and ran the project I got the above error. I removed the control off the form and still receive the error what is going on?

Thanks,
Avatar of Paul MacDonald
Paul MacDonald
Flag of United States of America image

It sounds like the control you're using relies on the .Net Framework 4.0 and VS2010 doesn't know what to do with that.

Do you have a copy of VS2015 lying around?
Avatar of cmdolcet

ASKER

I may have I downloaded a trial version copy. But I think I deleted it. How can I know for sure? and how can I delete things?
"How can I know for sure?"
Only you can know if you know for sure, but here's the Visual Studio Community Edition page where you can use a version of 2015 for free.

"...how can I delete things?"
You'll need to be more specific, sorry.
I did download the software and tried to remove it after the evaluation period was completed. I removed the software via the add/remove program feature.

What would I do next to avoid any further issues.
I think you had a different version of Visual Studio - I don't believe the Community Edition expires.
OK so what would be my next steps?
I can't really say.  I guess I'd back up your existing code, install the 2015 Community Edition, try to bring your project over, and see if it compiles.
No these errors happen in VS.net 2010, not in 2015?
My very first response was "It sounds like the control you're using relies on the .Net Framework 4.0 and VS2010 doesn't know what to do with that."  

That said, you're under no obligation to take my advice - it's really just a best guess anyway, based on the symptoms you've described.
So you think I am missing >net Framwork 4.0 that could be causing it!
ASKER CERTIFIED SOLUTION
Avatar of Paul MacDonald
Paul MacDonald
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial