Architecture :: How To Add Reference To External Library
Sep 9, 2010
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.
View 25 Replies
Similar Messages:
Jul 26, 2010
I created a Global Resource file for Error messages and I am attaching the associated message to the validator control as following.
<asp:RequiredFieldValidator ID="RVTest"
CssClass="ErrorMessage" runat="server"
ErrorMessage="<%$ Resources:ErrorMessage, RequiredFieldTestKey %>"
ControlToValidate="ReqFldTestTextbox"> </asp:RequiredFieldValidator>
This is working fine.
Now I am planning to move all the Global Resources to a different library let say MyResourceLibrary and created a resource file with name ErrorMessage. I have added the reference of the library to my ASP.NET project and trying to acces the message from my library as follwong.
<asp:RequiredFieldValidator ID="RVTest"
CssClass="ErrorMessage" runat="server"
ErrorMessage="<%$ Resources: MyResourceLibrary.ErrorMessage, RequiredFieldTestKey %>"
ControlToValidate="ReqFldTestTextbox"> </asp:RequiredFieldValidator>
But this is not working.
View 1 Replies
Feb 10, 2011
I have an asmx web service, and every time I try to call a static method in another project (which is a class library), I get an internal server error 500.
View 3 Replies
Sep 7, 2010
When I undo an external dll in TFS, it looks as though it worked because I can compile with no errors. However, if I look in the folder where the dll lives it still shows the newest dll, which technically would not compile if I just did an Undo.
So, my question is, where does the old dll live after I do an Undo?
View 1 Replies
Oct 1, 2010
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.
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...
View 4 Replies
Sep 4, 2010
Recently i have joined a new project that is to be build from scratch.(goal of the project is to reach the users across boundaries : windows, web & mobile)
I follow architecture having following layers:1.Presentation Layer 2. Logic Layer(BLL) 3. Business Objects 4. Data Access Layer.
But this time i wanted to use new technologies Microsoft have introduced like Entity Framework 4.0 , WCF services.
So i have thought of creating the layers like
1.Presentation 2. BLL 3.Services 4.Business Objects 5.DAL
but i am in confusing state how to use Entity Framework. in the above layered diagram.If there any flaws in the above layered diagram do guide me.I have heard of Microsoft Enterprise Library(MEL) 5.0. What exactly it is?
Will i get benefited with MEL 5.0.
View 3 Replies
Sep 24, 2010
I was wondering if you should write code so that external classes and functions of that external class can access the webform controls in the main class???
Or should you only use the external class to process some data, return that data back to the main class (that instantiated that external class object) and then have an internal function in the main class to deliver the data to the control? (back to the screen)
View 2 Replies
Oct 26, 2010
i was wondering if it was possible to:create a new WCF Service Library project build the project and reference the dll in a web application,then consume the WCF service from the web application based on that basic dll reference
View 1 Replies
Dec 14, 2010
I have an Asp.Net TextBox control whose enabled property I need to evaluate using a separate (from the code-behind of the containing page) class. The way I want to do this is:
<asp:TextBox ID="myTB" runat="server" Enabled="<% ToggleControl(this, "someBusinessValue") %>" ... />
The reason I need to pass a reference to the calling control is to see if there are other properties I may need to consider before disabling it. The 'this' keyword, however, refers to the page as a whole. And since my TextBox can be within a FormView, or GridView, I can't easily just get the control byexamining 'page.myTB'. I don't want to have to start ploughing through GridViews on the receiving class file just to retrieve a reference to the TextBox.Does anyone know how to refer to the control inline in this way?EDIT 1: This will need to be done to several different types of server control, such as ListBox, CheckBox, RadioButtonList, etc.EDIT 2: The best I've come up with so far is:
<asp:TextBox ID="myTB" runat="server" Enabled="<% ToggleControl(myGridView.FindControl("myTB") as WebControl, "someBusinessValue") %>"
View 3 Replies
Aug 6, 2010
I've noticed as my website gets bigger and bigger, the time my laptop takes to display my page is much longer then say a new projects with minimal references. I think there are two variables at play that affect ASP.NET warm-up time:
The quantity of external references The time it takes for a worker process to new() up each instance per worker process Additional time for the WCF objects as the ServiceHost may be in an external DLL First, are those the correct variables to take into account when considering ASP.NET startup time? Next, it appears that web.config may dispatch other objects for use with certain filetypes (*.svc, *.aspx, Windows Identity Foundation (WIF), etc. ). This too may cause delays in ASP.NET.
Last, my project is created as a "web project" not a "web site". Not sure if this has an impact. Is my theory full of holes, or is there something I can do to make development on a old laptop any better?
View 1 Replies
Feb 10, 2010
My boss asked me to develop an API library for user registration. I am planning to write it in C#, compile it into DLL, and then give DLL to other groups to use it in a web (ASP.Net) application.
View 4 Replies
Feb 20, 2011
I have two projects in my solution: MyApp.Domain and MyApp.WebService. MyApp.WebService is a WCF service library. I want to use some utility functions from MyApp.Domain. So in MyApp.WebService, I added a reference to MyApp.Domain. Intellisense picked it up just fine, it recognized the function I need to call. But when I build the solution, I get this error:
The type or namespace name 'Domain' does not exist in the namespace 'MyApp' (are you missing an assembly reference?) at using MyApp.Domain.Utility;
What's going wrong here?
View 1 Replies
May 13, 2010
I'm working on an internet application that has been set up as a web SITE project (I know...) in Visual Studio. I need to add additional features/functionality so have added a class library to the project and referred to it in the main web site project.
The issue now arises because I need to make use of core objects which live inside the App_Code directory in the web site project but this project doesn't appear to expose its DLL like web app/ code library projects do. Because of this I can't add a reference to the web site project in the class library to leverage the common site-wide code/objects.
I can't move the stuff out of App_Code so I'm looking for a way to refer to the website project dll from the new class library.
View 3 Replies
Jan 11, 2010
weather to create each class libaray project for Interface, Service, Model, DTO, Repository ?
View 1 Replies
Jun 17, 2010
Is there a class library reference for the AJAX toolkit controls. I would like to see all of the properties and methods of the Accordian control.
View 4 Replies
Mar 18, 2011
Does anyone know what could be the reason I am not able to add reference to System.Web. It gives an exclamation(!) symbol in front of the dll under reference folder in VS 1020. I wand to refer to System.Web.Security.MembershipProvider class.
View 1 Replies
Sep 26, 2010
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 ?
View 3 Replies
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
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
Feb 9, 2011
<Application architecture>I'm developing ASP.NET Web Application by Visual Studio 2008.(.Net Framework Version = 2.0)I put followin two projetcs in the solution.a. Class library which implements all the buisiness logic for application.
(I'll call it "ClassLib" in the followin sentence)b. ASP.NET Web applicatoin which presents UI.(I'll call it "WebApp")ClassLib uses Web Service which located on other server. So, I set web reference in it. Method for url settings for this web reference is "Dynamic".
View 1 Replies
Mar 3, 2011
I creating 3 tier arch wpp in VS 2010. I added the BusinessAccessLayer refernce in Presentation Layer. and I created DataAccessLayer[DAL] and ORM [DBModel.DBML]. when i try to create the instance for the Table in presenation layer[default.aspx], The Table name is not shown.After adding the DataAccessLayer refernce in the presentation layer, the table name[MM_User] instance are shown.Is it the right method [Adding the DAL refernce in Presenation Layer]? If not, whats the solution for for accessing the instance of the tables[MM_User].Is it related to the Creating the DataContextWrapper class in DAL?
View 5 Replies
Feb 10, 2011
I'm currently trying to work out the best way to build this web application, which will then be intergrated on other systems, such as WinForms, Intranets etc.
We hope to include the usual layers i.e. DAL, BLL, BOL and UI but I have been experimenting with Entity Framework 4 and WCF Data Services and managed to get something in place where I was using WCF as a gateway to EF4.
i.e. Adding a Service Reference to my project and then using the EF4 context and writing LINQ queries against the DB
e.g.[Code]....
Now with the current setup I would still need to write a DAL Class Library, that interacts with the Data Service, because as I said WCF Data Services only seems to be a gateway, I can't see where to put the code (above) in the Data Service and then how I could these methods.
My questions are: 1. How do I develop a WCF Data Service in such a way to allow this behaviour - I know how I could do it using ASMX web service, something like [Code]....
2. If I am to use WCF Data Services, how is serialization handled (if at all) - again I know how to do something in ASMX web services
3. Again, If I am to use WCF, how do I add Security and only allow my applications to access the web service - for obvious reasons
4. Would it be possible / logical to also include the Business Logic Layer into the web service?
View 4 Replies
Mar 2, 2010
I am looking at the twitter api page http://apiwiki.twitter.com/ and I noticed that they have already built libraries that are wrappers against the twitter api. So I am thinking this is the best way to go but I am unsure which C# library I should use.
What I am trying to do is make some simple service or cmd line application that will help me automate retweeting.
So I am looking for a library that will allow me to get posts from other twitter accounts and then retweet them from another account.
I am not sure if the library can do this or not. Otherwise I was thinking of getting the RSS feed from the twiter account I want to get the twitters from parse out the new ones and use a library to retweet them on my own account.
I have not used twitter much so I am hopping someone can shed some light on this.
View 2 Replies
Oct 4, 2010
I am looking details on the internal working of asp.net architecture. The topics need to include the following:
Asp.Net Thread/Application Pools HttpRuntime HttpApplication - When and how it is set up How HttpContext is set up How objects can passed along the pipeline using HttpContext.Current.Items Why does modification of static variables requires locks in ASP.NET (advanced)IIS 7 Integration Mode
View 1 Replies
Sep 22, 2010
i want to create a centralised business or Service authendication architecture in .net. for example, we have a clients like c1, c2, c3, c4, ... etc. everybody logins seperatly as well as grouply. ie, if client "C1" logins [with login authentication] he can access c2 , c3, c4 also without login authendication. So its like a google. if we enters gmail account, we can access orkut, picasa like that.. i need the cetralised architecture.
And, client "c1" seperately asks seperately how will be the authendication architecture.
so give me the single solution for both these two scenarios. how will be the architecture for these two and how is the Data Base (Login) Structure.
View 3 Replies