run WindowsService in x86 mode on a 64bit Server 2003

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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.

| 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
 
Hi Willy

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

Best Regards
Frank
 
Sorry, works for me. Are you sure it runs in 64 bit mode?

Willy.

| 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.
| >
| > | > | 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
| >
| >
| >
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top