You have developed an ASP.Net (aspx) web application that you are deploying to the applications (_layouts) folder in Microsoft Office SharePoint Server (MOSS) or Windows SharePoint Services (WSS) or you have developed an ASP.Net (aspx) page that supports a feature such as Association.aspx or Initiation.aspx. When deployed you received the following message(s)
Step 1 – Copy the assembly to your SharePoint application’s bin directory
Copy the assembly (dll) to the bin directory of the SharePoint server which is usually located in c:\inetpub\wwwroot\wss\VirtualDirectories\SharePoint80 where “SharePoint80” is the name of the SharePoint application that will host the application page once deployed
Step 2 – Add the assembly to the global assembly cache
Add the DLL for the ASP.NET project to the GAC
While logged into your SharePoint server, open the visual studio command prompt and type the following command (remember you MUST be on your server and you should navigate to the location of the DLL). If you can’t locate the Gacutil tool it’s available with the Windows SDK and most versions of .Net so you can usually find it by searching your system.
To manually install the assembly into the global assembly cache type the following command
Gacutil -if MyASPNetWebApp.dll
Gacutil /uf MyAssemblyName (without the .dll extension)
You can automate this as a build event in visual studio
Ulysses Ludwig is a SharePoint architect with over 16 years in the IT and computer industry. Ulysses' primary focus is SharePoint but he dabbles in the latest web technologies and likes to develop software in his spare time.