Visual Studio - Website Still Looking For Old Name Of Renamed Referenced Assembly?

Aug 4, 2010

I have a solution with a website and a class library. I have renamed the class library project from Insight_WebControls to Insight.WebControls. I have also renamed the assembly it produces in its properties.

I have removed from the website's references the old class library and added the new.

However, when I try to build the website, I get the error 'Could not load file or assembly 'Insight_WebControls' or one of its dependencies. The system cannot find the file specified.' There is a dll called 'Insight.WebControls' in the bin folder. Clearly some part of the website is still looking for the old filename. Can anyone tell me how to point it to Insight.WebControls.dll instead?

View 1 Replies


Similar Messages:

Visual Studio :: How To Compil A Website That Uses An X64 Assembly

Aug 30, 2010

I am trying to compile a website in Visual Studio 2008 on a 64-bit platform. The website needs to run as a native 64-bit application, and also references an x64 assembly. Whenever I try to build the website in visual studio, I get a bad image format exception referring to the x64 assembly.As per my understanding, visual studio compilation is running as a 32 bit process causing this problem. Also, for websites the only build platform available for selection in visual studio is '.Net'. So I cannot select that the website should be built for x64 execution.

View 3 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 :: Assembly Editor - Create A First Blank Page For An Assembly Project?

Oct 11, 2010

i was wondering if visual studio 2010 can be used as an assembly editor too????if yes where do i have to go to create a first blank page for an assembly project?

View 1 Replies

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 - How To Find All Usercontrols That Are Not Being Used / Referenced

Nov 12, 2010

I have a project with hundreds of usercontrols but many of them are old and no longer used. Is there are quick way to find out which ones can be deleted?

View 1 Replies

Visual Studio :: Intellisense Can't Find The Source Files For BIN Referenced Assemblies

Mar 23, 2010

When I use Project Reference to add dependent assemblies to my C# library project, I can use the "Go To Definition" popup menu item to go to the source file of the class defined in the dependent assembly. That is one of the most useful features of VS for me. However, when I add dependent assemblies as BIN References (via the Browse tab of the Add Reference dialog), I only get the class definition generated from metadata of the dependenat assembly, not the source file.

I realize that intellisense can't find the source directory of the dependent assembly, but where can I enter the directories so intellisense would know? There is a "VC++ Directories" page in the Options->Projects and Solutions dialog, but that is only for C/C++ projects. There should be one for C# as well. The bigger mystery is when I put my project in the debugger, I can step into methods defined in the dependent assembly and see its source file. Why could the debugger find the source file but not intellisense?

View 2 Replies

C# - Referenced Assembly Won't Load In New Thread On IIS 7

May 25, 2010

I have a process in which a user uploads a file to a web site where the file is then processed and uploaded into the database. The process of validating the file could take several minutes so as soon as the file is uploaded I create a new thread and I do my processing on this second thread. This works great on my local machine but doesn't work at all on my IIS 7 test server.

After some investigating I found the problem is that the process is trying to load a reference to Castle and it can't find the DLL. I have a copy of Castle DLLs in my bin and it works elsewhere in my app. I ran Fuslog and discovered that it is trying to load castle from the wrong location. It is trying to load from c:/windows/system32/inetsrv/.

It appears that under IIS 7 the second thread is executing in a different context or something.

View 1 Replies

Visual Studio :: How To Add An Assembly Into GAC In VS 2010

Feb 23, 2011

I have added an assembly into GAC in VS 2005, and VS 2008 as well.

Today I have tried the same approach, but I am not getting.

I am not understanding what is the problem, but I am ending up with the following two warnings!

Warning 1 Option 'keyfile' overrides attribute 'System.Reflection.AssemblyKeyFileAttribute' given in a source file or added moduleWarning 2 Use command line option '/keyfile' or appropriate project settings instead of 'AssemblyKeyFile'

View 4 Replies

Visual Studio Assembly References?

Sep 5, 2010

Is there anyway to localise an external assembly reference? Here's my situation:I am working on Project A and it contains assembly references from Project B. Now when I release this Project to my client I don't want to have to include the whole of Project B with it. Is there anyway to force it to copy the dll's from Project B onto Project A and use those references? I can do this manually by copying all dll's to local project and re-referencing but just wanted to know if there is an easier way.

View 1 Replies

