I'm trying to test if ASP.NET is working on my customers IIS 7.5 server, the code below works fine on my server.
<html>
<body bgcolor="yellow">
<center>
<h2>Hello</h2>
<p><%Response.Write(now())%></p>
</center>
</body>
</html>
Using the exact same text.aspx file containing the above code he gets the error:
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
Any ideas why this would be? His server will be running a Swiss version of Windows (if that makes any difference).
Many many thanks. Steven