.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Add reference to external library

Posted By:      Posted Date: September 09, 2010    Points: 0   Category :ASP.Net
Hi guys,Can anybody point me in the right direction with this...I have a Class Library Project that I'm using in another Web application project. I've noticed that this has just copied the Class Library DLL into the Bin folder of the Web Application, and also that if I make some changes to the Class Library and rebuild the project, I also have to rebuild the Web Application for the changes to take effect there.This kind of defeats the object why I'm creating a Class Library as I'm hoping to put some generic functionality in there that will be available to a number of different web applications.Cheers for any help with this.Mark

View Complete Post

More Related Resource Links

Deploy VisualWebPart with external reference library

Hi to all, I've a problem because I created a webpart and I deployed it in GAC, but I reverenced an external library "Exchange Web Services Managed API 1.1". If I create a standard webapplication, all is ok. But when I use it in Visual web part project, and I deploy it, it don't found this dll in the package. The Sharepoint response, when I try to use a webpart, "File not found". Then I try to attach the process for debug and I found that this assembly "Exchange Web Services Managed API 1.1" is not registred in CAG, it's not found it!!! What can I do include this assembly in the package? And deploy this principal dll (the web part) and this referenced dll?

Can i Map to external link from document library folder



Is There any one know how to link document library folder is to external site 



Document Library Not Refreshing External Data

I have a Document Library which has a column connected to an external list (BCS).  I have serveral columns that are displaying data from the External List.  When selecting the refresh icon on the column, I get the following message: Refresh successful. 0 item(s) were refreshed. 0 item(s) could not be refreshed. Contact your system Administrator. So after the refresh is completed,  the external data is not refreshed with the latest data in the database.  The only way I can get the data to refresh is by editing the item and the document library.  This seems to force the external data to refresh.  When viewing the external list, the data is refreshing like it should.  What do I need to do to get the external data to refresh in the Document Library? Also is there a way to make the Document Library refresh automatically without hitting the refresh icon.  

Custom Web Part deployment with class library reference

Hi All, We have class library as a project in our solution as well as a web part project. Our web part simply references and executes a service utility class in the class library and outputs it into a label. The deployment is successful but when attempting to add the web part to the page, it comes out with a error page saying "File Not Found" with a correlation ID and date/time reference. Once we take out the code that executes the utility class, it deploys fine and we're able to add it to the page without any issues. It seems evident that any reference to our class library causes this "File Not Found" issue... but we're not sure how to implement this solution. Any ideas? Do we add the class library dll directly into the GAC?  If so, how? Is there another reference we have to implement in the AssemblyInfo.cs?  If so, what does that look like? Any help is appreciated. Thanks, Eric

WSDL - add reference to policy in one or more external xml files

Hello, I've searched along the web, but didn't find anything that works well. I have an external xml file which declare some WS* policy:   <?xml version="1.0" encoding="utf-8"?> <wsp:Policy xmlns:wsp="http://www.w3.org/2006/07/ws-policy" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsrr="http://www.ibm.com/xmlns/prod/serviceregistry/6/2/wspolicy" xmlns:wsoma="http://schemas.xmlsoap.org/ws/2004/09/policy/optimizedmimeserialization" wsrr:policyClassDomain="http://schemas.xmlsoap.org/ws/2004/09/policy/optimizedmimeserialization" targetNamespace="http://mycommon/Policy"> <wsp:Policy wsu:Id="WSHttpsBinding_policy"> <wsp:ExactlyOne> <wsp:All> <sp:TransportBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> <wsp:Policy> <sp:TransportToken> <wsp:Policy> <sp:HttpsToken RequireClientCertificate="false" /> </wsp:Policy> </sp:TransportToken> <sp:AlgorithmSuite> <wsp:Policy> <s

User Control that had been taken from external web control library (dll) doesn't see it's javascri

 Hello, I've created the .dll assembly with custom web controls and use it successfuly, but my last control needs a javascript. It is also in the same .dll with the control. The problem: My project doesn't see the javascrip in the externlal assembly. The question: How to tune the visibility of javascripts in the external assembly? Thank you. Serge.    

Error on VS 2008 Class Library project: are you missing an assembly reference?)

http://msdn.microsoft.com/en-us/library/bb153523(office.12).aspx Working with ASP.NET 2.0 Web Parts and Windows SharePoint Services 3.0 Based on the above MSDN Walkthrough, I created a Class Library VS 2008 project. When clicking the Build menu, 11 errors on System.Web.Security etc popped up.  What's wrong? *********************************************** using   System; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; Error 1 The type or namespace name 'Security' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) Error 2 The type or namespace name 'UI' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)

Unable to locate System.Data.Extension.dll library in Add Reference.



I want to use LINQ over DataSet in my C# ConsoleApplication project.But i do not find System.Data.Extension.dll in Add Reference section of my project.There is System.Data.DataSetExtension.dll present. I added that file, but then which namespace to use in my project ?

Object reference not set to an instance while deleting picture library Sharepoint



Whenever we try to delete a picture library I receive object reference not set to an instance, with

Object reference not set to an instance of an object.   at Microsoft.SharePoint.ApplicationPages.ListEditPage.OnLoad(EventArgs e)
   at ASP._layouts_listedit_aspx.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Has anyone come across this error? Is there an issue with Sharepoint installation?




Reference .NET 4.0 Library In .NET 2.0 app


Hi guys, is there a way of referencing a .NET 4.0 in a .NET 2.0 app? Whenever I try to compile and build I get an error saying:

Could not load file or assembly 'blahblahblah' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded. 


Any ideas? Ive tried adding the Library as a project AND as a .DLL but still no luck. Unfortunately converting the .NET 2.0 to .NET 4.0 is not optional...






Adding a reference to Microsoft excel object library


Its my first website with Visual studio 2005 and one of the things I used t do in VS2003 was to add the reference to Microsoft excel object library.

but the reference will not add, it does not give any error just goes back to the ide with no reference in the bin folder.

has anyone seen this or know what it is?

External Data Fields in a Word Template saved as a content type in a document library with multiple


I have created a Word Template for a Document Library that has an External Data Column in it of Client Name which also adds Client Address1, Client Address2, Client City, Client State, & Client Zip.  Now this works fine for a Document library with that template as the Template.dotx file. 

I want to be able to make a bunch of Templates and have them all as Content Types in one Library.  When I do this I cannot get the External Data Quick Parts to work.

Anyone have any ideas?

Could I upload doucument from an external website to the sp library?



I would like to upload the dokument from an external website to the sp library?

THnaks in advance


WCF class library reference poster


Hi there,


Can anyone send the WCF class library reference poster?




External Sharepoint Links Not Inheriting Port Reference

Hi. I can't find any question quite like this so I'll post it. Internally and externally, my Sharepoint site works fine EXCEPT that externally (http://mysite.dyndns.org:44443) not all links inherit the port reference (44443) and thus don't work. As an example, I can get to the "default.aspx" page and I can navigate to a specific item, like an "Announcement" (http://mysite.dyndns.org:44443/Lists/Announcements/.....), but when I select the attachment that is part of the announcement I can see that the URL reference is missing the port reference (http://mysite.dyndns.org/Lists/Announcements/.....) and the link fails. Not sure if this is an AAM issue, IIS or a corrupt Sharepoint config. T

Unable to add reference to Class Library from a Workflow Console Application (VS 10 beta 2)

I got a really strange problem. I am using the beta 2 version of Visual Studio 10.

I have a Class Library, Activity Library and a Workflow Console Application. From the Workflow Console Application I want to make a reference to the Class Library (I've made some BusinessEntities there..), but I get the following error: 'The type or namespace name '<namespace name>' does not exist in the namespace blabla..

I made the reference, added it by typing using etcetera, but still getting error, also get an error where I import the reference (in the using part)

Can anyone help me out with this ? Is this a bug in Visual Studio 10 beta 2, or am I doing something wrong ?

Specifying path to external items (Sharepoint Document Library)


I continue to have trouble getting a subreport to display from within a main report that is stored in a SharePoint Foundation 2010 document library.  My report server is configured in SharePoint Integrated Mode.

A TechNet article, Specifying Paths to External Items (Report Builder 3.0 and SSRS) [http://technet.microsoft.com/en-us/library/dd220423.aspx], includes the following instructions:

When you specify a path for an external item in a dialog box for actions, subreports, or images, you can browse directly to the report server and select the item. Browsing to an item and selecting it directly is the recommended way to specify a drillthrough report or subreport. That way the correct parameter names will be available in a drop-down list when you specify report or subreport parameters. When you change an item path to point to a different item, you must manually update the correct parameter names and values as needed.

On a report server configured in SharePoint integrated mode, you must include the file extension .rdl. The path can be one of the following:

  • A full path to the item.  On a SharePoint site: You must specify the report name in an expression, with the full URL of the item and the file extension .rdl. For example, ="http://server/site/lib
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend