Visual Studio :: Can't Add A Reference To A DLL

Jan 27, 2010

Has anyone ever experience problems adding a reference to a DLL in Visual Studio? I have a website that I copied from our development server and placed it on a virutual pc on my local machine. I updated all the references to all the DLLs. However, when I open the property pages window, the only references I see are ones to the GAC. When I try to add a reference to a DLL it adds it to the bin directory, but it will not show in the properties pages and the reference is not resolved and I still get the error that the type is not defined. I've tried deleting the DLL and adding it again, but nothing seems to work.

View 4 Replies


Similar Messages:

Visual Studio - Why Does Website Reference Assembly From GAC, When Adding Local Reference

Jan 7, 2010

When you use ASP.NET web site (instead of web application model) and add reference to an assembly from local folder, Visual Studio, it seems, understands that this local assembly is also in GAC and so does NOT copy this assembly to bin folder (as it does with non-GAC assemblies), but simply adds new record in web.config file.

Why such a behaviour? Is it possible to force copy to bin folder (I need this since .dll is not on target environment)? I can add assembly to bin folder as file and it will work, but in this case bin folder contents will be in source control, which is not good.

View 3 Replies

Visual Studio :: Adding A Reference To A Project?

Apr 13, 2010

1. Is there a reason why someone would want to add a reference to an assembly (e.g. System.Drawing) but not add the Using statement? Seems that if you add a reference, you should add the Using statement automatically, but maybe not always?

2. Correct me if I'm wrong, the only benefit of adding a "Using" statement at the top of your file, is to bring into scope an assembly and not have to fully type the class name? So if I have a Using System.Drawing, I can type in
string = Color.Tomato.ToString(); instead of string = System.Drawing.Color.Tomato.ToString();

View 3 Replies

Restoring Web Reference In Visual Studio 2008

Feb 18, 2010

I had a web reference set in my VS2008 ASP.NET project, but due to some source control weirdness it is no longer listed in the project. I have the set of files in the Web References folder under my project. There's a .wsdl, .disco and several .datasource files. Is there any way to re-add this web reference through the existing files rather than using the "Add Web Reference" dialog?

View 1 Replies

Visual Studio :: Can't Reference Webcontrols From Code Behind

Jul 12, 2010

I´m having a problem with Visual Studio 2010 pro. I can´t seem to reference webcontrols from code behinde and there for no intellisense. Intellisense works fine, just not for controls on the ASP page.

Ex.

<asp:TextBox Width="245px" ID="txtName" runat="server"></asp:TextBox>
VB file: txtName.text = "Some text"
txtName dosent show up by intellisense.

View 1 Replies

Visual Studio :: How To Add UserControl DLL Reference Into Tool Box

May 24, 2010

Environment : Vista,VS-2005I have converted my user controls into DLL.(This is ajax enabled Website).[URL]In another project i have added this reference , register the dll and use the Usercontrol.It is working fine.Question1 : How to add this dll into toolBox?....Question2 : How to Rename this dll?....(This is ajax enabled Website-I have added webusercontrol in this site-After publish th site i got this dll.)

Eg:
user Conrol : Textbox
My Dll Name =App_Web_textbox.ascx.cdcab7d2.dll;
.aspx page (DLL Registration )
<%@
Register
TagPrefix="WebControl"
Namespace="ASP"
Assembly="App_Web_pwtextbox.ascx.cdcab7d2" %>;
<PhaerosWebControl:pwtextbox_ascx
runat="Server"
ID="pwTestDLL"
/>

This Code Workingfine.But i do no how to add this into ToolBox?......

View 3 Replies

Visual Studio :: Creating Web Reference Proxy?

May 19, 2010

