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

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

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
Nov 5 '08 #1
2 4760
jake wrote:
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.

--
J.
Nov 5 '08 #2
Jeroen,
That did the trick. Thank you kindly.
jake
On Nov 5, 2:53*pm, Jeroen Mostert <jmost...@xs4all.nlwrote:
jake wrote:
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.

--
J.
Nov 5 '08 #3

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

Similar topics

11
by: Jim H | last post by:
I am trying to go through my Outlook (2003) address book. The code goes through the Items list and prints all the last names but after it hits 114 (out or 126 contacts) I get a "sepcified cast is...
0
by: Özden Irmak | last post by:
Hello, In my application, I've to cast DocumentDesigner class to my own derived class,MyDocumentDesigner, in order to reach the protected properties in DocumentDesigner class. But everytime I...
8
by: Charles | last post by:
I do not understand why I am getting a "Specified cast is not valid" error, since it has worked before. Something has changed and I am not really sure what it could be. I am looking for something...
0
by: Tom | last post by:
I can't debug my asp.net projects. for some reason i'm getting an error saying that i don't have permission and i should be added to the debuggers group. I added my domain user, my aspnet user and...
4
by: Mike Cooper | last post by:
There is something about inherited classes I evidently don't know... I wrote the following class: Class Class1 inherits System.Windows.Forms.DataGridTextBoxColumn End Class There is...
3
by: Jayyde | last post by:
Not sure why all of a sudden this line of code: cmbProductCategoryTreeDisplayName.SelectedIndex = 0; is producing a "Specified cast is not valid error". In the watch it has 1 item in it at...
3
by: keithb | last post by:
Using a GridView, I get a "Specified cast is not valid" error when binding the Visible propery of a hyperlink control to a DataTable text field. The error goes away if I replace the data binding...
12
by: Pao | last post by:
Hi all For all NEW sites (virtual directories) that I create, I receive always the same error: (I translate so may be a little different) Impossible to visualize the XML page Impossible to...
7
by: Gouri.Mahajan7 | last post by:
Hello, I am new to asp.net. when i close the browser programmatically I am getting an application error at the line given below. <param name="SessionID" value="<%= Session %>"/> because of...
3
by: =?Utf-8?B?UGF1bCBQcmV3ZXR0?= | last post by:
I'm attempting to use LINQ to insert a record into a child table and I'm receiving a "Specified cast is not valid" error that has something to do w/ the keys involved. The stack trace is: ...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...

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.