Visual Studio :: Configuring Assembly For Versioning?

Dec 23, 2010

I would like to know why I am not able to see myclasslibrary.dllhaving strong name key and added in gac when adding through 'add referrence in solution explorer of vs2008 professional edition.I used .netconfiguration tool2.0 for adding assembly into Gac.In installation default folder of VS2008 I was able to see
2 folders 'C:WINDOWSMicrosoft.NETFrameworkv2.0.50727'and 'C:WINDOWSMicrosoft.NETFrameworkv1.1.4322' .Which Gac foder is getting used?using Gacutil.exe -l I did not find myssembly though it showed from configuration tool mmc.

View 1 Replies

Pages With 64 Bit Assembly In Visual Studio 2010?

Nov 3, 2010

I'm using a 64bit dll (system.data.sqlite) in an Asp.net MVC app in VS 2010. The application runs and debugs fine, but all the aspx and ascx pages show errors when editing in Visual Studio 2010 and intellisense doesn't work. This is a VS2010 regression bug. Does anyone have a work around? (OR)Does anyone know of a free, reliable, production ready embeddable database that doesn't cause a 32/64 bit problem?More DetailsApparently this worked in Visual Studio 2008 and this has been is a known regression bug in Visual Studio 2010 for several months. I don't want to revert to VS 2008 and I don't want to debug in 32 bit mode.

I have web application that needs to debug and deploy as a 64 bit mode because it uses uses some unmanaged 64 bit dll's like system.data.sqlite. Also, I prefer debugging in 64 bit mode because it allows us to test some high memory use cases. After a lot of fiddling, Asp.net will deploy and run just fine. However all the aspx and ascx pages show errors and intellisense doesn't work when editing them in Visual Studio 2010. Apparently this worked in Visual Studio 2008 and this has been is a known problem in Visual Studio 2010 for months. I don't want to revert to VS 2008. There was a work around posted on SO here but it didn't work in my tests, limits debugging to 32bit mode, and also feels a bit hacky (I think it only works for VS Express style websites). Has anyone made this work in a web application or have a better work around?For those who are interested Visual Studio 2010 has two other problems with 64bit dlls that I have managed to work around.

Problem 1 - Cassini: Cassini can only debug in 32 bit modeSolution 1 - CassiniDev or Localhost: Debug using localhost or compile CassiniDev (an opensoure variant of cassini) in 64bit mode. I like the zero config simplicity of debugging a new web app with cassini so I used CassiniDev. You just stick the dlls in C:Program Files (x86)Common Filesmicrosoft sharedDevServer10.0 and it works (I recommended making a backup of the Cassini version you will be over writing).Problem 2 - MSTest: By default unit tests run with MSTest fail to load 64bit dlls.Solution 2 - AnyCPU & 64bit host process Instructions here, set local.testsettings to AnyCPU & 64bit host processI'm starting to think the whole setup is too little hacky and I'm on the verge of giving up and restructuring my application to not use a 64bit dll. I'm also really disappointed that Visual Studio 2010 caused all these problems. Can somebody make MS fix the regression bug they created?

View 1 Replies

Visual Studio :: Visual Studio Hangs When Create A New Website Or Project

Sep 2, 2010

Just as the subject says, my VS'05 installation hangs when trying to create a new website. I even installed a fresh version of VS08 along side '05 and '08 is doing the same.

View 9 Replies

Visual Studio :: Can Prevent Projects From Being Referenced By Other Projects

Jun 7, 2010

I have a multi-tiered application. I would like to publish the class libraries to UI developers to let them add to their web or windows projects to add all the functionality.

I would like to restrict access so only a certain project can be referenced. The reason is so that they do not refer to the data access layer directly and start making calls that would bypass the business logic built into the business tier.

UI->>Business Logic->>Data Access

So in other words, BL and DA are deployed as compiled assemblies. BL references DA. UI will reference BL, but I would like to strictly prevent any other project from referencing DA directly.

View 1 Replies

AJAX :: Server Control - Defined In An Assembly That Is Not Referenced?

Sep 28, 2010

I have created a server control for my web page... I have decided to add an ajax popup extender (after creating the control, which builds and works fine.) After I add the AjaxControlToolKit reference I add the following:

[Code]....

I get this error when I add it:"The type 'System.Web.UI.ExtenderControl' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Extensions, "I googled the error and it says to add something inside the web config... I do not have a web.configfile inside the server control.

