More in this section

Forums / Developing with Sitefinity / 'Debug' issue in module creation

'Debug' issue in module creation

4 posts, 0 answered
  1. Aniruddha
    Aniruddha avatar
    2 posts
    Registered:
    06 Mar 2009
    06 Mar 2009
    Link to this post
    Hi,

    I am new to sitefinity and trying to learn module development. However I am not able to debug the assembly project created for module. Here is what I have done,
    1) Created library project for module.
    2) Built it in debug mode and put the .dll and .pdb in 'bin' folder of my sitefinity website application.
    3) Modified web.config as needed.
    4) Open the assembly project in visual studio and attached the process 'aspnet_wp.exe'.
    5) Run the web application in IE7.

    But it is not working and I am not able to debug the code written for module.
    I have put break points in my module class. (QuoteModule.cs)
    (I get exception when I click on 'Modules')

    Please let me know if I am missing something,

    Thanks,
    Aniruddha
  2. Dido
    Dido avatar
    149 posts
    Registered:
    24 Sep 2012
    06 Mar 2009
    Link to this post
    Hello Aniruddha,

    I don't have these problems and I use a much more simple method. I tested this with the sample custom module (bare-bones) that comes with the Dev Manual.

    1) Open the web site you are developing a custom module for
    2) Use the instructions in the dev manual. I have attached the instructions the bare-bones template generated for me.
    3) In the same solution, add your module, set a breakpoint, press F5, and it works.

    You might want to read this article, though.

    Sincerely yours,
    Dido
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Aniruddha
    Aniruddha avatar
    2 posts
    Registered:
    06 Mar 2009
    09 Mar 2009
    Link to this post
    Thank for the help Dido,
    I did not need to do IIS settings, I just added the module project in my website project and it worked. (I am now able to 'debug') thanks for help,

    But unfortunately that did not help me resolve the exception I am getting.
    I am trying a simple module where I have just one label in control panel and one label in command panel. I am taking 'Contacts' module (from blog) as reference.
    I removed all the un-necessary files from my project, and kept bare minimum files. e.g. QuoteModule, QuoteControlPanel, QuoteCommandPanel, QuoteItemsView (to display label) etc.

    [NullReferenceException: Object reference not set to an instance of an object.]
       Telerik.Cms.Web.UI.Backend.BackendBreadcrumb.CreateChildControls()

    it seems I don't have any hold on my module's Admin section's bread-crumb. BackendBreadcrumb class is  firing exception may be because the data source for breadcrumb control is null or empty.

    Please help me resolving this error.

    Aniruddha
  4. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    13 Mar 2009
    Link to this post
    Hello Aniruddha,

    Most probably this is the reason for the error indeed. We are not sure though, so could you paste the whole stack trace? It might be found in App_Data\Sitefinity.log file.
    By the way, we have published a fully working example in our Blogs, I invite you to check it out, it might be of help!

    Regards,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Register for webinar
4 posts, 0 answered