ASCX vs. ASPX

8 posts, 0 answers
  1. Will
    Will avatar
    45 posts
    Member since:
    Aug 2007

    Posted 13 Aug 2007 Link to this post

    Hello -
    I am new to Telerik Reporting adn I have read a few posts about having to add the control to an ASPX page.  My question:  we use .Ascx user controls/pages, so is it possible to use the Telerik Reporting control on this type of control/page?

    Thanks,
     - Will
  2. Chavdar
    Admin
    Chavdar avatar
    898 posts

    Posted 14 Aug 2007 Link to this post

    Yes, Will, you can use the Report Viewer control in .ascx user controls without problems. We use accepted practices when it comes to development and all of our products work in .ascx user controls. I have attached a sample web site solution for reference.

    Let me know if you have any other questions.
     

    Best wishes,
    Chavdar
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. DevCraft banner
  4. Will
    Will avatar
    45 posts
    Member since:
    Aug 2007

    Posted 14 Aug 2007 Link to this post

    Chavdar -

    Thanks for the reply and sample.  I haven't looked at it yet, but will check it out soon.
    I was wondering because we use Dotnetnuke and whenever I take a module that we created for our Dotnetnuke site and try to drag a Report Viewer control on the ASCX user control, all I get is an error that states: "Control cannot be created because Visual Studio cannot find the control's type in the control assembly."   Is there some way to fix this issue?  I searched around on your site (and Google) and see that there are many posts with this problem.  Unfortunately, none of the solutions work for me.  Can you help?

    Thanks -
     Will
  5. Chavdar
    Admin
    Chavdar avatar
    898 posts

    Posted 14 Aug 2007 Link to this post

    Hi Will,

    Most likely the problem is that you are missing an assembly reference to the Telerik.ReportViewer.WebForms.dll. Try to add it manually and then try to drag and drop the viewer again. It might be necessary to add "Imports Telerik.ReportViewer.WebForms" namespace in the Imports list.

    The Telerik.ReportViewer.WebForms.dll can be found in [Program Files]\Telerik\Reporting1.0\bin folder.

    Hope this helps.

     
    Sincerely yours,
    Chavdar
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. Will
    Will avatar
    45 posts
    Member since:
    Aug 2007

    Posted 14 Aug 2007 Link to this post

    I manually added a reference to the Telerik.ReportViewer.WebForms.DLL and also added the Imports statement....and the error, "Control cannot be created because Visual Studio cannot find the control's type in the control assembly.", still persists.

    Is there anything else I can try?

    thanks
     - will
  7. Chavdar
    Admin
    Chavdar avatar
    898 posts

    Posted 16 Aug 2007 Link to this post

    Hi Will,

    We managed to reproduce the error when we created the DNN web site on a network drive. I guess this is your case as well. Unfortunatelly we were not able to find the exact reason why this happens. It seems to be something between Visual Studio, drive/folder permissions and the code executed by our control. We'll continue investigating the issue.

    The only workaround that is possible for now is to add the Web Site project to a file version control system (e.g. Microsoft Visual SourceSafe) and work on local drives.

    Hope this helps.

     
    Sincerely yours,
    Chavdar
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  8. Eric
    Eric avatar
    1 posts
    Member since:
    Oct 2008

    Posted 15 Nov 2010 Link to this post

    Was this problem ever resloved?  I get the same error, but when drgging any control into Visual Studio web form.
  9. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 16 Nov 2010 Link to this post

    Hello Eric,

    This is a generic .NET error as you've found out by confirming that it occurs when dragging any control in Visual Studio. You can try repairing Visual Studio or follow other advices from threads on the net.

    Greetings,
    Steve
    the Telerik team
    See What's New in Telerik Reporting in Q3 2010 on Wednesday, November 17, 11am Eastern Time: Register here>>
Back to Top
DevCraft banner