Müsli
Müsli

Reputation: 1774

.NET Framework 4 requires Framework 2 or 3.5?

I'm a little confused. We have developed an net 4.0 application. We use nhibernate ( it has dependencies with .net 2 and 3.5). We have some machines with windows xp and framework 4 installed, framework 2, 3, and 3.5 were uninstalled. And the application runs ok. But, on production enviroment, it doesn't work. The message is like "the application configuration is incorrect. Reinstalling this application may fix this problem." We ran checkasm and saw that references to system.core version 3.5, system.ServiceModel version 3, and system.xml.linq version 3.5 are missing. Those references are done by nhibernate 3.1. Seems like referenced dlls has dependency on framework 2, 3, and 3.5. The question is: do i need to install those frameworks? It's my understanding that, net 4 is an "standalone" framework, unlike net 3 and 3.5 that are "extensions" of net 2.

Do you have any idea?

Thanks in advance for your patient

Upvotes: 1

Views: 531

Answers (1)

weismat
weismat

Reputation: 7411

.Net 4 allows side-by-side compatibility with 2,3 and 3.5.
Thus it must be something else which is your problem. Details are explained here: Side by Side Compatibility
This article outlines to configure multiple runtimes if needed.

Upvotes: 2

Related Questions