views:

74

answers:

0

I have a SharePoint Webpart that loads an .ascx control dynamically, and that is working fine. However, I need to change the codebehind of the dynamically loaded control to pull data from a web service. I have created an assembly from the WSDL to the webservice and successfully included it in my webpart project and can build fine. However, when I deploy the Foo.dll (the generated proxy to the service) to the bin directory of the virtual directory for the site I get:

The type or namespace name 'Foo' could not be found (are you missing a using directive or an assembly reference?)

It's as though the Foo.dll never get's loaded, thus the new codebehind cannot load the object. I tried adding this to SafeControls in the web.config, doing an IIS reset.

What am I missing??