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...DNN Platform (o...DNN Platform (o...Access Web Service Localy.Access Web Service Localy.
Previous
 
Next
New Post
6/16/2009 5:31 PM
 

Hello.  I have a web service that gets data fromo one module. 

The entire web service consiste of two files:

~/App_Code/Inventory.vb

~/WebServices\PropertyAgent\Inventory.asmx

I madde a web refrence in Visual Studio 2008 and on My dev machine everything looks fine.

When I migrate this set up to our test server it blows up.   I am able to enter the url of our test server and bring up the web service ok, just can't do it from code.

We are using a web service because we plan to use multiple installs of DNN and want to get the data from one install to the other(s) using the web service.

I have researched and  have found a number of (IMO) not simple solutions to fix this.  For now what I'm asking is why would this set up work localy and then not like it on the test server?

Thanks!

Here is the error I'm getting on test :

DotNetNuke.Services.Exceptions.ModuleLoadException: C:\Inetpub\TEST_DNN\DesktopModules\PA_ImportInventory_WebService\ViewPA_ImportInventory_WebService.ascx.vb(1188): error BC30002: Type 'WebServicePropertyAgent.Inventory' is not defined. ---> System.Web.HttpCompileException: C:\Inetpub\TEST_DNN\DesktopModules\PA_ImportInventory_WebService\ViewPA_ImportInventory_WebService.ascx.vb(1188): error BC30002: Type 'WebServicePropertyAgent.Inventory' is not defined. at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings)

--- End of inner exception stack trace ---

 
New Post
6/17/2009 9:47 AM
 

Hello again.

 

I just wanted to report that I figured it out.  Maybe this will help others 

 

When I created the web refrence in Visual Studio 2008 on my DEV machine it created three files :

~\App_WebReferences\WebServicePropertyAgent\Inventory.disco

~\App_WebReferences\WebServicePropertyAgent\Inventory.discomap

~\App_WebReferences\WebServicePropertyAgent\Inventory.wsdl

 

All I had to do was copy those three files over to the ~\App_WebRefrences folder on TEST and that fixed my problem.

Hope this helps somebody else one day.

Thanks!

George

 
New Post
6/17/2009 10:57 AM
 

Rather than doing this as a dynamic module with the app_code folder, I would do this using a WAP project (Web Application Project), it looks like you just have an issue with the compile order.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
9/4/2009 4:44 PM
 

I am having this same problem..

I am trying to connect to a partner webservice in a module.. the module works fine as a user control but when I put it as a DNN control I get these errors that teh types coming from the webservice are not defined.

What special steps must be done to consume a webservice in a DNN module?

I dont have a .discomap file.. there is a .map file but it has partial class vb file under it so I woudl think this gets comiled into the DLL.


Thanks

 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Access Web Service Localy.Access Web Service Localy.


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