Can not run 1.0 application in .NET 1.1

Y

Yi

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
 
G

Guest

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.

Thanks a lot for the help.
Yi
 
Y

Yi

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
 
T

Tian Min Huang

Hi Yi,

Thanks for your post. I'd like to share the following information with you:

1. I suggest you to remove supportedRuntime for v1.0.3705 and see if it
works. For example, the following XML in the application configuration file:

<?xml version ="1.0"?>
<configuration>
<startup>
<supportedRuntime version="v1.1.4322" />
</startup>
</configuration>

Please refer to the following MSDN article for detailed information:

Targeting a .NET Framework Version
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
l/cpcontargetingnetframeworkversion.asp

2. Did you have .NET Framework 1.0 installed on that system? If so, you may
follow the steps described in KB article below to remove it cleanly from
your system:

PRB: Installation of .NET Framework Fails and Requires Manual Removal
http://support.microsoft.com/default.aspx?scid=kb;en-us;320112

I look forward to your response.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top