compilation error

  • Thread starter Carlos Kim via DotNetMonster.com
  • Start date
C

Carlos Kim via DotNetMonster.com

Compiler Error Message: CS1026: ) expected

Source Error:

Line 12: <body MS_POSITIONING="GridLayout">
Line 13: <form id="Form1" method="post" runat="server">
Line 14: <cr:CrystalReportViewer id=CrystalReportViewer3 style="Z-INDEX:
101; LEFT: 24px; POSITION: absolute; TOP: 40px" runat="server"
Height="1013px" Width="901px" ReportSource='<%# c:\inetpub\wwwroot\
WebApplication4\CrystalReport222.rpt %>'>
Line 15: </cr:CrystalReportViewer>
Line 16: </form>


Show Detailed Compiler Output:


C:\WINDOWS\system32> "c:\windows\microsoft.net\framework\v1.1.4322\csc.exe"
/t:library /utf8output /R:"c:\windows\assembly\gac\
crystaldecisions.reportsource\9.2.3300.0__692fbea5521e1304\
crystaldecisions.reportsource.dll" /R:"c:\windows\assembly\gac\
system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system.drawing.dll" /R:"c:\
windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\
webapplication4\d0419f65\1aa75407\assembly\dl2\ac11a9a6\eb9d214e_9547c501\
webapplication4.dll" /R:"c:\windows\assembly\gac\
crystaldecisions.crystalreports.engine\9.2.3300.0__692fbea5521e1304\
crystaldecisions.crystalreports.engine.dll" /R:"c:\windows\assembly\gac\
system.web.mobile\1.0.5000.0__b03f5f7f11d50a3a\system.web.mobile.dll"
/R:"c:\windows\assembly\gac\crystaldecisions.web\
9.2.3300.0__692fbea5521e1304\crystaldecisions.web.dll" /R:"c:\windows\
assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.data.dll"
/R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\
webapplication4\d0419f65\1aa75407\assembly\dl2\89fcd415\000f7c46_8026c201\
crystaldecisions.vsdesigner.dll" /R:"c:\windows\assembly\gac\
system.enterpriseservices\1.0.5000.0__b03f5f7f11d50a3a\
system.enterpriseservices.dll" /R:"c:\windows\assembly\gac\
crystaldecisions.shared\9.2.3300.0__692fbea5521e1304\
crystaldecisions.shared.dll" /R:"c:\windows\assembly\gac\
crystaldecisions.reportappserver.clientdoc\9.2.3300.0__692fbea5521e1304\
crystaldecisions.reportappserver.clientdoc.dll" /R:"c:\windows\
microsoft.net\framework\v1.1.4322\temporary asp.net files\webapplication4\
d0419f65\1aa75407\lkeamqbe.dll" /R:"c:\windows\microsoft.net\framework\
v1.1.4322\mscorlib.dll" /R:"c:\windows\assembly\gac\system.xml\
1.0.5000.0__b77a5c561934e089\system.xml.dll" /R:"c:\windows\assembly\gac\
system.web.services\1.0.5000.0__b03f5f7f11d50a3a\system.web.services.dll"
/R:"c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll"
/R:"c:\windows\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\
system.web.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\
Temporary ASP.NET Files\webapplication4\d0419f65\1aa75407\c_qxf7zx.dll"
/D:DEBUG /debug+ /optimize- /win32res:"C:\WINDOWS\Microsoft.NET\Framework\
v1.1.4322\Temporary ASP.NET Files\webapplication4\d0419f65\1aa75407\
c_qxf7zx.res" /warnaserror /w:1 "C:\WINDOWS\Microsoft.NET\Framework\
v1.1.4322\Temporary ASP.NET Files\webapplication4\d0419f65\1aa75407\
c_qxf7zx.0.cs"


Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.

http://localhost/WebApplication4/WebForm1.aspx(14,46): error CS1026: )
expected
http://localhost/WebApplication4/WebForm1.aspx(14,46): error CS1525:
Invalid expression term ':'
http://localhost/WebApplication4/WebForm1.aspx(14,47): error CS1002: ;
expected
http://localhost/WebApplication4/WebForm1.aspx(14,47): error CS1525:
Invalid expression term ''
http://localhost/WebApplication4/WebForm1.aspx(14,48): error CS1002: ;
expected
http://localhost/WebApplication4/WebForm1.aspx(14,55): error CS1002: ;
expected
http://localhost/WebApplication4/WebForm1.aspx(14,55): error CS1525:
Invalid expression term ''
http://localhost/WebApplication4/WebForm1.aspx(14,56): error CS1002: ;
expected
http://localhost/WebApplication4/WebForm1.aspx(14,63): error CS1002: ;
expected
http://localhost/WebApplication4/WebForm1.aspx(14,63): error CS1525:
Invalid expression term ''
http://localhost/WebApplication4/WebForm1.aspx(14,64): error CS1002: ;
expected
http://localhost/WebApplication4/WebForm1.aspx(14,79): error CS1002: ;
expected
http://localhost/WebApplication4/WebForm1.aspx(14,79): error CS1525:
Invalid expression term ''
http://localhost/WebApplication4/WebForm1.aspx(14,80): error CS1002: ;
expected
http://localhost/WebApplication4/WebForm1.aspx(14,100): error CS1002: ;
expected
http://localhost/WebApplication4/WebForm1.aspx(14,100): error CS1525:
Invalid expression term ')'
http://localhost/WebApplication4/WebForm1.aspx(14,101): error CS1002: ;
expected
http://localhost/WebApplication4/WebForm1.aspx(14,101): error CS1525:
Invalid expression term ')'


what's the problem?????
 
K

Karl Seguin

Not 100%..but if you know the path that you are binding to (assuming
crystalreportviewer accepts a string as it's reportsource property), why
bother using <%# ?

just do

ReportSource="c:\inetpub\wwwroot\WebApplication4\CrystalReport222.rpt"

Karl
 

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

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top