Bug Report T304956
Visible to All Users

"Value does not fall within the expected range" exception is thrown on executing the XtraReport.FromStream method if the DataAccess assembly is not deployed

created 9 years ago

We just upgraded from Dev Express v2013 vol 2.13 to Dev Express v2014 vol 2.10. During testing with Visual Studio 2012 running in localhost, all of the functionality worked correctly. However, when we published to our testing website (running II7 on a Windows Server 2008 R2 server), we noticed that some of our reporting functionality is broken. When we open a XtraReport in a ReportViewer, the report loads correctly the first time. However, when we use the ReportToolbar to print, navigate pages, or export a report we get the exception "Value does not fall within the expected range."

We are saving the report to a MemoryStream the first time it loads and then restoring it from the stream to keep the user from having to wait on the report creation and data binding again.

Before the upgrade, this worked on the test website. I have attached a sample project showing the basics of what we are doing.

Answers approved by DevExpress Support

created 9 years ago

We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

    Other Answers

    created 9 years ago

    We added the DevExpress.DataAccess DLL to the references for the project and everything works again!

    Would have been nice if the exception that was thrown had said the DLL was missing or if the upgrade would have added it to the project if it was needed.

      Comments (1)
      Vasily (DevExpress Support) 9 years ago

        Hi Cody,

        I am happy to hear that you have managed to accomplish your task. Thank you for sharing your solution with us.
        It is strange, however, that the DevExpress.DataAccess assembly is required in your case, because you are not using any DevExpress.DataAccess classes in your application. I decided to forward this issue to our developers so they can examine it thoroughly. This might take some time for us though. Your patience is highly appreciated.

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.