Compilation Error at Run time ?
-
I have a form with a crystal report when I compile, I get ZERO compile errors But when I run, I get the following error
Compilation Error
CS1525: Invalid expression term ')'
Line 17: <cr:crystalreportviewer id=rpViewer runat="server"
ReportSource="<%# D:\Inetpub\wwwroot\MersaalStaff\Administrator\StmtRprt.rpt %>">
Line 18: </cr:crystalreportviewer></form>Error in Line 17 So, 1- How to catch compile time error at un time 2- And does the incorrect HTML generates runtime errors 3- Also, I did not write the html code, it was generated automatically Ho COME !!!!!!!:mad: :wtf: :omg: :doh: :confused:
Mohammed Gouda foreach(Minute m in MyLife) myExperience++;
-
I have a form with a crystal report when I compile, I get ZERO compile errors But when I run, I get the following error
Compilation Error
CS1525: Invalid expression term ')'
Line 17: <cr:crystalreportviewer id=rpViewer runat="server"
ReportSource="<%# D:\Inetpub\wwwroot\MersaalStaff\Administrator\StmtRprt.rpt %>">
Line 18: </cr:crystalreportviewer></form>Error in Line 17 So, 1- How to catch compile time error at un time 2- And does the incorrect HTML generates runtime errors 3- Also, I did not write the html code, it was generated automatically Ho COME !!!!!!!:mad: :wtf: :omg: :doh: :confused:
Mohammed Gouda foreach(Minute m in MyLife) myExperience++;
1 - with a try/catch block, I guess 2 - because it's presumably sending a query to CR that is invalid. 3 - because using auto generated stuff always sucks
Christian Graus Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
-
1 - with a try/catch block, I guess 2 - because it's presumably sending a query to CR that is invalid. 3 - because using auto generated stuff always sucks
Christian Graus Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
Christian Graus wrote:
because using auto generated stuff always sucks
Yes. I second that now. Do you remember we had a discussion on this. I found you are correct later. So I changed the way I used to generate markup. Thanks for that :)
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions
-
Christian Graus wrote:
because using auto generated stuff always sucks
Yes. I second that now. Do you remember we had a discussion on this. I found you are correct later. So I changed the way I used to generate markup. Thanks for that :)
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions
Glad I managed to help someone around here :-)
Christian Graus Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
-
1 - with a try/catch block, I guess 2 - because it's presumably sending a query to CR that is invalid. 3 - because using auto generated stuff always sucks
Christian Graus Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
Christian Graus wrote:
because using auto generated stuff always sucks
here is the generated code
<form id="Form1" method="post" runat="server">
<cr:crystalreportviewer runat="server" id=rpViewer
ReportSource="<%#D:\Inetpub\wwwroot\MersaalStaff\Administrator\StmtRprt.rpt%>" >
</cr:crystalreportviewer>
</form>the error says "CS1026: ) expected" Could you advise the error please Mr. Graus Thanks in advance
Mohammed Gouda foreach(Minute m in MyLife) myExperience++;
-
1 - with a try/catch block, I guess 2 - because it's presumably sending a query to CR that is invalid. 3 - because using auto generated stuff always sucks
Christian Graus Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
I got that Visual Studio 2003 does not recognize the tag
cr:crystalreportviewer
and this is the error source So, how to embed a crystaReportViewer in my aspx page?Mohammed Gouda foreach(Minute m in MyLife) myExperience++;