I did not use a configuration file when I did the test.
Now I know that I need to set up the configuration file. I
tried to put the following in the file "MyApp.exe.config",
where "MyApp" is my application's name.
------------------------------------------
<configuration>
<startup>
<supportedRuntime version="v1.1.4322" />
<supportedRuntime version="v1.0.3705" />
</startup>
</configuration>
------------------------------------------
I put the file in the same directory as the application
executable. But it does not help. The application still
tries to load a 1.0 dll, which is not installed. I may be
wrong by doing so, since I do not understand what you mean
by "explicitly set your app" and "app.config".
Thanks a lot for the help.
Yi
-----Original Message-----
Check out this article:
http://msdn.microsoft.com/netframewo...ologyinfo/vers
ioncomparison/default.aspx
Quote: A version 1.0 application installed on a system
with only version 1.1of the .NET Framework present will try to run against
version 1.1 unless theadministrator explicitly disallows this behavior.
Did you explicitly set your app. only to work with the
1.0 framework (e.g.in the app.config)?
--
Greetz,
Jan
__________________________________
Read my weblog: http://weblogs.asp.net/jan
"Yi" <yc**@ottawamkg.com> schreef in bericht
news:02****************************@phx.gbl... Hello,
I have a console application that is compiled with
VB.NET 1.0. On a machine that has a .NET 1.1 framework, when I
run the application, it gives an error
message "c:\winnt\microsoft.net\framework\v1.0.3705
\mscorwks.dll could not be loaded".
It is right that there is no such dll on this machine
since I have installed .NET 1.1 framework. But I do not
know why my application can not be run with the dll that
is in .NET 1.1 framework directory. How can I resolve
this problem?
Thanks in advance.
Yi
.