Last post Feb 10, 2006 01:01 AM by smehaffie
Feb 07, 2006 05:02 PM|Airstream345|LINK
Long time reader, fist time poster. Hope someone can set me straight on this one:
I've developing a custom module that retreives data from a data warehouse via a web service. For a number of reasons direct SQL calls would not work in this application.
Here is my issue; when I call a web service that requires no arguments everything works fine. Whe I call a service and pass in one argument everything still works, but as soon as I get to two parameters I get the following error
I've tested the web services independantly and have duplicated the functionality outside of DNN (new project on a web form) and everything works. I'm stuck. Any one have some advice?
Here are the details of the install: running DNN 3.1.1 on localhost on my WinXPPro machine. Running a local copy of SQL, IIS etc. Coding in VB.Net in VS 03. Web Service is a seperate solution outside of DNN but is also local.
Here is the calling code:
Private Sub btnConnect_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnConnect.Click
Dim ConsumeWS As WS_WS.DealerInventory
ConsumeWS = New WS_WS.DealerInventory
dgAssignedDealer.DataSource = ConsumeWS.DealerPortalID(DNNPortalID, DealerID)
dgAssignedDealer.DataMember = "Dealers"
dgAssignedDealer.DataKeyField = "DealerID"
Feb 07, 2006 11:53 PM|smehaffie|LINK
Feb 08, 2006 09:09 AM|Airstream345|LINK
Thank you for your suggestion, however that is one of the the first things I checked. Intellisense also "sees" both properties for this method. In fact, I've experimented by removing one of the properties from the webmethod, setting the value to a constant
in the service, updating my reference and changing my call to just the one property and it works. As soon as I add in the second property back into all of my code it fails. I've even tried adding "Dummy" properties to other working calls and they fail inside
of DNN but work outside. Each time I'm updating my web reference
Any other suggestions? It's driving me crazy and holding up the rest of my module development.
Feb 08, 2006 01:41 PM|paulsoren|LINK
Close VStudio, delete the folder VSWebCache and then try again.
I see that sometimes it solves problems like this.
Feb 09, 2006 09:48 AM|Airstream345|LINK
Thanks for the suggestion, but this did not seem to solve the prolem. It appears as if the problem is not within VS. VS "sees" the properties and compiles fine. If I dido forget to update my web reference it let's me know.
I'm beginning to wonder if it's a problem with DNN's provider model getting in front of my call.
Any other suggestion? I've just installed DNN 4.2 on another server to see if I can make this work there. It's getting deperate around here!
Feb 09, 2006 06:21 PM|Airstream345|LINK
I ended up updgrading from DNN 3.2 to 4.0.2 and my code is working fine...same code...sort of a strange one.
I have to say I'm pretty happy with the start kit project in DNN 4....what an improvement for module development.
One thing that might be a nice project (and one I may attempt on my own) would be a template for modules development when using Web Services. If I do I'll be sure to share.
Thanks for all the help
Feb 10, 2006 01:01 AM|smehaffie|LINK