G
Guest
on windows XP and visual studio 2005, I cannot load a javascript or a style
sheet file.
when I try to run the aspx page I get a client side runtime error stating:
"
A Runtime error has occurred
Do you wish to debug?
Line 2:
Error: Syntax error
Yes No
"
when I click Yes/No, the page continue loading but I cannot fire any client
function
from it, due to file loading failure, and, no style is applied to the page.
I know for sure that there's nothing wrong with the syntax in the javascript
file.
Plus, the file is in the same folder as the aspx page.
I tried it as:
<script type="text/javascript" src="Logon_script.js"></script>
<script language="javascript" src="Logon_script.js"></script>
and move the declaration to the top, header , body, end of document and
still not working.
I noticed that, when the <authentication ... > in web config file is set to
"Forms"
the error is generated, but when I set the authentication to "Windows"
everything works fine.
when I publish the page on our web server or on different pc, everything
works ok.
It generate this error only on my PC.
I tried to reinstall internet explorer but on winXP I don't have the option
to repair/uninstall IE.
I contacted Microsoft and they couldn't figure out the reason why.
I beleive I'm going to uninstall IIS as my last option, unless somebody can
refer me to a solution.
thanks for help
my aspx page:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Logon.aspx.vb"
Inherits="Logon" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<script type="text/javascript" src="Logon_script.js"></script>
</head>
<body>
<form id="form1" runat="server">
<div onclick="myfunction();">Logon page </div>
</form>
</body>
</html>
sheet file.
when I try to run the aspx page I get a client side runtime error stating:
"
A Runtime error has occurred
Do you wish to debug?
Line 2:
Error: Syntax error
Yes No
"
when I click Yes/No, the page continue loading but I cannot fire any client
function
from it, due to file loading failure, and, no style is applied to the page.
I know for sure that there's nothing wrong with the syntax in the javascript
file.
Plus, the file is in the same folder as the aspx page.
I tried it as:
<script type="text/javascript" src="Logon_script.js"></script>
<script language="javascript" src="Logon_script.js"></script>
and move the declaration to the top, header , body, end of document and
still not working.
I noticed that, when the <authentication ... > in web config file is set to
"Forms"
the error is generated, but when I set the authentication to "Windows"
everything works fine.
when I publish the page on our web server or on different pc, everything
works ok.
It generate this error only on my PC.
I tried to reinstall internet explorer but on winXP I don't have the option
to repair/uninstall IE.
I contacted Microsoft and they couldn't figure out the reason why.
I beleive I'm going to uninstall IIS as my last option, unless somebody can
refer me to a solution.
thanks for help
my aspx page:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Logon.aspx.vb"
Inherits="Logon" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<script type="text/javascript" src="Logon_script.js"></script>
</head>
<body>
<form id="form1" runat="server">
<div onclick="myfunction();">Logon page </div>
</form>
</body>
</html>