473,394 Members | 2,063 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,394 software developers and data experts.

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 2349
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\wwwroot\Examples\fileName.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
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...
1
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...
2
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
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...
1
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...
10
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...
2
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...
10
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...
3
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
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,...
0
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...
0
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.