473,796 Members | 2,585 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problems with InstallUtil on FW1.1

Hi there,

I have to installa a Windows service on a machine which has only the
fw1.1 installed. I did the following:
- Create a WindowsService application (using the VisualStudio template);
- Create the ServiceInstalle r;
- Imported a .dll in the solution (which is the logic of my application);
- Build the solution using MSBee to target with the fx1.1
- Run the InstallUtil.exe for the v1.1.etc of the framework...

....and got a System.BadImage FormatException .
Any suggestion?

Thanks in advance,
Giulio

--
OnAir:
May 21 '07 #1
3 1271

"Giulio Petrucci" <fa******@faked omain.comwrote in message
news:%2******** ********@TK2MSF TNGP06.phx.gbl. ..
Hi there,

I have to installa a Windows service on a machine which has only the fw1.1
installed. I did the following:
- Create a WindowsService application (using the VisualStudio template);
- Create the ServiceInstalle r;
- Imported a .dll in the solution (which is the logic of my application);
- Build the solution using MSBee to target with the fx1.1 - Run the
InstallUtil.exe for the v1.1.etc of the framework...

...and got a System.BadImage FormatException .
Any suggestion?
..Net Framework 1.1 cannot load an assembly created with .Net Framework 2.0,
if that's what you have done.

As always, Google is your friend.

http://www.google.com/search?hl=en&q...=Google+Search

May 21 '07 #2
Hi Mr.Arnold,

Mr. Arnold ha scritto:
>- Build the solution using MSBee to target with the fx1.1 - Run the
InstallUtil.ex e for the v1.1.etc of the framework...
.Net Framework 1.1 cannot load an assembly created with .Net Framework
2.0, if that's what you have done.
But if I have built the solution using MSBee and making the assembly
target with fw1.1 (see before), it should be able to load the assembly,
right?

Thanks,
Giulio

--


May 21 '07 #3

"Giulio Petrucci" <fa******@faked omain.comwrote in message
news:uu******** ******@TK2MSFTN GP02.phx.gbl...
Hi Mr.Arnold,

Mr. Arnold ha scritto:
>>- Build the solution using MSBee to target with the fx1.1 - Run the
InstallUtil.e xe for the v1.1.etc of the framework...
>.Net Framework 1.1 cannot load an assembly created with .Net Framework
2.0, if that's what you have done.

But if I have built the solution using MSBee and making the assembly
target with fw1.1 (see before), it should be able to load the assembly,
right?
Then the other problem could be that .Net can't find the assembly. I suggest
that you start reading the issues in the link provided that others are
having in this area in an attempt to find a solution.

May 21 '07 #4

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

Similar topics

0
2187
by: Mike R | last post by:
I have 2 questions about custom options in InstallUtil. The help screen for InstallUtil says this: --- quote --- Options take the form /switch= <...a list of options follows...> Individual installers used within an assembly may recognize other options. To learn about these options, run InstallUtil with the paths of the assemblies
3
1081
by: TT (Tom Tempelaere) | last post by:
Hi there I am making a service project in C#, and I'm in the process of writing the installer. I made an installer class by using the "Add Installer" menu-item in the design window of the service, then I configured the properties of the installers When I run InstallUtil on the executable, it fails with the following message "An exception occurred while trying to find the installers in the c:\...\obj\debug\MyService.exe assembly...
7
34386
by: scarred wind | last post by:
when i run my program, an error message prompt me that i should add the installutil.exe. How do i checked for the installutil.exe? How can i add it to my Timer program? ---------------------------------------------- when you fear to fail, you fear something that has not yet happened. *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
3
3805
by: Rob Meade | last post by:
Hi all, I've just followed an article regarding the creation of a windows service - so far so good - right up until I try to do the install... I get the following error message in the command prompt: Exception occurred while initializing the installation: System.IO.FileNotFoundException: File or assembly name Documents, or one of its
0
2647
by: Benny Ng | last post by:
Hi,All, When i deploy Enterprise library with my application ,i used XCOPY to deploy it into my test server. But when application runs, shown some error related registry. (But actually I haven't any method or component to wrote registry) After I used "InstallUtil" to registry Enterprise Library (those DLLs) to the deployment server, the application runs smoothly. Now I wonder why i need to registry those Enterprise Library DLLs into
2
2056
by: tshad | last post by:
I have been running into all kinds of problems with VS2003 and handling Windows services. One of the main problems is trying to uninstall services. It doesn't work half the time. Mainly it seems that is the case if you you try to change the service name (which it wants to force as Service1). If you change the name, it installs OK and sort of works. But if you try to uninstall it, it says you are missing something. C:\Documents and...
5
6204
by: Jamin Mace | last post by:
I'm trying to create a batch script that will allow me to use the .Net installutil.exe to install a windows service. I want to be able to specify the username and pasword in my script so that I don't get prompted. Here is an example of my script. No matter what I still get prompted. Does anyone have any Ideas? C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\installUtil.exe C:\Projects\myservice\bin\myservice.exe...
3
11970
by: Installutil System.BadImageFormatExcepti | last post by:
I've tried to make a Windows Service using the 2005 C# and when I go to use Installutil it returns with an System.BadImageFormatException error while intializing the installation. I've even gone as far as creating a service with 2003 C# that Installutil works with with then I try to upgrade the 2003 project to 2005 and then I start getting the excpetion again. Is there a known issues with this or s there a work around for this?
1
11997
by: vovan | last post by:
My VB 6 program uses Windows Service I developed with VB 2005. Setup for VB 6 project, created in InstallShield 12, installs Framework 2 if it is not presented on the client machine. I ran setup on Vista Business and I did not see that Framework was installed. I decided that Framework 3 is there and it's not necessary to install Framework 2. After setup I have to install my Windows Service manually. In order to do that I need...
2
3144
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgRGVzYXJyb2xsbw==?= | last post by:
Hi all people, everybody I create several windows services in VS 2005. The services can be installed by MSI, and too using installutil command. If the service has Installer class, all is right. My question now, how can I know, in my code in Installer class, if the caller is MSI or installutil ??
0
9673
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9525
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10169
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10003
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9050
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6785
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5569
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2924
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.