Architecture :: Configuration Variables To Support Multiple DLL And Web Solutions?
Jun 24, 2010
I'm designing a framework solution DLL with reusable code that I like to use for many different projects,
I want this DLL to be able to load unknown configuration variables dynamically based on the solution its running from.
I like to load my config variables like this: MyConfig.MyVariableX
Hopefully I can also to validate my variables when the web application loads (by type) and make sure it's not missing(otherwise Throw New ApplicationException("Missing..."))
It would also be nice if I can have intellisense on these variables
I want solution A (web application) to have the configuration variables and solution B (DLL) to load the variables from the configuration file in solution A
I'm thinking maybe I should create a database table to hold the variables with types and stuff...
What would be the best way to do it ?
How can I read unknown list of variables names and values from a config file and populate my class with it on runtime ?
View 3 Replies
Similar Messages:
Mar 30, 2011
I'm very new to ASP.net, so I'm just figuring this out.First off, I have multiple separate projects that will be hosted on the same server.Second, they must be able to share certain settings (like connection string, configuration options, etc).Third, those shared settings must be configurable for different deployments (test, prod, etc).
View 1 Replies
Dec 26, 2010
I have multiple sites hosted at a hosting company that does not support domain pointing. Right now I have all of my domains go to the root directory and Response.Redirect() to a sub-directory which leaves me with mydomain.com/subdir/. Is there a way to make my own pointer to eliminate the /subdir/ portion of the URL?
View 1 Replies
Sep 30, 2010
I am in the planning phases of building a new ASP.NET website. The website is really a transactional web application where the users will log in and perform basic CRUD data operations. For right now this website will be accessible through a traditional desktop browser and a mobile browser. For the mobile browser we will build a separate scaled down version of the site.In the future we may decide to create native mobile applications for Android or iOS devices also.
So the question I have is what is the best way to design the system to easily support that? Here is what I am thinking. I am thinking of building out 3 tiers to the site. The back end will be the database - SQL Server 2008. We will use stored procedures for all data access. The middle tier will be a web services tier. This tier will be built using RESTful web services and will contain all of the business logic. These web services will provide access to the database. The front end will be built using ASP.NET. The front end will only contain presentation logic. These tiers will actually be deployed on physically separate servers.
Then I am thinking that when we decide to build a native Android or iOS app that we could build those apps to simply call the same RESTful web services that the main site is calling.Does this seem like a reasonable approach? The only thing I can think of is that the way we are building it right now the web services would be behind the firewall and would not be accessible to the outside world. When we want to support a native mobile app then we would need to make the web services accessible to the outside world.Any thoughts? Does this seem like a good approach for building a high availability, high usage web app that needs to support native mobile apps in the future?
View 1 Replies
May 28, 2010
In page behind classes I am using a private and shared object (list<client> or just client) to temporary hold data coming from database or class library. This object is used temporarily to catch data and than to return, pass to some function or binding acontrol. 1st: Can this approach harm any way ? I couldnt analyse it but a thought was using such shared variables may replace data in it ?2nd: Please comment also on using such variables in BLL (to hold data coming from database) where new object of BLL class will be made everytime.
[Code]....
View 4 Replies
Jan 11, 2010
So I started working on my first asp.net application that involves logging in and databases, and soon after i started messing around with a static class. I "discovered" that if you make a variable static, all sessions share that variable (I for some reason was originally assuming that each session had its own copy of that "static" class). Anyway, after discovering this I thought to myself "how could this possibly be useful to me" and thought that itmight be a good idea to make a single static database connection for all of the sessions, rather than storing that as a session variable for each session. Does anybody know what would be the pros and cons of this approach?
View 5 Replies
Feb 11, 2011
Does WCF support multiple EndPoint.
View 4 Replies
Apr 6, 2010
We are developing a web solution for our clients to handle their business processes. With reality in check, clients' requirements change over time; sometimes adding a new field, changing the calculation logic etc. When it was still a small scale solution, whenever an upgrade occurs, we will upgrade any existing data to the latest change i.e by having a empty property for it. I would admit this isn't the best of scenarios as old products that previously don't possess certain properties are now 'new' again which doesn't reflect the product correctly.
I am looking for a solution to introduce versioning to this solution before things get out of hand. What I've come up with is like this:
Realising that data is semi-structured (it changes from time to time), we've decided to go with an XML / XSLT approach. Storage of the data will be a mix of columns storing individual properties (e.g. ProductID, ProductName, VersionNumber) and XML columns that holds XML data to cater to fields that will change.
These XML and XSLT will have version numbers to tell the system which version of XML works with the other.Logic wise, we were thinking of developing our business logic to support multiple versions so that old products will still be calculated using old algorithms while new ones will use the new algo. For old products, besides updating them using the old algorithm, we will allow an 'upgrade' option so that they can be upgraded to the new version if they want to. Database wise will remain unchanged since we will store fields that are to be changed in XML form so extending fields should be catered for.
Would like you guys out there to comment on such a setup. I'm concern about performance since some fields are stored as XML, retrieving it will require extra steps, hence the reason why we decided some consistent fields should be on their own for searching purposes etc. Also, would doing multiple versioning like this get really big on the logic side as the program grows?
View 2 Replies
Mar 30, 2010
i have a datagrid view with two columns. the first column is readonly and the other is editable. now i want every cell of the second column to support for mulitilines in each cell. i want to press enter key and come to the next line in the same cell. im using c#.
View 1 Replies
Jul 15, 2010
I am working on a web forms application that needs to support multiple languages based on a user's preference. Here are some considerations to keep in mind about the needed solution:
I want to avoid using resource files to store the different text translations because I'd like the ability to change them without having to recompile and deploy the application.
Also the translations ideally need to be adminstratable.
It seems its a considerable amount of effort to add this support to an existing application.
View 3 Replies
Feb 21, 2010
1-i have AwebSite With English language,i want to support this site with Other Language
(arabic language),how can i do that(website with Multiple Language)??
2-how can i make photo gallery in my website?
View 4 Replies
Jan 20, 2011
I am using Visual Studio 2008 Express and I read some where that it doen't support the "publish" menu option.
The article said I need to run "Aspnet_Compiler" from the command line. What do they mean by "command line" ?? I tried using "Aspnet_Compiler -v /MyFirstWebSite" in the "Run Command" and it indicate that it can find it.
How do I use this ?? Or is there an easier way to publish my website design I did in Visual Studio 2008 Express ??
Or if I move my design into Visual Studio 2010 Express, will the publishing be easier?? If so, how do I move the complete project over ?? Is it as easy as to install VS 2010 Express and open my project ?
View 3 Replies
May 19, 2010
I currently store ASP.net application data in XML files. Now the problem is I have asynchronous operations, which means I ran into the problem of simultanous write access on a XML file... Now, I'm considering moving to an embedded database to solve the issue. I'm currently considering SQlite and embeddable Firebird. I'm not sure however if SQlite or Firebird can handle multiple concurrent write access. And I certainly don't want the same problem again. Anybody knows? SQlite certainly is better known, but which one is better - SQlite or Firebird ? I tend to say Firebird, but I don't really know. No MS-Access or MS-SQL-express recommodations please, I'm a sane person.
View 5 Replies
Mar 30, 2010
we are building a multi-tenant application, which will support that each tenant can have a unique top level domain, the application is build using the asp.net 3.5 and SQL servr 2005, while each tenant will have different database. I have seen a number of questions about the similar applications on the StackOverFlow, but none of them is related to the Testing, I want to know is how one can test the application in a development environment, specially How can we test that each customer connects to his own DB based on the URL. how can we emulate different domains on the local system. like [URL] and [URL]all goes to dev machine's IIS.
View 1 Replies
Aug 8, 2010
I am trying to connect forex trade server from my asp.net application. I am using MT4 Api for connecting. Its installed successfully and added to .net code library. But when i trying to create object of MetaTrader Class i got exception
The current configuration system does not support user-scoped settings.
There is no compile time error in code. I am getting run time exception.
There are the urls where i got some hope for solution but could not able to implement.
[URL]
View 3 Replies
Feb 26, 2013
protected void BtnSave_Click(object sender, EventArgs e) {
try {
lblErrorMsg.Text = "";
GridView1.Visible = true;
string str = ConfigurationManager.AppSettings["prink"].ToString();
[Code] .....
View 1 Replies
Mar 25, 2011
I am trying to pass multiple variables between pages....
Page1.aspx (sending page)
Dim StrValue1 As String
Dim StrValue2 As String
StrValue1='ASSIGN A VALUE......
This does not work correctly. Page2.aspx is recieveing Value1 correctly but not Value2. I dont think I have the correct syntax...
Have tried the redirect with an ampersand in the middle but that does not work either...
Response.Redirect("Page2.aspx?Value1=" & Value1 & "&?Value2=" & Value2)
View 4 Replies
Mar 9, 2010
How to Split and strip X string values into separate variables? X has string value of
itemA=myvalue&itemB=anothervalue&itemC=andanother
I have 3 strings (var1,var2,var3) to hold the values of the stripped values. Find in string X "itemA=" copy everything after "=" character until "&" character OR if no "&" character is found copy until end of string (store this value into var1) Find in string X "itemB=" copy everything after "=" character until "&" character OR if no "&" character is found copy until end of string (store this value into var2)
Find in string X "itemB=" copy everything after "=" character until "&" character OR if no "&" character is found copy until end of string (store this value into var3)
View 4 Replies
Feb 17, 2010
is there any way to stop share the static variable at multiple users....I need to create a new insatnce of static variables or not accessing the same static variables across multiple who are using the same site.....while googling i found like hisSystem.Threading.Interlocked.Increment(ref MyClass.InstanceCounter); by using can I do....or is there any other way to stop accessing the static variables accross multiple instances of my site......and in my scenario i cannot use rely on session variable also
View 2 Replies
Feb 27, 2011
How do I create a SortedList that holds multiple variables? I want to keep multiple instances of (date, height, weight).
View 2 Replies
Aug 13, 2010
Some databases that my application has to access have their name according to the current year because the ERP we work with creates a new database every year, so, now it's working with the 2010db database. There are two options (as far as I know) for the ConnectionString property of a SqlDataSource: 1) hard-code it or 2) pick it up from the web.config file.
I don't want to change manually the connection string every year, so, how can I solve this? I would need to take the value of Now.Year either in the hard-coded ConnectionString or for the Web.Config ConnectionString, but I don't know how to do that.
View 3 Replies
Feb 4, 2011
I am using MS SQL Server 2005 & here is my problem: I need to assign values to the multiple variables in a single select. But each value is depend on the certain value of the other column of the table.
declare @i1 Int, @i2 Int, @i3 Int;
select
case Table.column1
when 'red' then @i1 = Table.column2
when 'green' then @i2 = Table.column2
when 'blue' then @i3 = Table.column2
end
from
dbo.Table
how to achieve this in a single select?
View 3 Replies
Apr 20, 2010
i have 2 different sites under different subdomains.
www.company.com
and e-order.company.com
i want to have SSO so i have tried to make a global cookie.
my question is :does the global cookie keeps the session variables when i am going from one site to another?
if not how can i pass a session variable for ex. session("userName") from one site to the other on redirect?
View 4 Replies
Oct 8, 2010
I have an asp.net website in which users can submit reports. Another tester and I tested this page at the same time and when I went to review the information I submitted, it displayed information that I didn't submit. It displayed the info submitted from the other user.
I use session variables for these values. I don't understand how this happened? What can I do so each user can individually submit their information without overlapping some one else's information? The plan is for multiple users to be able to use this page to submit their weekly layer reports.
The first example of code is how I add the session variables from the textboxes.
[Code]....
The second one is how I display them in labels on a confirmation page.
[Code]....
View 16 Replies
Aug 25, 2010
I'm looking for hosting that provides both asp.net (prefer .net 4) and MongoDB. Anyone know any providers?
View 1 Replies