473,387 Members | 1,575 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Can not run 1.0 application in .NET 1.1

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
Nov 22 '05 #1
4 1699
Check out this article:
http://msdn.microsoft.com/netframewo...n/default.aspx

Quote: A version 1.0 application installed on a system with only version 1.1
of the .NET Framework present will try to run against version 1.1 unless the
administrator 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

Nov 22 '05 #2
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
-----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

.

Nov 22 '05 #3
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
-----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

.

Nov 22 '05 #4
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/de...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...en-us%3B320112

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.

Nov 22 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: J. Baute | last post by:
I'm caching data in the Application object to speed up certain pages on a website The main reason is that the retrieval of this data takes quite a while (a few seconds) and fetching the same data...
3
by: Amit Dedhia | last post by:
Hi I am developing a Dot net application (involving image processing) on a uni processor. It works well on my machine. I then take all my code on a multi processor, build and run the application...
6
by: orekin | last post by:
Hi There I have been trying to come to grips with Application.Run(), Application.Exit() and the Message Pump and I would really appreciate some feedback on the following questions .. There are...
20
by: Peter Oliphant | last post by:
How does one launch multiple forms in an application? Using Photoshop as an example, this application seems to be composed of many 'disjoint' forms. Yet, they all seem somewhat 'active' in...
6
by: Josef Brunner | last post by:
Hi, I published my application (VS 2005) and am now trying to install it when I get this error message. It worked before...even on a different machine. Here is the detailed description: ...
9
by: jeff | last post by:
Hi All. I realize that when my Deployed winforms application starts, Windows needs to load the .net 2 framework before control is given to my application.... Is there anyway to either ... -...
3
by: asadikhan | last post by:
Hi, I have written a windows application with a GUI (let's call it MENU). I own the code for this application and have access to it. We have another application that is a third-part windows...
2
by: Michael Kalika | last post by:
Hi, We have developed a VSTO 2005 Excel application and we would like to leverage ClickOnce deployment mechanism for distribution of this application. How can we do that? I was digging in MSDN...
0
by: Tifer | last post by:
Hello, I am building my first .Net Application. The first couple of Publish and Installs I did went fine. But after a couple of builds, I get a modal dialogue box error every time upon trying...
4
by: Dave | last post by:
I have a global.asax file with Application_Start defined and create some static data there and in another module used in the asp.net application and I realize that static data is shared amongst...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.