all groups > dotnet web services > february 2008 >
You're in the

dotnet web services

group:

Help: %1 is not a valid Win32 application



Help: %1 is not a valid Win32 application Gianluca Pezzoli
2/4/2008 4:22:27 PM
dotnet web services: Hi,

I have Windows Server 2003 x64 standard SP2 Italian, with Xeon 3.8 Ghz and
2GB RAM.
On Server I found installed .net framework 1.1 and 2.0 (x64).

I am developing a simple (Hello world) web service with Visual Studio 2008
Dev Edition (English). I have selected a Web Service Site Project with net
2.0 framework.

I have created a web site IIS 6.0 under the default web sites directory.
Then I created a virtual directory in the new web site.

The virtual directory has this properties in IIS:
- Read option enabled
- Browse option enabled
- Index resource enabled
- Log visits enabled
- Application mane (WebService)
- Execution authorizations : execute scripts and executables
- Application pool: WebService (one only application for this pool)

I don't have any ASP.NET tab in virtual directory properties!
but I can see that .asmx pages are binded to .net 2.0 framework x64

I published web service with Visual Studio using ftp protocol.
In the virtual directory there is .asmx and Web.config files and \bin
directory there are WebService.dll,.pdb,.xml files.

I can browse (for testing purpose only) the directory in the browser.

When I call the web service
(http://servername/site/WebService/WebService.asmx) I get
this message in the browser:
%1 is not a valid Win32 application

I tried to rebuild the project with "Any CPU" and with "x64 Cpu" but
anything changed.

Can anyone help me?

Thanks in advance
Gianluca Pezzoli

RE: Help: %1 is not a valid Win32 application stcheng@online.microsoft.com
2/5/2008 6:20:40 AM
Hi Gianluca,

Regarding on the error message you mentioned, I've performed some research
and found some similar issues. Among them I think the following reference
maybe helpful to you. For IIS6 on windows X64 box, it can be configured to
run under 32bit WOW mode, at that mode, if it load a 64 bit ISAPI dll, it
will fail with such error, you can have a look at the articles for more
info:

#HOWTO: Diagnose One Cause of "%1 is not a valid Win32 application" on IIS6
on 64bit Windows
http://blogs.msdn.com/david.wang/archive/2006/06/27/HOWTO-Diagnose-One-Cause
-of-1-is-not-a-valid-Win32-application-on-IIS6-on-64bit-Windows.aspx

#Windows Server 2003 SP1 enables WOW64 compatibility for 32-bit Web
applications in IIS 6.0
http://support.microsoft.com/kb/895976/en-us

BTW, as for the IIS6 on x64 box, according to my local test, there is no
"ASP.NET" tab in the virutal directory properties dialog. Also, for
ASP.NET web application virtual directory, I think you you do not need the
following optsion:

- Browse option enabled
- Index resource enabled
- Log visits enabled
- Execution authorizations : execute scripts and executables

You can remove them if they're not necessary for you. And for application
pool, if you have any other web application already running on the server,
I suggest you create a new application pool and let your application
virutal directory use the dedicated pool so as to avoid some other impact.

If there is anything unclear, please feel free to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.



Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.





--------------------
From: "Gianluca Pezzoli" <giangysan@community.nospam>
Subject: Help: %1 is not a valid Win32 application
Date: Mon, 4 Feb 2008 16:22:27 +0100

Hi,

I have Windows Server 2003 x64 standard SP2 Italian, with Xeon 3.8 Ghz and
2GB RAM.
On Server I found installed .net framework 1.1 and 2.0 (x64).

I am developing a simple (Hello world) web service with Visual Studio 2008
Dev Edition (English). I have selected a Web Service Site Project with net
2.0 framework.

I have created a web site IIS 6.0 under the default web sites directory.
Then I created a virtual directory in the new web site.

The virtual directory has this properties in IIS:
- Read option enabled
- Browse option enabled
- Index resource enabled
- Log visits enabled
- Application mane (WebService)
- Execution authorizations : execute scripts and executables
- Application pool: WebService (one only application for this pool)

I don't have any ASP.NET tab in virtual directory properties!
but I can see that .asmx pages are binded to .net 2.0 framework x64

I published web service with Visual Studio using ftp protocol.
In the virtual directory there is .asmx and Web.config files and \bin
directory there are WebService.dll,.pdb,.xml files.

I can browse (for testing purpose only) the directory in the browser.

When I call the web service
(http://servername/site/WebService/WebService.asmx) I get
this message in the browser:
%1 is not a valid Win32 application

I tried to rebuild the project with "Any CPU" and with "x64 Cpu" but
anything changed.

Can anyone help me?

Thanks in advance
AddThis Social Bookmark Button