我试图测试ASP.NET是否在我的客户IIS 7.5服务器上工作,下面的代码在我的服务器上正常工作。C#ASP.NET“编译器错误消息:CS1002:;预计”在最基本的代码
<html>
<body bgcolor="yellow">
<center>
<h2>Hello</h2>
<p><%Response.Write(now())%></p>
</center>
</body>
</html>
使用包含上面的代码,他获得误差完全相同的text.aspx文件:
Compilation Error
Description: An error occurred during the compilation of a resource required to
service this request. Please review the following specific error details and
modify your source code appropriately.
Compiler Error Message: CS1002: ; expected
Source Error:
Line 3: <center>
Line 4: <h2>Hello</h2>
Line 5: <p><%Response.Write(now())%></p>
Line 6: </center>
Line 7: </body>
Source File: c:\inetpub\wwwroot\myapp\test.aspx Line: 5
任何想法,为什么这会是什么?他的服务器将运行瑞士版的Windows(如果这样做有任何区别)。
很多很多,谢谢。 Steven
它为什么在我的服务器上工作?谢谢 – 2010-10-18 15:42:22
@Steven - 看我的编辑。我错过了这部分问题。被代码分心了。 :-P – 2010-10-18 15:44:51
很好的答案,感谢您的帮助。 – 2010-10-18 15:59:10