DCSIMG
SmartPart "you are missing a using directive or an assembly reference" - Adlai Maschiach

Adlai Maschiach

" You have to show in order to be seen "

News

Favorite Links

news

CardSpace

Books

Other InfoCards Proj

Virtual Earth

WSS / Sharepoint

SOA , Biztalk & ESB

CLR / .NET

SmartPart "you are missing a using directive or an assembly reference"

SmartPart "you are missing a using directive or an assembly reference"

Building WebParts is one thing, and building UserControls is another. But for those who are still in the dark regarding SharePoint development http://www.codeplex.com/smartpart can bring you up to speed in simple ( “KISS” ) UserControl development as part of Moss2007.

Unfortunately, the samples that come as part of the Package are missing one thing more – a reference to a “Custom” library, So :

Problem: 

As part of the UserControl that you’re trying to install using the SmartPart, you get an Error which spcifies that you can’t upload the user control, and if you insiste in choosing it any way you get and error which states in the end that "you are missing a using directive or an assembly reference" – and this is even when that “Custom” Library is in the GAC (!)

Solution:

Put another copy of the “problematic” DLL in the BIN folder under your WebSite

c:\Inetpub\wwwroot\wss\VirtualDirectories\80\bin

Comments

Robert M. Crouch said:

Alternatively, if it is already being deployed to the GAC, add a web.config file to the usercontrols folder and add a configuration/system.web/compilation/assemblies/add element for each reference.

# March 30, 2010 8:01 PM
Leave a Comment

(required) 

(required) 

(optional)

(required) 


Enter the numbers above: