473,569 Members | 2,716 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"%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 4766
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...@xs4al l.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
1964
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 not valid" exception thrown. How can it not be valid when that's all the Items collection should contain? I tried using a while loop starting with...
0
1502
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 get a "Specified cast not valid!" error... MyDocumentDesigner FDDesigner = ((MyDocumentDesigner)DHost.GetDesigner((IComponent)CForm));
8
1787
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 along the lines of did you check this, have you did this, or this is the wrong way of doing this. I can access the CColPositions and the CPosition...
0
265
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 the iisuser to the dubuggers group and administrators group but nothing helped. I read here that i should consider using on xp aspnet_setreg.exe...
4
3820
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 absolutely no added functionality to it.
3
3190
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 index 0. This code hasn't been changed in months and it has never had this problem before... Thanks for any help you guys can give me!
3
3684
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 statement with "true" or "false". This code causes the error: <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%#...
12
2323
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 visualize the XML input through the XSL sheet. Correct the error, then click on Update, or try another time.
7
1175
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 the session no more exists. Can anybody please tell me how to handle that error.
3
12421
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: ====================== Message: Specified cast is not valid. Type: System.InvalidCastException Source: System.Data.Linq TargetSite: Boolean...
0
7694
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7609
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7921
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7964
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6278
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5217
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2107
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1208
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.