473,804 Members | 3,494 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error Running aspx file with IE ---> Expected ';'

Hi,

I have seen this problem is a couple of other places in the group but
can't find an answer to it.

Basically I have as aspx file that opens properly in Opera but not in
IE. IE gives a scripting error stating Error Expected ';'. This is
in VB.NET. If I change the script to C# I get Error Expected '}'.

When I look at the source of what is actually returned to IE it is
simply the original .aspx file in full. I would have expected ASP.NET
to return only the HTML to build the page ( which is what does happen
in Opera ).

So, it feels like when IE is making the request for the .aspx file
ASP.NET is simply returning the .aspx file and not executing it.

Because the file does get rendered correctly in Opera it feels
unlikely that ASP.NET is not working so I thought it had to be
something to do with IE but no matter what options I change I can't
get it to work.....

Any suggestions?

thanks,

liam
Nov 18 '05 #1
1 2371
Oops, found the solution about 30 mins after posting this.

I was opening the .aspx file direct from an explorer
window by using 'Open With'. Obviously this is wrong as
there will be no actual request to ASP.NET through IIS,
i.e. I should have IE pointing at
http://localhost/Examples/fileName.aspx not
d:\inetput\wwwr oot\Examples\fi leName.aspx

-----Original Message-----
Hi,

I have seen this problem is a couple of other places in the group butcan't find an answer to it.

Basically I have as aspx file that opens properly in Opera but not inIE. IE gives a scripting error stating Error Expected ';'. This isin VB.NET. If I change the script to C# I get Error Expected '}'.
When I look at the source of what is actually returned to IE it issimply the original .aspx file in full. I would have expected ASP.NETto return only the HTML to build the page ( which is what does happenin Opera ).

So, it feels like when IE is making the request for the .aspx fileASP.NET is simply returning the .aspx file and not executing it.
Because the file does get rendered correctly in Opera it feelsunlikely that ASP.NET is not working so I thought it had to besomething to do with IE but no matter what options I change I can'tget it to work.....

Any suggestions?

thanks,

liam
.

Nov 18 '05 #2

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

Similar topics

2
3402
by: Rocket Hawk | last post by:
Hello All, I am using windows 2000 server IIS 5.0 i was trying to run bat file from asp page and getting: Access Denied but when i run the bat file from the command prompt on the local server, it's running good the bat file copying files from target computer in the LAN to the local computer, o.k
1
1550
by: Samuel Lee | last post by:
My friend has a newly installed Windows 2003 Server Web Edition. The IIS and ..NET Framework will be installed by default. He went to the Microsoft.NET config folder and changed the username from Machine to SYSTEM in machine.config file. The server is just for internal testing purpose. He do 'iisreset' after that and restart the IIS manually from the IIS manager as well. Well he told me that he had tried both 'Machine' and 'System'....
2
2205
by: Selen | last post by:
I have a aspx file in my computer.I want to run it another computer in network. I write http://computername/filename but it doesnt work.Why can it be ? How can I solve the problem Thanks
1
1151
by: Mohammed Dwaikat | last post by:
Hi All I have a code that creates PieChart depending on the data from an Access database, This file is Piechart.aspx. I saved it and run it using IIS, everything is OK on my computer. BUT when I upload it to an internet site, And open the link to it, It prompts me to save the file, not execute it and display the pie chart, or it opens the source code in the browser. Can any one help me please.
1
1507
by: Lieve Vissenaeken | last post by:
Hi everybody, I hope this is the right place to ask my question... So I'm a junior programmer with less experience with VB.NET. So far, I had no problems with it, until I wanted to make my first "asp.net" or better said my first ".aspx"-file. I was making this in Visual Studio.NET and my PC is running on Windows XP Professional (I am also using this PC as a local server, I enabled IIS). When I wanted to run this "aspx"-file from Visual...
10
24090
by: bienwell | last post by:
Hi, I have a question about file included in ASP.NET. I have a file that includes all the Sub functions (e.g FileFunct.vb). One of the functions in this file is : Sub TestFunct(ByVal strInput As String) return (strInput & " test") End Sub
2
1608
by: Randall Parker | last post by:
I managed to create and compile a simple aspx source file from VS 2003. When I try to access it thru the Cassini web server from my web browser on the same machine I get this below. Anyone know why? Originally web.config was <authentication mode="Windows" /> and had the same error. But I tried editing the web.config file line 46 to "None" and that didn't help. They mention IIS in the error message. But I'm not using IIS. ...
10
2448
by: ptass | last post by:
Hi In asp.net 2.0 an aspx files .cs file is a partial class and all works fine, however, I thought I’d be able to create another class file, call it a partial class and have that compile and load as a 3rd partial class. This would be handy so i can generate standard code into one of the partial classes, while having my custom code untouched
3
3112
by: André | last post by:
Hi, I put that question already, but it's still not very clear to me, so ... Assume following option in web.config= debug="false" but in one aspx page (test.aspx) <%@ debug="true" ..%>
0
10562
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10319
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10070
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9132
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7608
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6845
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5508
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5639
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2978
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.