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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesDotNetNuke jquery and webservicesDotNetNuke jquery and webservices
Previous
 
Next
New Post
1/27/2012 4:38 PM
 

I'm trying to do a simple app that uses AJAX and needs to send data to an sql server.

 I've got a webservice running on a regular asp.net website but can't for the life of me figure out how to get the webservice to work in DotNetNuke.

I get the error:

Code:
Could not load file or assembly 'DotNetNuke.HttpModules' or one of its dependencies. The system cannot find the file specified.

I've looked at some tutorials that try to explain how to do it but apparently I'm missing something. 

http://www.adefwebserver.com/dotnetnukehelp/Misc/Dotnetnuke_Secure_AJAX_webservices.htm

 Can anyone explain to me how I get this setup.  All I need it to do is take text from one text box and send it to a sql server.  I am on the latest version.

 I appreciate any help or hints on the matter.

Thanks,

Ian

 
New Post
1/27/2012 10:00 PM
 
Ian, where is your webservice located? Is it outside of the DotNetNuke app? The error you're seeing is likely related to not reference the DotNetNuke dll in your code but calling a method from DNN.


Steven Webster
Manager, Community Platform
F5 Networks, DevCentral
 
New Post
1/30/2012 10:59 AM
 
the asmx files are located in my module install location


\DesktopModules\[my module root]


And all I have in the service is the following.  I haven't modified this one yet to do what I want.  I'm just trying to get it working first.


Code:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;


namespace DotNetNuke.Modules.LiveChat
{
    /// <summary>
    /// Summary description for ChatService
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    [System.Web.Script.Services.ScriptService]
    public class ChatService : System.Web.Services.WebService
    {


        [WebMethod]
        public string HelloWorld()
        {
            return "Hello World";
        }
    }
}


Thanks for your reply,

Ian

 
New Post
1/30/2012 11:03 AM
 
This is the full error I'm getting.

http://pastebin.com/hP4GEx8b
 
New Post
1/31/2012 2:19 PM
 

I've got it working.  I probably had a syntax error somewhere.

I moved my webservice to a seperate folder than my module and followed http://www.dotnetnuke.com/Resources/Blogs/EntryId/1085/DotNetNuke-Tip-15-Running-a-webservice-inside-of-a-DNN-site.aspx 

added this web.config

Code:

<?xml version="1.0"?>
<configuration>
    <system.web>
      <httpModules>
        <clear/>
      </httpModules>
    </system.web>
</configuration> 

and it started working.

 

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesDotNetNuke jquery and webservicesDotNetNuke jquery and webservices


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