1
Vote

GetUser client method returns null reference

description

I recently installed the C# version of IWeb on my DNN 6.0 site and tried using the client connector. I tried to get a user based on the GUID userID (source from the SQL Server Managment Studio). The client is unable to get the user with an null reference error. After looking at the web method, it looks like the ID is an 'int' but in SQL Server it appears to be 'uniqueidentifier' or a GUID.

comments

adefwebserver wrote Oct 24, 2011 at 1:55 AM

It appears that 3 versions of DNN later and it finally broke IWeb. There doesn't appear to be any way of fixing this without also breaking previous versions of IWeb working with previous versions of DNN.

I advise using the source code and implementing a personal fix.

jonlave wrote Oct 24, 2011 at 3:57 AM

I'm not sure how to make the fix exactly and recreate the module. Could you provide some pointers?
Also, is IWeb still the best way to create a web service in DNN 6, or is there a better way?
Thanks.

adefwebserver wrote Oct 24, 2011 at 4:42 AM

We have not updated IWeb in years. If you are not a programmer you may want to locate another module.

wrote Feb 14, 2013 at 1:38 AM

BVILLERSJR wrote Sep 9, 2013 at 6:12 AM

This was probably one of the most useful DNN modules of all time, but alas it's dead.

It will not work on DNN 7.

The module installs correctly, and the names of the web methods populate correctly within the module where roles can be assigned, etc. The web methods themselves appear in the browser if I browse to the page but unfortunately, I get Object reference not set to an instance of an object as the response even when executing a simple web method like GetVersion.

I sure would appreciate any advice at all with regard to how I might get this running in DNN 7.1.1

BVILLERSJR wrote Sep 10, 2013 at 12:02 PM

I take that back. Believe it or not, it does run on DNN 7.1.1!

I was getting the error from the browser because I wasn't logged in and it doesn't check properly for that scenario because there is no check to see if iWebCredentials is nothing.

I'm a little nervous about building off a code base this old be I don't see much of a choice. It's still the only game in town.

Michael- When you get bored with Lightswitch, we could sure use a DNN 7 book and maybe an update of this module ;-)

adefwebserver wrote Sep 10, 2013 at 12:35 PM

Don't be nervous because you have the source code, anything can be fixed :)