Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Debugging codeDebugging code
Previous
 
Next
New Post
10/19/2011 11:51 AM
 
I have inherited an DNN 5.6.1 website and I'm trying to add  webservice to it.  The problem is I can't get it to compile.  The website works fine on the web  but locally I can't get it to compile so that I can debug the code.

It seems like every module has issues.  I've already removed a bunch of them from the project but it seems never ending.  Is there a way to override these errors or a better way to do this?

My webservice asmx loads fine but I'm trying to debug the code once I click on my test.

Thanks for any help!
Craig
 
New Post
10/19/2011 12:45 PM
 
is the DotNetNuke website a source-based solution? If not theres no need to compile, just attach the debugger to the w3wp.exe process. Please note, there is rarely ever a reason to work with a source build of dotnetnuke (unless you are debugging through the dotnetnuke code itself), it's perfectly fine (and more normal) to build new module projects against an install build.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
10/19/2011 12:57 PM
 
Hey, thanks Cathal!

I'm able to attach the debugger but I get "The breakpoint will not be currently hit.  No symbols have been loaded for this document."  

I figured this was because it wasn't compiled.  Again, I'm just added a webservice.asmx.  I can get to the service but when I fire the method and  try to access the database I'm getting an error and want to debug it.  The error I get is below just in case you may know the answer to that one.

System.TypeLoadException: Could not load type 'System.Data.SqlClient' from assembly 'SC.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. at NewsWebService.GetNews(Int32 NumOfRecords)
I use SC.Data everywhere in other projects with no problem. thanks for your help!
 
New Post
10/21/2011 6:26 PM
 
please check that debug is set to true in web.config - in addition you will need to be running a version of DotNetNuke that has been compiled in debug mode - to do so see http://www.dotnetnuke.com/Resources/Wiki/Page/How-to-Install-the-Source-Package-of-DotNetNuke.aspx . However the 2nd part is not necessary unless you want to debug dotnetnuke source. If you want to debug your custom module projects you will need to compile them in debug mode and ensure that the updated dll (and it related pdb file) are deployed to the website BIN folder. As to your error it points to a missing dll normally, but as system.data.sqlclient is core part of .net it suggests that your project is missing a reference to it.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Debugging codeDebugging code


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out