View 3 Replies

Visual Studio :: Could Not Load File Or Assembly App_Web?

Apr 6, 2010

I published my site with Visual Studio on Windows web Server 2008 R2......but I have this error:

Could not load file or assembly 'App_Web_xxxxxxxx, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.I tried to delete in the temporary ASP.NET files the hash files but nothing, the error is the same!I installed the framework 3.5 and Visual Studio for try the compilation and with the temporary server of VS it run but with the iis (7) not!

View 7 Replies

JQuery :: Visual Studio Debug Assembly Dies In The GAC After A While

Jun 1, 2010

Does the temporary assemblies that VS creates when you debug a WCF ajax enabled webservice gets deleted after a few hours of running an instance of the development webserver?

My assembly seemingly gets removed and I have clean the solution and restart the webserver instance.

View 1 Replies

Visual Studio :: Signing Assembly Access Is Denied?

Jan 5, 2011

I've recently upgraded to WIndows 7. When I try to sing the assembly in VS2010 I get an "Access is denied" error. I am logged as admin so I'm puzzled. What service account does VS uses that I should elevate its privilages?

View 1 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 :: Ajax Toolkit VS2010 Beta Assembly

Jan 6, 2010

I installed a fresh machine with Win7 x64 Ult. wMS updates including 1/5/09, then installed VS2010 Ult beta with .Net V4.0. When I create a new web site, add the ajax references and controls, and use an ajax control on a generic aspx page then build I get the following popup: Find Source: ScriptObjectBuilder.cs and Find Source: ScriptControlBace.cs I downloaded the Ajax source file and point this to the file its requesting it doesn't like it. Anyone know what is going on with Ajax and VS2010?

View 2 Replies

Visual Studio :: Error Message - Assembly Built By A Runtime Thats Too New?

Jan 24, 2010

I created an asp.net application, and it worked on my local PC. I was using Visual Web Developer 2010 beta.

Then I uploaded almost every file (not the sln and suo files) to my shared-host unix website. This Unix website is supposed to support asp.net.

But I got this error:

Server error in application. Could not load file or assembly 'dave' or one of its dependencies.This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded Does this mean my version of the net.framework is too advanced? Or maybe the version of Visual Web Developer? Or some other reason?

View 2 Replies

Visual Studio :: Difference Between Build And Revision Number In Assembly.cs?

Jan 30, 2011

what exactly is the difference between build number and the revision number in assembly.cs file?

For instance the assembly version is 1.2.407.7890

Major = 1
Minor = 2
Build = 407
Version = 7890

Now when i make some change in the projects file and recompile it, only the version number changes. When does the build number changes?

In what scenario does the build number changes?

Also let me know what exactly is AssemblyFileVersion? How is it different from AssemblyVersion?

View 1 Replies

Create An Assembly In A Web Application Project In Visual Studio 2008?

Mar 17, 2011

In a Web Application project in VS08, how do you create an assembly? E.g. you derive a class based on HtmlGenericControl to form your own div, override the ClientId and UniqueId properties, so as not to get screwed up id's on the client-side, and then you want to use/reference this control in an aspx page.

refer to David Lively's answer (c# control names) regarding the same thing. I have tried his solution but I keep getting "could not load assembly file".

View 1 Replies

Visual Studio :: Assembly Entries In Web.Config Were Adding Automatically And Now They Are Not?

Sep 2, 2010

A while ago when i started using VS 2005, i found that some assembly entries were automatically added to from web.config

and i was getting annoying errors. later i found i have added unneccessary references in my application. And its a feature that assembly reference are automatically added to assembly tag in Web.config, So dev don't have to worry about it.

Recently i used Interop.OWC11.dll in my application. And ^&*# got the annoying

"CS0234: The type or namespace name 'Office' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)"

error again.. Assembly entry was not added automatically. I checked same for existing references in my application, for them to automatic entries is not happening.... ? :(

I have to write is down in Web.config manually... I don't understand why?....

View 2 Replies

The Type 'System.Data.Linq.EntitySet`1' Is Defined In An Assembly That Is Not Referenced?

May 26, 2010

I created DBML file inside DLL. compiled it and added a reference to it into a website project.When try from webproject to use the DLL I get error.

[Code]....

View 2 Replies







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