Error 30 Cannot implicitly convert type 'IWS.Lib.SingleSignOn.MembershipWebService.ServiceResponse'

Jun 20, 2007 at 11:29 PM
Edited Jun 20, 2007 at 11:33 PM
I posted this to discuss some of the issues a few people are having compiling the code.

One of the errors that might appear will look like:
Error 30 Cannot implicitly convert type 'IWS.Lib.SingleSignOn.MembershipWebService.ServiceResponse' to 'IWS.Lib.SingleSignOn.ServiceResponses.ServiceResponse' Error 31 Cannot implicitly convert type 'IWS.Lib.SingleSignOn.MembershipWebService.ServiceResponse' to 'IWS.Lib.SingleSignOn.ServiceResponses.ServiceResponse'

Anytime the web reference URL is changed using the designer, Visual Studio tries to recreate all the supplementary proxy classes belonging to the web service functions. When I built this library, I removed those proxy classes and referenced the client-side web functions directly back to the original objects intending the same library to be client and server side.

So to resolve this, simply replace your reference.cs files for both web services with the original ones you downloaded from the release. Recompile and it should come up fine.

With the recent change to the config file, there should only be one web path to worry about. The original reference.cs file knows how to parse the config and append the proper web service file name to the web path.

Reply here if you're having any issues with this subject.

Jul 2, 2007 at 12:35 AM
Sorry, I dont understand your instructions above, could you please be alittle more detailed on how to compile your project so I can run this project.

Jul 2, 2007 at 3:27 PM
Try this. Remove existing web references in project "SingleSignOn", add them again and save. From zipped file, extract reference.cs and overwrite same files in your project.
Jul 2, 2007 at 9:25 PM
Edited Jul 2, 2007 at 9:32 PM
I started stepping through this step by step to answer your question and found some issues with the RoleService client-side. I'm fixing this now, and I'm going to post a release soon with step by step instructions on how to test it. Keep an eye out for 1.0.2.

In the mean time, you can pull down the most recent source check in. The changes should be there. I'm not going to be able to get to pushing a release out until later tonight. The instructions will appear in the planned release 1.0.2
Jul 3, 2007 at 12:51 AM
1.0.2 is posted. Check out the release notes for instructions and details that should eliminate this error.
Dec 13, 2007 at 3:36 PM
Snedzad said it perfectly. :)

The release notes for 1.0.2 are found here:
Jan 4, 2008 at 4:45 AM
another way is to manually generate reference.cs from wsdl. update web references brought about this problem.