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

L

liam

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
 
L

liam

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
 

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