"%1 is not a valid Win32 application" error when browsing an aspxfile with a browser

J

jake

I am new to web development.
I published a VS 2008 web page (default.aspx) file (along with its .cs
file), using the "Publish Web Site" feature, to a Windows 2003 server
that has all the .Net Framework versions including 3.5. The web page
does not have any code in the page_load event (in the .cs file)
The default.html version of the same aspx file works fine, but not
default.aspx itself, which produces a "%1 is not a valid Win32
application" whenever I point to the URL with a browser (firefox, in
this case). An html version here just means that the aspx file is
rather simple and has no cs code yet, and could well be emulated with
simple html code. By the way, IE gives me an "HTTP 500" error.
What needs to be in the server for this to work? Or am I going about
this the wrong way?
Thanks for your help
jake
 
J

Jeroen Mostert

jake said:
I am new to web development.
I published a VS 2008 web page (default.aspx) file (along with its .cs
file), using the "Publish Web Site" feature, to a Windows 2003 server
that has all the .Net Framework versions including 3.5. The web page
does not have any code in the page_load event (in the .cs file)
The default.html version of the same aspx file works fine, but not
default.aspx itself, which produces a "%1 is not a valid Win32
application" whenever I point to the URL with a browser (firefox, in
this case). An html version here just means that the aspx file is
rather simple and has no cs code yet, and could well be emulated with
simple html code. By the way, IE gives me an "HTTP 500" error.
What needs to be in the server for this to work? Or am I going about
this the wrong way?

Your IIS is misconfigured. The error you're getting indicates IIS is trying
to launch an external application to process the .ASPX page, but something
is failing in that setup. Consult the event log.

Try reinstalling ASP.NET support with aspnet_regiis.
 

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

Top