Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Compilation Error at Run time ?

Compilation Error at Run time ?

Scheduled Pinned Locked Moved ASP.NET
htmlsysadminhelptutorialquestion
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Muhammad Gouda
    wrote on last edited by
    #1

    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++;

    C 1 Reply Last reply
    0
    • M Muhammad Gouda

      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++;

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      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.

      N M 3 Replies Last reply
      0
      • C Christian Graus

        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.

        N Offline
        N Offline
        N a v a n e e t h
        wrote on last edited by
        #3

        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

        C 1 Reply Last reply
        0
        • N N a v a n e e t h

          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

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          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 Reply Last reply
          0
          • C Christian Graus

            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.

            M Offline
            M Offline
            Muhammad Gouda
            wrote on last edited by
            #5

            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 Reply Last reply
            0
            • C Christian Graus

              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.

              M Offline
              M Offline
              Muhammad Gouda
              wrote on last edited by
              #6

              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++;

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups