By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,150 Members | 1,329 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,150 IT Pros & Developers. It's quick & easy.

run WindowsService in x86 mode on a 64bit Server 2003

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.