Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [assembly-references]

An assembly reference often refers to using an assembly dll in a SharePoint custom project. The Microsoft.SharePoint.dll needs to be referenced to use SharePoint classes and methods in a SharePoint custom code development project.

0
votes
0answers
12 views

A Web Part or Web Form Control on this Page cannot be displayed or imported. Even when safe control entries are present

We have SharePoint 2013 web part developed in VS 2013. On deploying web part we are getting this error suddenly. A Web Part or Web Form Control on this Page cannot be displayed or imported Type ...
0
votes
1answer
36 views

Update Hyperlink Field via Powershell (assembly missing)

I simply want to update a hyperlink field via Powershell: [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Client") [System.Reflection.Assembly]::LoadWithPartialName("Microsoft....
0
votes
0answers
36 views

Unable to register timer job after deploying wsp solution

I have created timer job in SharePoint 2013 by using powershell script.the definition of the timer job is in class file within the project solution (wsp). When I deploying using SPSD prompt at the ...
0
votes
5answers
439 views

What is the best way to load Microsoft.SharePoint.PowerShell library

I want to know what is the best way to load Microsoft.SharePoint.PowerShell assembly in Powershell IDE. Because I looked many variations on the internet(ect. google). First option: if ((Get-...
1
vote
1answer
624 views

Event manager error: Could not load file or assembly … or one of its dependencies. The system cannot find the file specified

Sorry for the common error. I have checked old discussion and cannot find one same as mine. I hope someone here have encounter this before and tell me how to fix (or tell me no way to fix). We are ...
1
vote
0answers
23 views

SharePoint.dll reference error in .Net Frameworks 3.0

Before the question, In my PC develop environment like this. SharePoint 2016, SQL Server 2016, Windows Server 2012 R2, Visual Studio 2015. I made a SharePoint Analysis Winform application under .Net ...
1
vote
0answers
338 views

System.IO.FileNotFoundException: Could not load file or assembly 'company.Something.AssemblyName

I have a class library A which has a dll reference B (class library). And they are using same .NET framework 3.5 When I call project B's method something() from project A, It is throwing an exception:...
2
votes
1answer
167 views

Security exception when trying to use JavaScriptSerializer

I am trying to use the JavaScriptSerializer class in an event receiver which is part of a sandbox solution. When trying to use the class, I get a System.MethodAccessException with the following ...
0
votes
2answers
581 views

Assembly generation failed Referenced assembly does not have a strong name

I have an Application Page in which I have done coding to create a folder in Dropbox. I have used DropNet(DropNet is a .NET client library for the Dropbox API) for the same. But I am facing an error: ...
8
votes
1answer
99 views

Of SharePoint, ALM and dll embedding

This is an argument that often get poked in online forums (social.microsoft and the like) but no one seem to have a clear understanding of all the issues, so I am posting here. Also notice that the ...
0
votes
1answer
224 views

How to add a 3rd party library in sharepoint 2010 event receiver

I am writing a SharePoint item event receiver to OCR documents that are uploaded/added to a library to generate searchable PDF for that document. I'm using a third party library (dll) "tesseract.net....
1
vote
1answer
204 views

Inherit code file in custom application page within module

My application page code <%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %> <%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %> <%@ Register Tagprefix="SharePoint"...
0
votes
1answer
1k views

Could not load file or assembly '<assembly_name>, PublicKeyToken=b77a5c561934e089' or one of its dependencies

Create new Project with two custom class library,signing that assembly with key, create one custom page, And deploy through SP designer <%@ Register TagPrefix="DataEntities" Namespace="SPTestHnG....
1
vote
1answer
9k views

Could not load file or assembly 'Microsoft.SharePoint.Client, Version=16.1.3912.1204,

Previously I was using Microsoft.SharePoint.Client.dll of version 15.0 in my application. I just removed that reference and added new reference of assembly of version 16.1. But now it is giving error: ...
0
votes
2answers
681 views

the type or namespace name 'runtime' does not exist in the namespace

I'm writing a deployment application to programmatically deploy site collections and apply templates and master pages. When I try to build the application I get a bunch of errors about a missing ...
3
votes
1answer
795 views

WebPart do not load a reference dll (RazorEngine.dll)

I have created a sp 2013 webpart. Inside this webpart I am using the RazorEngine.dll. It is included by NuGet and the solution builds. when I deploy and add the webpart to the page I got this error: ...
1
vote
2answers
292 views

Use an ObjectDataSource in a SharePoint 2013 project

I'm trying to use an ObjectDataSource in a SharePoint 2013 custom solution but I've the following errors... Just start with the initial version of the ObjectDataSource: <asp:ObjectDataSource ID="...
0
votes
1answer
2k views

Error : Type is not registered as safe

I am creating a code behind file for the site page of sharepoint. The following page directive was used <%@ Assembly Name="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, ...
0
votes
1answer
218 views

code behind file for aspx in sharepoint

I am trying to add code behind file for .aspx file of sharepoint site pages. I followed the instructions given on this link Here But I am getting this error Could not load the assembly 'CustomPage,...
1
vote
1answer
869 views

Deploy assemblies into GAC using SharePoint package

If I have3rd party assemblies in the bin directory of the project and want to deploy them to GAC using SharePoint WSP, how to do it?
5
votes
2answers
3k views

Error occurred in deployment step 'Activate Features':

I am trying to deploy a SharePoint solution on my local machine.But it is giving me the following error: Error occurred in deployment step 'Activate Features': Failed to load receiver assembly "...
0
votes
1answer
68 views

Problem in loading assemblies files for a third party tool when accessing the central administration site

I have installed a clipboard manager third party tool named "KWizCom". then i removed the web application which have this tool. but now the Central administration site become inaccessible. so to know ...
0
votes
1answer
465 views

Recaptcha.dll not found after webpart deployment

I'm developing a webpart that contains a form for register data and send it to a list. I know a little about Sharepoint webpart development but again, implementation of external resources in ...
0
votes
1answer
81 views

Assembly Issues with Workflow

I updated a custom workflow (pure c# code) in SharePoint. Everything looked fine at first, but now I found the following errors in the ULS-Log: Load Workflow Assembly: System.IO....
4
votes
2answers
22k views

Where do I find reference dll for System.Web.UI.DataVisualization.Charting?

We are upgrading a VS solution from SP2010 to SP2013. We are using VS2010 and Windows Server 2012 OS. Can you tell me where is the DLL for System.Web.UI.DataVisualization.Charting; located? The error ...
2
votes
2answers
1k views

New DLLs with another key

Please, help me to understand one thing in Sharepoint, as I'm very new in it... I have an SP site with many related lists. There are different custom forms (NewForm, for example) that have code ...
0
votes
1answer
381 views

How do I add references to C#?

I need to upload programmatically files to sharepoint. I read many artiles how to do this . However, apparently my computer does not have most of the references preinstalled. For example I was not ...
2
votes
2answers
6k views

running SharePoint utility on non-SharePoint server

I wrote a utility in C# to copy files from a network directory to a SharePoint document library. When the sys admin tries to run the .exe from a non-SharePoint server, he gets the following error: ...
0
votes
1answer
348 views

Variations and custom field

I have a multilingual SharePoint site which uses variations. However on deployment the content isn't being deployed to the other variation sites. When the "Variations Propagate Sites and Lists Timer ...
0
votes
1answer
321 views

OWSTimer caching assembly? SP 2010 dll issues

I have a phantom / cached .dll that I cannot get rid of in my SP Farm. I'm making updates to Example.dll, which contains an Email Event Receiver that I made changes to. Redeploying to the GAC and ...
1
vote
1answer
724 views

Custom library referenced in sharepoint project is not being put into GAC

I have a SharePoint 2010 project in a solution, and I have a library project in the solution. In the SharePoint project I've referenced to that project. Now when I deploy the SharePoint project, my ...
1
vote
3answers
173 views

Retrieve Strong Named Assembly for a SafeControl entry

I'm trying to add a SafeControl entry for a custom web part and know how to do it but just don't know what I'm supposed to put for the Assembly Name. It looks like it should use the template "(name ...
3
votes
1answer
143 views

Deleted Feature Receiver is Still Running

Here is a complicated one I have been banging my head against for months. I have a SharePoint 2010 site feature with a custom navigation provider. I have created a feature receiver that will add the ...
1
vote
1answer
55 views

Use WCF without adding its reference

I'm working with SharePoint 2010 and using a WCF service in my project. Due to some reasons some class names in my WCF were changed, that caused me to remove and add the service reference and ...
0
votes
1answer
239 views

SharePoint Deployment with third party assembly that requires a .dat file

I develop an SharePoint 2010 application with VS 2012. This application contains a third party dll that is embedded in the package manifest and deployed to gac. However, every time I deploy the ...
0
votes
2answers
167 views

Assembly load errors after adding web application resources to solution with farm features

We have a solution that was recently changed from being globally deployed to deployed by web application in order to move binding redirects into the solution manifest (instead of using ...
0
votes
1answer
182 views

Infopath assembly error on publishing a simple workflow by sharepoint designer to sharepoint list

I have Sharepoint 2010 Server on windows 7 installed, and i created a simple List Workflow without any infopath form with Sharepoint Designer 2010, and i have Infopath 2010 Designer and Filler and ...
1
vote
1answer
940 views

Can I use a .net 4.0 dll assembly reference in a .net 3.5 sharepoint web part?

I am using some dll's from the crm 2011 sdk in a .NET 3.5 web part.The target is for SharePoint 2010 online. When I try to build it gives me the following error: The primary reference "microsoft.xrm....
0
votes
2answers
1k views

Failed to load receiver assembly, missing service recycle?

I'm activating a feature using PowerShell and every "once in a while" it fails with the error "Failed to load receiver assembly". It seems to be complaining because some service or application is ...
0
votes
2answers
32 views

The assembly is created after its built or deployment?

I was wondering when do the runtime create the assembly of my sharepoint project, is it after building it or after it deployment ??
0
votes
1answer
152 views

Setting binding redirects for owstimer on multiple WFE

We have code similar to what is described in this blog post to set binding redirects in owstimer.exe.config using the FeatureInstalled event; the post specifically states that this event should run on ...
1
vote
2answers
327 views

How to pull SharePoint 2010 Reference assemblies for dedicated build server

I am trying to build my SP2010 projects on a clean build server. All of my project's are building fine with one exception. One Visual Web Part project fails with the following error on the build ...
2
votes
2answers
342 views

Strange issue with feature activation

I'm having a problem while activating a feature. I have a custom dll that I referenced in this new project, and I'm trying to execute some code on the feature activation. The problem is that I get the ...
0
votes
1answer
415 views

How to reference/write the file path in Elements.xml for UserControl in Sandbox Solution?

I have 1 solution (which is deploying as SandBox Solution). I have added JavaScript files, Images, Application Page & UserControl in one Module under project folder. I have one Element.xml file ...
0
votes
2answers
471 views

Add call to static method in master page

I have an branding solution with custom master page. I have also utilities assembly, which is deployed into GAC. I have a button in my master page and I'd like to bind it's navigate URL to result of ...
2
votes
1answer
318 views

Using C++ dlls in event receiver

I am trying to use a legacy C++ dll that has around 5 C/C++ dependencies in SharePoint. I created a wrapper for the dll and it works fine in a test desktop program. I added the wrapper and all C++ ...
1
vote
1answer
6k views

Load resource strings (in .resx file) from other assembly

We are seeking to gradually move custom artifacts to new solutions (wsp's) and I'm stuggling with loading resource strings from xml/code in original package (XXX.Package.wsp).Resource files are now ...
0
votes
2answers
988 views

Changing a web part assembly name

I have recently decided that the assembly name for my solution needs to be changed. The issue is that this solution has tons of web parts active in all different site collections and none will work if ...
2
votes
3answers
2k views

SharePoint 2010: System DLL (System.Collections.Generic) is not in the GAC - how do I add it?

I have a SharePoint project (named MyProject for this example) with an Application Page that references the namespace System.Collections.Generic. When I try to deploy the project, I get this error ...
0
votes
2answers
4k views

Failed to load receiver assembly

I'm working with 3 WFE, I'm, trying to deploy a solution with 2 master pages, also with a feature that will help us to change the master when we active it or deactivate it. The solutions has been ...