473,413 Members | 1,727 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,413 software developers and data experts.

run WindowsService in x86 mode on a 64bit Server 2003

Hi all

I have written a WindowsService in C# 2005.
I am running this service on a 64bit Windows Server 2003
and I like to run some Interop.Excel within this service.

It seams that Interop does not run in 64bit mode ...
I have tried to compile the service as x86 but it does not help,
the service is still running in 64bit mode ...

Does anybody know something about a issue like this??
Would be happy for any comment !

Best regards
Frank Uray
Mar 29 '06 #1
3 2489
Set the build option "Platform target" to X86. The default is Any CPU, which
means, run as 64 bit on a 64 bit OS and 32 bit on a 32 bit OS.

Willy.

"Frank Uray" <Fr*******@discussions.microsoft.com> wrote in message
news:D1**********************************@microsof t.com...
| Hi all
|
| I have written a WindowsService in C# 2005.
| I am running this service on a 64bit Windows Server 2003
| and I like to run some Interop.Excel within this service.
|
| It seams that Interop does not run in 64bit mode ...
| I have tried to compile the service as x86 but it does not help,
| the service is still running in 64bit mode ...
|
| Does anybody know something about a issue like this??
| Would be happy for any comment !
|
| Best regards
| Frank Uray
Mar 29 '06 #2
Hi Willy

Thanks for your answer.
I have done this already, but it is still running in 64bit mode...

Best Regards
Frank

"Willy Denoyette [MVP]" wrote:
Set the build option "Platform target" to X86. The default is Any CPU, which
means, run as 64 bit on a 64 bit OS and 32 bit on a 32 bit OS.

Willy.

"Frank Uray" <Fr*******@discussions.microsoft.com> wrote in message
news:D1**********************************@microsof t.com...
| Hi all
|
| I have written a WindowsService in C# 2005.
| I am running this service on a 64bit Windows Server 2003
| and I like to run some Interop.Excel within this service.
|
| It seams that Interop does not run in 64bit mode ...
| I have tried to compile the service as x86 but it does not help,
| the service is still running in 64bit mode ...
|
| Does anybody know something about a issue like this??
| Would be happy for any comment !
|
| Best regards
| Frank Uray

Mar 29 '06 #3
Sorry, works for me. Are you sure it runs in 64 bit mode?

Willy.

"Frank Uray" <Fr*******@discussions.microsoft.com> wrote in message
news:C4**********************************@microsof t.com...
| Hi Willy
|
| Thanks for your answer.
| I have done this already, but it is still running in 64bit mode...
|
| Best Regards
| Frank
|
| "Willy Denoyette [MVP]" wrote:
|
| > Set the build option "Platform target" to X86. The default is Any CPU,
which
| > means, run as 64 bit on a 64 bit OS and 32 bit on a 32 bit OS.
| >
| > Willy.
| >
| > "Frank Uray" <Fr*******@discussions.microsoft.com> wrote in message
| > news:D1**********************************@microsof t.com...
| > | Hi all
| > |
| > | I have written a WindowsService in C# 2005.
| > | I am running this service on a 64bit Windows Server 2003
| > | and I like to run some Interop.Excel within this service.
| > |
| > | It seams that Interop does not run in 64bit mode ...
| > | I have tried to compile the service as x86 but it does not help,
| > | the service is still running in 64bit mode ...
| > |
| > | Does anybody know something about a issue like this??
| > | Would be happy for any comment !
| > |
| > | Best regards
| > | Frank Uray
| >
| >
| >
Mar 29 '06 #4

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

Similar topics

3
by: Christian McArdle | last post by:
REQUEST FOR DISCUSSION (RFD) unmoderated group comp.os.ms-windows.programmer.64bit This is a formal Request For Discussion (RFD) to create comp.os.ms-windows.programmer.64bit as an unmoderated...
11
by: Vijay Chegu | last post by:
I have built a 64bit ATL COM dll. When i register the dll on IA64 windows Enterprise server 2003, i get following error. DllRegisterServer in mydll.dll failed. Return code was : 0x80020009 ...
2
by: fineman | last post by:
Hi all, I want to get a 64bit(8 bytes) Encrypt result use DES class in the VS2005. Though I encrypt data is 64bit(8 bytes), but DES return encrypt result that always is 128bit(16 bytes), I don't...
1
by: spikejp | last post by:
Platform: Windows 2000 and Windows 2003 Server UDB DB2 v8.1.11 I have the task of Migration my DB server from a 32Bit HW to a 64Bit HW. The DB2 software is installed on the local disks but the...
13
by: John J. Hughes II | last post by:
All, General question. I am working on upgrading my system from a 3.2GHz P4 to something better. 1) Well switching to Windows XP Pro 64 bit cause me massive problem with VS? 2) Is the...
4
by: mike | last post by:
I have found that orig tested 64 bit on our 64bit windows 2003 server...about 1 year ago...and company decided to use sql 32 bit on the 64bit os my question and any information is very welcome ...
1
by: Jeremy Pavleck | last post by:
Just curious if it's possible, and supported, to upgrade SQL 2005 from 32bit to 64bit. This is on top of Windows 2003 64bit. Trying to get the proper supported config for OM2k7 without blowing...
5
by: Ulf Dingler | last post by:
Hi. I have a Dell Server with Windows 2003 R2 SP2 64bit ,SQL Server 2005 SP2 (also 64Bit) and 12GB Ram. The Problem is, that the SQL Server Process only allocates max 90-100MB. That's why big SQLs...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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,...
0
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...

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.