asp.net - Compiler Error Message: CS1002: ; expected but there is a ; -
I am a PHP user and I have found an ASPX site with a problem. I have solved a problem but now have received the following error;
Server error in the '/' application.
Compilation Error
Description: An error occurred during the compilation of the resources needed to serve this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1002:; Expected
Source Error:
Line 63: & lt;% - -%> Line 64: & lt;%
Line 65: Dim MM.XSL Transform mm_xsl = New MM.XSL Transform ();
Line 66: mm_xsl.setXML ("");
row 67: mm_xsl.setXSL (server.mappath ("wpxsl_fp.xsl"));
Source file: c: \ projects \ www_omfax_co_uk \ default_b.aspx Line: 65
Show detailed compiler output:
Version information: Microsoft. NET Framework Version: 2.0 50727.3603; ASP.NET Version: 2.0.50727.3614
''
on this page is the code I am using;
& lt;% dim MM.XSL transform mm_xsl = new MM.XSLTransform (); Mm_xsl.setXML ("http://omfaxnews.wordpress.com/feed/"); Mm_xsl.setXSL (Server.MapPath ("wpxsl_fp.xsl")); Response.Write (mm_xsl.Transform ()); & Gt%;
And as you can see that ';' Any and all help would be appreciated.
Do you have VB Using net or c #
Moderate
is from VB.NET, ;
The end is from C # - You can not match them in this way.
The error message (CS1002) shows that this is a C # site, so the code should be:
<% MM.XSL transform mm_xsl = new MM.XSLTransform (); Mm_xsl.setXML ("http://omfaxnews.wordpress.com/feed/"); Mm_xsl.setXSL (Server.MapPath ("wpxsl_fp.xsl")); Response.Write (mm_xsl.Transform ()); & Gt%;
I left the slow
statement.
Comments
Post a Comment