473,480 Members | 1,799 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Windows Service Compatability

I have created a Windows Service with VS.NET 2003 and compiled the service with Supported Runtimes v1.1.4322, v1.0.3705. When I try to install it on a machine that has only .NET 1.0 runtimes I get the following error message:

'System.Reflection.ReflectionTypeLoadException: One or more of the types in the assembly unable to load.'

When I compile the same code using .NET 1.0 SDK the program installs without any problems.

Does anyone know how to setup VS.NET 2003 to compile Windows Service to run on machine with .NET 1.0 only.
Peter

--
Thanks
-------------------
cz****@wsinc.com
Nov 15 '05 #1
3 3023
Peter,

Quite simply, you can not. VS.NET 2003 targets the 1.1 version of the
runtime. This is a good thing, as there are features in 1.1 that are not
supported in the 1.0 version of the runtime.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- ni**************@exisconsulting.com

"Peter" <cz****@wsinc.com> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
I have created a Windows Service with VS.NET 2003 and compiled the service
with Supported Runtimes v1.1.4322, v1.0.3705. When I try to install it on a
machine that has only .NET 1.0 runtimes I get the following error message:

'System.Reflection.ReflectionTypeLoadException: One or more of the types in
the assembly unable to load.'

When I compile the same code using .NET 1.0 SDK the program installs without
any problems.

Does anyone know how to setup VS.NET 2003 to compile Windows Service to run
on machine with .NET 1.0 only.
Peter

--
Thanks
-------------------
cz****@wsinc.com
Nov 15 '05 #2
Peter,

I actually spoke too soon. You might be able to create a config file for your app which will say which runtimes are supported. If you are not using any functionality in 1.1 that can be called from 1.0 (methods that don't exist, etc, etc), then you should be able to change the config file to add the "runtime supported" element and indicate that you support previous runtimes.
--
- Nicholas Paldino [.NET/C# MVP]
- ni**************@exisconsulting.com

"Peter" <cz****@wsinc.com> wrote in message news:%2***************@TK2MSFTNGP12.phx.gbl...
I have created a Windows Service with VS.NET 2003 and compiled the service with Supported Runtimes v1.1.4322, v1.0.3705. When I try to install it on a machine that has only .NET 1.0 runtimes I get the following error message:

'System.Reflection.ReflectionTypeLoadException: One or more of the types in the assembly unable to load.'

When I compile the same code using .NET 1.0 SDK the program installs without any problems.

Does anyone know how to setup VS.NET 2003 to compile Windows Service to run on machine with .NET 1.0 only.
Peter

--
Thanks
-------------------
cz****@wsinc.com
Nov 15 '05 #3
I did that, in the project properties I selected Supported Runtimes v1.1.4322, v1.0.3705 which creates the project.config.exe file, but I still get the error, but the same code works fine when I compile it with ..NET 1.0 SDK.

"Nicholas Paldino [.NET/C# MVP]" <ni**************@exisconsulting.com> wrote in message news:Os**************@tk2msftngp13.phx.gbl...
Peter,

I actually spoke too soon. You might be able to create a config file for your app which will say which runtimes are supported. If you are not using any functionality in 1.1 that can be called from 1.0 (methods that don't exist, etc, etc), then you should be able to change the config file to add the "runtime supported" element and indicate that you support previous runtimes.
--
- Nicholas Paldino [.NET/C# MVP]
- ni**************@exisconsulting.com

"Peter" <cz****@wsinc.com> wrote in message news:%2***************@TK2MSFTNGP12.phx.gbl...
I have created a Windows Service with VS.NET 2003 and compiled the service with Supported Runtimes v1.1.4322, v1.0.3705. When I try to install it on a machine that has only .NET 1.0 runtimes I get the following error message:

'System.Reflection.ReflectionTypeLoadException: One or more of the types in the assembly unable to load.'

When I compile the same code using .NET 1.0 SDK the program installs without any problems.

Does anyone know how to setup VS.NET 2003 to compile Windows Service to run on machine with .NET 1.0 only.
Peter

--
Thanks
-------------------
cz****@wsinc.com
Nov 15 '05 #4

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

Similar topics

22
2077
by: Stan Weiss | last post by:
I have a program writeen in Microsoft QC 2.5 for DOS which has a very simple interface of using printf and sscanf also gets and puts. Is there an easy way to convert this to Window? Thanks Stan
8
1242
by: Giox | last post by:
Hello everybody, I have problem using Windows Services. I want to host a server application on in a windows service and I'm not able to do that. In effect when I try to start the service I receive...
6
1662
by: Nak | last post by:
Hi there, I was wondering if anyone knew of a way to maintain compatability with assemblies providing the interfaces remains the same? At the moment if I re-compile an assembly without actually...
3
7467
by: Chris Paul | last post by:
I'm having trouble with PHP & PostgreSQL/OpenLDAP/Apache on Windows. I've set this up countless times on BSD (piece of cake) but I'm trying to do this on Windows now so that my developer can work...
0
1106
by: SenthilVel | last post by:
hi I have my application built with Dotnet Framework 1.1 and now i can see most of clients having both the versions 2.0 and 1.1 in their systems, i get an issue when i run my 1.1 application . ...
8
2352
by: Johs32 | last post by:
I would like to write some C code in winXP. I was told that I could use visual c++ but does that not only work for C++? What compiler is the best for C and C++ in windows? Johs
4
4152
by: tshad | last post by:
What would be a good way to check programmatically whether a service was running? We have a service that dies periodically and I need to check to see if this service is running. I know how to...
5
3441
by: Rudy Ko | last post by:
Hi, I want to create a web service to upload an xml file. Do anyone have sample code? Thanks !!! Regards, Rudy
1
1821
by: =?Utf-8?B?ZHVjaG92bGV0?= | last post by:
I tried installing Norton SystemWorks Premier 2007 onto my new laptop which is running Windows XP SP3 Home Edition. The installation SEEMED to go ok but then when I tried doing the initial...
0
7037
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
6904
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
7076
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
6886
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4768
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
2990
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2976
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1294
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
174
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.