The definition of the report 'Main Report' is invalid

Hi

I built a new report using vs.net2005 (Local report) and could get see the report when i was developing the application.when i published to IIS iam getting the following error

An error occurred during local report processing.
The definition of the report 'Main Report' is invalid.
The report definition is not valid. Details: Data at the root level is invalid.
Line 1, position 1

Any suggestions to solve this


SVNR



Answer this question

The definition of the report 'Main Report' is invalid

  • woh

    Thnks Mr.Long Xue for your referenace.I moved the report to the IIS where my application is published and the problem is solved and it is running well.

    SVNR


  • Tola Omicron

    Hi

    i checked with another report without any connection to sql server.i.e static data populated to typed arraylist etc.but when i publish to IIS iam getttig the same error message.(which is working fine under development (file system web sitea))

    • An error occurred during local report processing.
      • The definition of the report 'Main Report' is invalid.
        • The report definition is not valid. Details: Data at the root level is invalid. Line 1, position 1.

    Thanks for your reply and any suggestions to rectify this

    SVNR


  • Ram Ram

    It seems to be a problem in connectionstring defined in report to server. How you connect to SQL server, under what account
  • Sapient

    I followed the link topic above and can say it solved it for me.

    What I found was that if one uses the Publish Web Site feature in VS 2005 and then uncheck "Allow this precompiled site to be updatable", my reporting services reports give this error. Whereas, if I check "Allow this precompiled site to be updatable" I don't have any problems.

    Seems like a bug in VS 2005 with the precompilation feature.

    FYI, I also found that if I copied just my report definitions from a publish with the checkbox on over the top of a website that had been build with the checkbox off, the reports work (as in you can have a fully precompiled website with only the report defintions not precompiled.


  • Cellardoor76

    There is already a post in this site, try this, SVNR,

    http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=53315&SiteID=1

    Good Luck,

    Long


  • The definition of the report 'Main Report' is invalid