i am working in the web services aspects on sharepoint. However, the vs 2008 (3.0i am working in the web services aspects on sharepoint. However, the vs 2008 (3.0 or higher) does not seem to create a proxy class when i have used the add service reference and used the backward compatible version to use add web reference for 2.0. However, i dont seem to find the proxy class. does not seem to create a proxy class when i have used the add service reference and used the backward compatible version to use add web reference for 2.0. However, i dont seem to find the proxy class.

View 2 Replies

WCF / ASMX :: Add A Web Reference To A .Net 1.1 Site From Visual Studio 2010?

Dec 13, 2010

I am facing a problem reated to web services. A customer is running his website on an old server running .Net Framework version 1.1. We would like from this site to call a Web Service, how can I do that. I have Visual Studio 2010 intalled on my machine and when I use the option "Add Web Reference" the generated files/folders seem to not be compatible.

View 1 Replies

Visual Studio :: Reference Xml Files N The Setup Project?

Dec 13, 2010

I am using VS2010. When I am building a release for a WinForms Applicaiton, I can see some .xml files relevant to project in the bin elease folder. The .dll (third party component) has been referenced in the References folder of the project for eg. Rebex.Net.Ftp and in the properties window the Source Path is

C:Program FilesRebexFile Transfer Pack for .NET 4.0FTP SSL for .NET 4.0inRebex.Net.Ftp.dll In the above mentioned source path directory there is an Rebex.Net.Ftp.xml which gets pulled across to the release folder as well. I couldn't really get my head around where this can be referenced so that it puts this .xml file in the release folder of the project when I do a build?

My main problem is, when I created a setup project for this application, I can't get this file included in the installation pack (after installing the .msi file). I get the Rebex.Net.Ftp.dll but not Rebex.Net.Ftp.xml file. I tried all the options in the Project Output except including the "Source files" which I dont want to. how to include the .xml files in the setup installation pack, ie., if there are properties I am forgetting to set or something like that?

View 3 Replies

Visual Studio :: Cannot Add Assembly Reference And Using .dll File From 2008 And 2010

Oct 19, 2010

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)

Problem:

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.

View 2 Replies

Visual Studio - Reference A Class Library In App Code Of Website?

Jan 13, 2011

I have an asp.net website with a reference to a class library. I can reference the class library in the aspx pages but how do I configure my site so that I can also reference the class library from a .cs file in app code?

View 1 Replies

Website Project To Reference A Signed Assembly In Visual Studio?

Mar 30, 2011

I'm aware of the following two different types of web projects in Visual Studio 2008:Website projectWeb application projectA web application project can reference a signed assembly as long as the web application's assembly is also signed with the same key. However, this doesn't work with the website project because there is no place to sign an assembly. I think this is because the assembly is compiled dynamically on the server?

Anyway, is it possible to get the website project working with this signed assembly? Or will I have to convert this website project into a web application project?Edit:The following situation has required me to ask for clarification in this matter:I have a class library that is being referenced by several other projects in my solution in Visual Studio. One of the projects is a windows application that will be deployed to specific external users. In order to make sure that the application is using the correct assembly and to also prevent others from using the assembly (I am aware of the limitations with respect to its effectiveness), all assemblies have been signed and all the classes in the library are declared as Friend (internal).

The website project doesn't seem to have a way for me to sign its assembly and I get the following message when attempting to use anything from the library: "CLASS is not assessable in this context because it is 'Friend'", which is to be expected.The following attributes are inside the AssemblyInfo.vb file in my class library project:

<Assembly: InternalsVisibleTo("OtherProject1, PublicKey=AAA...")>
<Assembly: InternalsVisibleTo("OtherProject2, PublicKey=AAA...")>
...

My Conclusion:Looks like the cleanest way to do this would be to convert the website into a web application but this would require a bit of time to do since our site is pretty fleshed out already and as pointed out in other discussions, can be quite a pain to do. Going forward, I think creating a web application in the first place may have been a better idea and much more flexible for future development.

View 3 Replies

Visual Studio :: Reference Resource Item / Sending Error?

Jun 7, 2010

I'm trying to reference a color value, which is stored in a file called Rsource.resx in the App_GlobalResources directory.

In vs 2008, I used to be able to use a line like this:

[Code]....

Now, in VS 2010, that no longer works.

I found a VS 2010 example that suggests I could try
[Code]....

or

<asp:Label ID="Label1" runat="server"
Text="test", BackColor="Resources.Webresources.sunlight",Visible="false"></asp:Label>

These examples both generate an error that the server tag is not well formed. I'm fairly new to this, so I think my error will be obvious to someone...

What would be the correct way to reference the color value in this case?

View 3 Replies

Web Forms :: How To Add DLL Reference In Visual Studio 2008 Website Application

Dec 27, 2012

How to add ASPSnippets.SmsAPI refrence in MS Visual Studio 2008, becuase i tried in add reference option but it is not available.

View 1 Replies

AJAX :: How To Add Reference Of Control Toolkit In Visual Studio 2012

Jun 16, 2015

I am using Visual studio 2012, I want to install Ajax Toolkit in my Project. From where to get Ajax Toolkit for VS2012? And what are the steps to add refrence (ajax .dll) into the project. Also I want to know that what things need to take care when using Ajax Toolkit in Project, both at client and server side.

View 1 Replies

Visual Studio :: UpdatePanel Reference In Control.ascx.designer.cs Keeps Changing

