Adding Dlls To Projects?
Jul 22, 2010Adding dlls to projects
View 3 RepliesAdding dlls to projects
View 3 RepliesI am having problems adding a reference to a custom assembly in my Bin folder within a controller class I am writing. I can see the dlls in the Bin folder of my Solution file and when adding a new 'using' block to the top of code page, its not picking up any of my assemblies as I try to spell them out.I tried just typing them in and building the solution, but I get errors, it just wont pick these up!
View 3 RepliesI need to be able to create and manage users and what sites they can access in IIS. For instance, I dont want user A touching user B's site.
I do not want to enable users to log in to the webserver via remote desktop.
I am currently extending the NopCommerce solution for a client and have some general questions about workflow, since this is a relatively large solution for me (50+ projects).
I want to add some classes to the DAL, BLL, and so forth.
What would be the recommended process for this workflow? For example, I created a class in the DAL -> ran build. Then I created a test.aspx page in the main project which instantiates this class -> ran build; however, adding just one line of code causes the solution to rebuild all other projects such as payment modules, which makes the process tedious.
Am I approaching this in the correct manner? I have read about: creating a seperate solution with relevant projects; is this the recommended approach?
I just moved to a new PC and installed VS 2010. I copied all of my websites over from the old machine and now when I open the old websites on the new machine, they do not show up in my recent projects list on the start page. New websites that I make do show up there but the old ones do not. This is very inconvenient. Is there a way to make old projects that I open show up in the list?
This brings up another question. Is there a way to make a shortcut that will open VS2010 up with a website already loaded so that I don't have to go through the file open dialog every time?
I've seen some teams that start breaking into multiple projects from the beginning and others build behemoth single projects. The large project teams say that one massive project is easier to maintain than multiple smaller projects.
View 4 RepliesI need to create a sample project (for educational purposes) and I'm faced with the choice between Web Site Projects or Web Application Projects. This feels similar to the choice between C# and VB. My question isn't about the differences between these 2 choices, but rather which is more popular (relevant, recognizable) to the general ASP.NET community.Has anyone seen any statistics in terms of adoption/usage of these 2 different project types? What project type should I use to reach the widest audience?Update: I created a poll on this subject - http://poll.fm/2e6cy
View 4 RepliesI 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.
I have an ASP.NET project under source control (Subversion). For various reasons, I don't want to add the Bin directory or its contents to source control, so I have it svn:ignored. DLLs are loaded into here during a Visual Studio build, and I can start with a clean directory and/or delete all the contents of this directory and still have a successful build.
View 5 RepliesThe server is 64 bit, but the app pool is configured to run as 32 bit. Do i need to publish 64 bit dlls? The rapid fail recovery sometimes recycles the app pool and someone suggested that it may be because i am not using 64 bit dlls. Doesn't sound likely... but you never know.I switched the publish settings to release and any cpu. But it spits out in the bin folder /bin/x64 as well. Do i copy over everything in the bin folder or do i just copy over the x64 dlls?? kinda confused on that. And why are pdb files being spit out with the dlls as well? I thought this was a debug thing only.
View 2 RepliesTrying to get the "Product Version" attribute from loaded DLLs.
For example, my System.Web.dll has a product version of 2.0.50727.4955 if you click File > Properties from explorer.
However I have the following code:
[Code]....
The ImageRuntimeVersion returns v2.0.50727, is there any way I can get the last 4 digits of the product version also?
I have two 3rd party unmanaged c++ dll and one C++ project which uses these dlls. In my asp.net project i added c++ project as reference but in runtime it fails with that error:
Exception from HRESULT: 0x8007007E
Visual studio puts c++ project's dll into /bin folder auto. Even if i put other dlls into bin folder, it fails.
I wrote a web project in VS 2005 using the AJAX Control Toolkit, now I'm resuming this project in a new machine and some AJAX components such as Cascade drop down doesn't works in none page.if I start a new project it works fine, so i think the problem is in the project I wrote years ago. when I try to include new ajax components I get an error message like "Attemted to read or write protected memory. this is often an indication that other memory is corrupt." and in the status bar keep saying, "adding reference to 'AjaxControlToolkit.dll'..."
View 5 RepliesWhile building my project various resource files getting added.ihave deleted so many time but it genrates itself while building the project agin.
BinarAjaxControlToolkit.resources.dll
BincsAjaxControlToolkit.resources.dll
BindeAjaxControlToolkit.resources.dll
We have a plugin system on a WCF service that checks libraries placed in the bin folder for certain assembly level attributes and loads them. This allows customization of certain service calls based on which client is making the call. This works great most of the time. However, sometimes it seems to lose the dll, which causes the service to revert back to the default implementation for every client. The solution so far has been to just move the dll file out of the bin folder, and back in.
View 6 RepliesI created some .net dlls as component to my web application. When I added the reference through VS10, they got into BIN folder. But when I uploaded them on my web host, It doesn't seem to detect them (shows not found error). What additional do I need to do to make them detected?
View 1 RepliesThe way we have to update our site now is to create a copy of the website project locally. Make changes. Then take the dll and any other new files and copy them to the project on the server. Sometimes they want us to work on something they need uploaded right away and other times work on something that needs to be uploaded in the future. So I have to do silly things to give them what they want now and exclude what I am working on for later. What is the best way to resolve this? I just wanna have to upload a piece of the project and certainly not the a whole new dll everytime.
View 1 RepliesMay i know how to protect the bin folder dll's compiled from the Visual Studio 2005. I am doing the project in Asp.net & c#. One of My friend decompiled all the dll's and show me. Is there any procedure to make my code standard or any free third party tools to prevent from others.
View 4 RepliesI recently noticed that when a dll is replaced at my web site, the site will take a long time to come back, even though the dll is only used by limited pages. I generally have to reset IIS to make the web site come back faster. Is this the normal behavior? or some settings need to be ajusted to avoid this?
View 1 RepliesI noticed that the DLLs in the bin folder for asp.net websites do not seem to be getting saved. When I goto a new computer and get latest I am missing the DLLs.What is the correct way to fix this ? Should I create a seperate folder to contains all DLLs ? And then can I somehow tell my bin references to goto that folder to get the DLLs?
View 2 RepliesI have my web application in which I have paste some of WebPages which is referencing to some DLL which was earlier in Bin Folder but when I move to my solution I am getting error of
Error 1
The type or namespace name 'MyDummyBinDLL' could not be found (are you missing a using directive or an assembly reference?)
F:WebProjectsProbingTestProbingTestGlobalPlus.UI.ClientWebLinkMyWebLinkHomePage.aspx.cs
13 7
GlobalPlus.UI.Client
I have a website (not web application). I deleted all references in the code to some DLLs and deleted the dlls themselves, but
when I recompile they keep coming back. I tried with resharper and read 100 articles, but I can't get rid of those dlls! )-:
How can I get rid of the DLLs?
What is the guideline on installing the application dlls in GAC? I have not never done that. Is installing shared dllas like mvc2 dlls in GAC is a good approach?
What will happen in this case where I have an old version of the same dll in GAC and a new version of the same dll installed in the bin folder? Will always the GAC dll being used by the application rather than the dll in its bin folder?
Can a windows service and a IIS site share the same dlls?
And maybe the configuration (web.config)?
i have never encrypted any dlls. How to protect and secure compiled code, that cann't be extracted with the help of software like .net reflectors
View 1 Replies