.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

Can not add assembly reference and using .dll file from Visual studio 2008 and 2010 Type 'LibraryN

Posted By:      Posted Date: October 19, 2010    Points: 0   Category :ASP.Net

Hi all,

Please tell me the way to solved my problem to looking for a long time.

My System Info:

OS: Windows 7 - Ultimate - 64bit

VS: Visual Studio 2008 - Professional (and problem with my VS2010 installed)


I have a small project and build it to library .dll file with some function util.

From an other website (with diffirence solution). I added reference the .dll before to website.

In website, I declaration to using the function in library (dll file before). But I found error:  Error 1 Type 'LibraryName' is not defined.

And in VS2010 the problem is same.

But, run website on an other computer, it work normally.

Thanks and Best regards.

View Complete Post

More Related Resource Links

Visual Studio 2010 Report Wizard error could not load file or assembly


Hello frnds

i am developing a website using visual studio 2010

i want to develop reports for which i am using reportviewer control

I am having a seperate project (MyControl.Model.dll) which is referenced in my website

now when i try to create a report.rdlc file using Report wizard, i gives me error "Could not load assembly MyControl.Model.dll version= publickeytoken = null or one of its dependencies. The system cannot find the file specified". 

I dont understand what this model project has to do with report.rdlc?

can anybody give me solution for this. its urgent

Thanks in advance


sharepoint 2010 custom webservice, visual studio 2010, unable to get reference - content type is tex


I followed the MSDN example in how to create a custom webservice that integrates with sharepoint at http://msdn.microsoft.com/en-us/library/ms464040.aspx

I'm able to successfully call the custom webservice it walks you through from internet explorer out of a sharepoint 2010 site using a URL such as http://vm-spproduction/sites/resource/_vti_bin/service.asmx

And, I'm able to successfully call the same custom webservice from internet explorer out of the same sharepoint 2010 server with the URL http://vm-spproduction/_vti_bin/service.asmx

In Visual Studio 2010 (running on the same hardware server as sharepoint 2010), I am able to bring up the same custom webservice in the add web reference using the advanced buttons of the add service reference dialog.  But, when the custom webservice is found, visual studio reports the following error:

The document at the url http://vm-spproduction/sites/resource/_vti_bin/service.asmx was not recognized as a known document type.
The error message from each known type may help you fix the problem:
- Report from '

is it possible to convert whole visual studio 2008 web site project to visual studio 2010 web site p


is it possible to convert whole visual studio 2008 web site project to visual studio 2010 web site project


my current project references




i have a very annoying iis problem

iis server stops working until app pool is recycled


i am hoping that new visual studio (net framework 4.0) may solve this very annoying unsolveable problem


Video: SharePoint 2010: Creating .NET Assembly Connectors in Visual Studio 2010 Support

Learn how the inclusion of Business Connectivity Services (BCS) creates opportunities to leverage SharePoint features and APIs against your existing line of business data that is available via direct database access or via Web services. (Length: 5:41)

WPF Designer (in VS 2008 and VS 2010) crashes with Visual Studio

Good day all. I have the following question: WPF designer in both VS 2008 and VS 2010 crashes with Visual Studio when I try to edit UI form. Moreover, it crashes even when I try to save .xaml.cs file. Meanwhile, Winforms and Dataset UI editors work as usual. Are there other people met this issue? And how could I fix up this problem? Deleting the .suo file, uninstalling silverlight, repairing visual studio, and further googling did not help me. Thanks in advance.

Visual Studio 2010 - SQL 2008 or SQL 2008 R2

I have just rebuilt my development platform i.e. I ran the Windows 7 Ultimate setup app on an X86 platform followed by a fresh install of Visual Studio 2010 Prof. Using VS I opened up a solution created before the rebuild which includes a connection to an .mdf file. On attempting to connect to this file I Got an error message of the  follwing type. The database '.../XXX.MDF' cannot be opened because it is version 661. This server supports version 655 and earlier. A downgrade path is not supported. Referring to this link http://social.msdn.microsoft.com/Forums/en-US/sqlgetstarted/thread/0a4082a2-793e-42c3-9f68-95041002b4de, leads me to believe that VS2010 uses SQL Express 2008 for database access and that I had been using(unknowingly) SQL Express 2008 R2 during my previous development activities. If that is the case two questions arise :- Why does VS2010 install package install the four 2008 R2 components when I presume that these would also be incompatible with SQL Server Express 2008? Is there a version of SQL Server 2008 R2 - since I assume that R2 is the latest and greatest version - that I can install on my machine and if so how do I tell VS to use 2008 R2 rather than plain old 2008? I hope these questions do not seem like the meanderings of a raddled brain, but any light you can throw on them, would help me gain a better understanding of the relationship bet

Visual Studio 2010 Lab Environment for Student to deploy to a IIS 7.5 web server with SQL 2008

Currently the environment I am trying to create is a teaching lab for Visual Studio 2010 and ASP.NET website development. The intent is to setup an environment where students can create a website with an attached database written with the assistance of Visual Studio 2010. When the website is completed they need to use one of the Visual Studio deploy technologies to upload the website to a locally run server (Windows 2008 R2 with IIS 7.5 running and SQL Server 2008.) I am responsible for setting up the correct deploy technology in Visual Studio as well as setting up the IIS 7.5 deployment server that is running the right version of SQL Server. I have already started this process and figured out how to configure a deployment package in visual studio and have it published on our local server. I am trying to get a very streamlined environment that does not require students have to configure a lot of SQL strings and IIS settings because this is not really what the teaching lab is all about. Just to let you know, we have had  this exact setup using Visual Studio 2008, Server 2003 with front page server extensions on IIS 6.0 and SQL Server Compact edition running on the server. My issue is that since it is now time to update everything there does not seem to be something comparable. Any help would be greatly appreciated. If someone has an idea of the 

How to add Sharepoint dll reference to Windows Forms application project in Visual Studio 2010?

Hi,I am using Windows Forms application template in Visual Studio 2010 Beta. I created this for some R & D work. Now I am using Sharepoint object model in application. When I am trying to add Sharepoint dll reference from .NET tab, I can not see Windows Sharepoint Services there Which was available in Visual Studio 2005.Also If I am add this sharepoint dll from ISAPI folder (14 Hive), it is added succesfully, but it is not taking actually in project and showing me an error during running mode that theError 12 The type or namespace name 'SharePoint' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) Please suggest me how to add Sharepoint dll reference in Windows forms application in Visual Studio 2010?

Visual Studio 2008 Cross Reference Problem


Hi to all

I got following warning when I opens my solution...

Warning 1 There is a circular reference involving the import of file "C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.CompactFramework.CSharp.targets". This file may have been imported more than once, or you may have attempted to import the main project file. All except the first instance of this file will be ignored. EM.ShoppingCart

"There is a circular reference involving the import of file "C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.CompactFramework.CSharp.targets". This file may have been imported more than once, or you may have attempted to import the main project file. All except the first instance of this file will be ignored."

I got this error after my VS 2008 crashed three times and after every crash it got restarted and made backup. So three back ups are made in my solution folder... when I got the above mentioned error I moved all the backups from solution but i cant get rid of it....

Thank you;

Can't add MDF file to Visual Studio 2010 Silverlight example project.


I have Visual Studio 2010 Ultimate.  And I've downloaded and installed Sql Server 2008 R2 Express.

I'm going through a Silverlight trainging module and using the 

Silverlight Business Apps: Module 2 - WCF RIA Services

example application.  The database included (as an .mdf file) won't attach in the project.  I get this:

"Connections to SQL Server database files (.mdf) require SQL Server 2005 Express or SQL Server 2008 Express to be installed and running on the local computer.  The current version of SQL Sever Express can be downloaded at the following URL:......"

But of course, I have the most recent version.  Now I did have SQL Server 2005 Express Edition installed before and it wasn't working either.  I got a different error concerning the version of the .mdf file.  In an attempt to resolve this I un-installed the 2005 version.  Now I've got a functioning default instance of Sql Server, but I notice it's not listed as .\SqlExpress as the 2005 version was.

Can someone help me get this working?  Do I need to change the name of the SQL Server instance in order to for Visual Studio to be able to attach?

I also can't attach the file using SQL Server Management Studio, but I think that's because the file has the path to the Log file somehow

Windows XP, Visual Studio Express 2010 and SQL Server 2008 Express - How can I save modified columns



I am using c# in VS 2010 Express. I have a MDF database that I connect to through "Database Explorer". Database Explorer will not let me SAVE columns that I have modified. As I know in SQL Server 2008 full edition you can change the setting "Prevent saving changes that require table recreation" in Management Console to prevent this. I haven't got Management Console and can't see it in install.

How do I change this setting if I haven't got management console? Is it in Registry or Config File.



SQL Server 2008 R2 Developer with Visual Studio 2010 Pro always defaults using SQLEXPRESS


I had un-installed SQL Server 2008 Express that came with the Visual Studio 2010 Pro.

I had installed SQL Server 2008 R2 Developer, and Im able to connect through the Management Studio and Visual Studio itself.

The problem is: whenever I create a new ASP.NET Web Application, the web.config always defaults using SQLEXPRESS.

How can I change this within Visual Studio 2010 so that the web.config defaults to the new database SQL Server 2008 R2 Developer that I installed?

Can not establish a connection to SQL Server 2008 R2 via Visual Studio 2010 Framework 4.0


Hello All, I would appreciate any help with this.

I believe my problem exists within the web.config which already had code in it to connect to SQL Server Express 2008.

I uninstalled the SQL Server Express that came with Visual Studio 2010.

I installed SQL Server 2010 R2 Developer, and I'm able to connect via Management Studio and through Visual Studio's Server Explorer's Data Connections I am connected.

I did run aspnet_regsql.exe within the 4.0 folder in order to create the database with Microsoft Service Providers.

Here is the ServerName: USER-5529234649 

Here is the name of the DataBase:  StepByStepChapter9

Here is the name of the Connection within Visual Studio's Server Explorer's Data Connections:  user-5529234649.StepByStepChapter9.dbo

Here is the code I changed in the web.config:

      <!--<add name="ApplicationServices"
            connectionString="data source=.\SQLEXPRESS;Integrated   Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true"
            providerName="System.Data.SqlClient" />-->
      <add name="ApplicationServices" connectionString="data source=user-5529234649\Step

Deploying SSRS Reports from Visual Studio 2010 to Report Manager 2008


Our Report server is using Report Manager 2008. Previously I would load reports to it that I created via BIDS. Now I have to use VS 2010. I see that I can build and deploy reports there. Can I send it from VS 2010 to the REport manager 2008 on the other machine? I should add that now i have to develop on laptop only before i was on the server.

If not what are my options? I recall that vs 2005 objects were not taken in Report manager 2008.

After Visual Studio 2010 conversion from 2008 pages won't display in browser correctly


I just upgraded to 2010 and converted my VS 2008 ASP.NET web application. There were no conversion errors and everything displays in the Design mode correctly but when I try to View in Browser or debug the site won't display. I just get a blank page untitled page displayed.

Can anyone help me out with this problem?


SQL Server Express 2008 and Visual Studio Express 2010



A few months ago I upgraded to VS2010 - at the same time I thought it would be good to upgrade to SQL Express 2008 R2.

It turned out that there was some compatibility issues between the two - "...cannot be opened because it is version 661. This server supports version 655 and earlier. A downgrade path is not supported."  After much trouble I restored the database and have done most of the stuff I need through VS itself.

Now I need to use SQL itself and am positively scared to death of what it could do to my database again.  Can anyone offer any advice - it is a service pack update or something...?



Add Web reference in Visual Studio 2008 fails with Access denied error


i am trying to add a wsdl file to a C# project by using Add Web Reference utility but the tool fails with the error access denied to the path .. is denied. quite not sure where to check the params. any help would be appreciated.

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