Oct 12, 2010

I have an annoying problem when I'm developing in Visual Studio 2010. I am using an UpdatePanel in my .ascx file like this:

<asp:updatepanel id="upStuff" runat="server">....</asp:updatepanel>

in my control.ascx.designer.cs, the update panel is being defined like this:

protected global::System.Web.UI.WebControls.WebParts.updatepanel upSettings;

this produces the error:

"The type or namespace name 'updatepanel' does not exist in the namespace 'System.Web.UI.WebControls.WebParts' (are you missing an assembly reference?)"

The actual namespace should be System.Web.UI.UpdatePanel. When I go directly into the designer.cs file and change it, it works. However, every time I go back into editing control.ascx and save, Visual Studio always changes it back to system.Web.UI.WebControls.Webparts.updatepanel. I'm not sure what is causing this. Is it how I should be referencing namespaces and classes in my project? I'm using .NET 3.5.

View 5 Replies

Visual Studio :: How To Add Copy A Reference Folder To Test Project Directory

Feb 3, 2010

I am working on my test project for my web service, and my problem is that, my web service uses a folder (within the folder there are crystal reports template).

How can I copy it to test porject?

I've tried to copy the folder to various directories such as bin, bin/debug, obj, rootDir etc, but none of them works

View 2 Replies

Visual Studio :: Failed To Add Web Reference 'com.paypal.sandbox.www' - Error: Access To The Path Denied

Mar 11, 2010

I am trying to add a web reference to my project in Visual Studio 2010 that points to PayPal's Sandbox service.

The address is [URL]

Although VS finds it using the Add Web Reference dialog box, when I press the Add Reference button I get the following error and it fails:

Failed to add Web Reference 'com.paypal.sandbox.www'.

Error: Access to the path 'C:Documents and SettingsMyNameLocal SettingsTempPayPalSvc.wsdl' is denied.

Even if I attempt this using http instead of https it still fails with the same error.

View 2 Replies

Visual Studio :: Reference JavaScript Library From Multiple Websites Without Copying It To Each Project Folder

May 13, 2010

I have several web sites, all of which use the same JavaScript library. How can I "reference" this library from each of my web sites? If I just import the library into my web site in Visual Studio, I get in trouble as soon as the library changes, because I then have to update it in all web sites manually. It would be much easier to place the library in an external folder and just reference it from my web sites. How can I do this with Visual Studio?

View 9 Replies

Visual Studio :: How To Convert Whole Visual Studio 2008 Web Site Project To Visual Studio 2010

Aug 14, 2010

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

View 2 Replies

Visual Studio :: Opening Visual Studio 2008 Project In Visual Studio 2010?

May 21, 2010

Anyone know if I can maintain a VS 2008 (.net 3.5) project by using the VS 2010 IDE ?

View 1 Replies

Visual Studio :: System.Web.Mvc Missing From "Add Reference" List?

Apr 27, 2010

I installed a few days ago VS2010 Ultimate (RTM). I made sure that MVC 2 Tools for VS2010 are installed and indeed when I open the add a new project dialog I find the MVC 2 templates. The strange thing is that when I add a class library project and then want to add reference to System.Web.Mvc assembly I find that this assembly isn't in the list. I made sure that the project's target is .NET 4 (and not client profile).

Eventually I solved it by browsing to the assembly under MVC2's folder in Program Files. I don't think that's the best way to solve it, but I don't see another solution. It seems like everything is properly installed and for some reason the MVC2 assembly isn't in that long reference list in C:Program FilesReference AssembliesMicrosoftFramework.NETFrameworkv4.0.

View 3 Replies

Visual Studio :: A Website Adds Dll Under BIN And A Web Project Adds Dll Under Reference Folder?

Jul 21, 2010

Just to test, I created a blank website and a blank web site project.

When I added a referece to web site by doing right click and add reference it added the dll inside a BIN folder but on ther other hand when I did the same for a web site project it created a reference folder for me and then added the dll under the reference folder.

View 2 Replies

Visual Studio :: Display An Assembly In The "Add Reference" Dialog Box?

Mar 28, 2011

I have an assembly and i have registered that in GAC. Now i want to reference some methods of this assembly in my some other project or i want to reference this assembly. How can i do that?

How to display an assembly in the "Add Reference" dialog box?

View 1 Replies

Visual Studio :: Visual Source Safe Plug In Control For Visual Studio 2005 IDE

Jan 28, 2010

where to find/download visual source safe plug in or visual source safe client for visual studio 2005 IDE?

I do not want to install visual source safe 2005 server.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved