Presenting Different Versions Of An App Dynamically?

Sep 20, 2010

I maintain a web application that is painful to upgrade. It's not painful because the code is bad, but because there are a lot of devices connected to this application via the web and getting them to update their clients is a lot like moving concrete.

So I had an idea that I could simply present a different version of the application to different customers. The session stores the client information. So what I'd ultimately like to do is peak at that session and then use that to present the "correct" version of my app to them.

Physically the apps are stored in a manner like such:

C:Program FilesCompanyProgramVersionWebWebApp

So you can see that I could have multiple versions installed at once. Basically if customer A goes to the site they get presented with C:Program FilesCompanyProgram1.0.0.0WebWebAppfoo.aspx And if customer B visits the site, they get to see C:Program FilesCompanyProgram2.0.0.0WebWebAppfoo.aspx.

I initially thought of using the IIS rewrite module, but I really don't want to redirect them. I want this to be seamless. how this can be implemented?

update:

After further research, I thought it would be clever to use the Global.asax.cs to accomplish my goal. So in the Application_BeginRequest event handler, I wrote the following:

[code]...

By the way, /art/ is a virtual directory that I grafted into this directory via IIS. This would be similar to how I would set it up in production. Anyway, I get the following error when I try this.

The virtual path '/art/test.html' maps to another application, which is not allowed.

So how do I do this then? Is there an "allowed" strategy for accomplishing this? Doing it through the Global.asax.cs would be ideal since I could use the HTTP Context to "know" which customer is connecting to the app.

View 1 Replies


Similar Messages:

C# - Control For Presenting Workflow?

Sep 13, 2010

I write an application in asp.net and I have something like state machine which can be modified by user (nodes, paths and directions of paths).

Is there any nice controll I can use to display this data ?

Just display, there is no need to do anything with it

View 2 Replies

Forms Data Controls :: Presenting Date In Certain Format In Gridview

Feb 10, 2010

I am having a table with some fields in which one field is emp's DOB of varchar datatype.I want to display the date in Gridview in 'DD-MM-YYYY' format as well as the dates should be in sorted in descending order.
For e.g:12/03/2010' should be displayed before '12/03/2009'.

View 7 Replies

VS 2010 - Presenting Large Number Of Records To User For Selection

Jul 24, 2014

I have an ASP.net VB Web app I'm working on that has a requirement to provide a list of all our component part numbers to our engineers for selection into a custom Bill of Materials for reworking of an assembly. The list of part numbers is currently generated from a stored proc in our MRP systems/SQL database. The number of records being generated is slightly over 39K part numbers.

Although the SP only takes a few seconds to generate the data the web page is taking a couple of minutes to load, primarily because of the time to fill the control presenting the records to the engineers. I've bound the data to a combobox control to the engineer. They want to be able to type the first few characters of the part number if they know it and have the list filtered or be able to just scroll the data to find the part they are looking for.

I've read elsewhere that they may be a way to only populate a certain quantity of records rather than all 39K then filter based on the users actions. Unfortunately the discussions about doing this didn't provide any examples, references, etc.

My questions are these...

Is there a better way to handle this quantity of records than a stored proc and combobox? A

ny examples of a method to populate a certain number of records then filter based on user action?

View 2 Replies

MVC :: URL Routing Compatibility With Different Versions Of IIS?

Nov 7, 2010

I have an asp.net mvc2 project that will be deployed on several servers. Some may run on IIS6, IIS7 (Classic), or IIS7 (Integrated).read this article on how to deploy to these servers, but I was wondering if my routing can be set up in such a way that it can handle any version of IIS. That way, I only need to use the same routing in my global.asax. This is my routing right now.

[Code]....

I decided to use the option of handling the aspx extension so I don't need to do anything anymore to the IIS settings. Unfortunately, I can't test it right now because my IIS isn't functioning right (dunno why). So, I'd really appreciate some help on this one.

View 5 Replies

C# - Creating Versions Of The Same Website?

Jul 5, 2010

My new assignment at work is to create a second version of our existing web application. Currently, our application supports only full time brokers, but now we our launching a second site specifically for part time brokers.

The new site will be almost identical to our existing site with the following exceptions:

It will have it's own branding. A couple of the user controls used for displaying information will be different (but none of the pages will be different). Our existing users should not have access to the new site and vice versa. It needs to be easy to test both versions of the website from within Visual Studio easily. We want to reuse as much our existing code as possible. I have 2 weeks to do this. I'm hoping that this is a common scenario and someone out there has some advice for how to accomplish this.

View 4 Replies

Detecting Web Browsers' Versions?

Dec 19, 2010

i'm programming an application where an action is done if i access with a version equal or higher than other and another action if i access with a lower version; but the problem is that the lines to indicate the versions doesn´t work. The code is the following:

[Code]....

As you can see, an action should be done if the version is the 9.0 or higher and other if it is lower, but these lines doesn't work and only works the detection of the web browsers (no the versions of them, action that doesn't works).

View 2 Replies

Configuration :: How To Ignore Assembly Versions

Jul 28, 2010

I built an assembly, and that assembly refereces a DLL in my bin folder (lets call it Bob.dll). so multiple users may have different versions of Bob.dll...but by and large they all function the same.

However when my assembly gets dumped into the bin folder, it wants the version it was compiled against.

Is there a way to compile a reference such that it'll just be happy with ANY version?

I know it can be done with assembly binding in the webconfig, but I dont want users to have to do that.

View 3 Replies

C# - Web Page Still Displaying Cached Versions

May 3, 2010

My web page is still displaying a previously cached versions of the page. I have this in the page_load event:

Response.Clear();
Response.Buffer = true;
Response.ExpiresAbsolute = DateTime.Now.AddDays(-1d);
Response.Expires = -1;
Response.CacheControl = "no-cache";
Response.Cache.SetCacheability(HttpCacheability.NoCache);

I have this in the Page_Init:

protected void Page_Init(object Sender, EventArgs e)
{
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetExpires(DateTime.Now.AddDays(-1));
}

View 2 Replies

Discrepancy Between Framework Versions For MVC2 App?

Dec 11, 2010

I'm working with an MVC2 app that had migrated from an MVC1 app quite a while ago. Things have been working - i've been able to compile and deploy a number of iterations without any problems ..

I've noticed that the version info - that bit in the footer of runtime errors - i've received during the normal course of development reads:

Version Information: Microsoft .NET Framework Version:2.0.50727.4952; ASP.NET Version:2.0.50727.4955 despite the fact that the project's Properties | Application tab shows the target framework to be .net 3.5. I _think 3.5 is required for mvc2 apps, isn't it?

Shouldn't I expect to see runtime error pages pointing to version info at the 3.5 version?

UPDATE: As that this isn't a simple matter of a framework mismatch, here's the error - but given other factors, I'll assume I need to repair/refresh the workstation's framework installs. The same code works on another ws.

[code].....

View 1 Replies

C# - What's The Best Way To Handle Web.config File Versions

Apr 14, 2010

I have an ASP.Net web site (ASPX and ASMX pages) with a single web.config file. We have a development version and a production version. Over time, the web.config files for development and production have diverged substantially. What is the best practice for keeping both versions of web.config in source control (we use Tortoise SVN but I don't think that matters)?

It seems like I could add the production web.config file with a name like "web.config.prod", and then when we turnover all the files we would just add the step of deleting the existing web.config and renaming web.config.prod to web.config. This seems hackish, although I'm sure it would work. Is there not some mechanism for dealing with this built in to Visual Studio? It seems like this would be a common issue, but I haven't found any questions (with answers) about this.

View 3 Replies

Conflict On IIS 7.5 With Web.config When Mixing Different Versions

Nov 30, 2010

I am setting up a new website on new web servers that are running IIS 7.5, which is new to me. I have ran into a problem when deploying an ASP.NET app that is using the 4.0 framework. I get error messages about conflicts with the web.config file associated with the Default Web Site. The asp.net app defined in the default website is using the 2.0 framework currently. My 4.0 framework app is defined as an application under the default website. Both are using different Application Pools. I tried adding this to my 4.0 apps config file

<location path="." inheritInChildApplications="false">

How do I get around this web.config conflict issue? Update for error message: There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined. The config file for the 4.0 app does not even have this section. The default website app does have this.

View 2 Replies

Architecture :: Store Different Versions Of The Same File?

May 31, 2010

I'm implementing version control system using WCF service and client application. I can not figure out, how to store files on the server side to easily access different versions.

View 6 Replies

Configuration :: How To Make Different Versions Of A Website

Jan 11, 2011

I have a single project website and I would like to create different versions of it to be hosted on different web servers. I do not know if I need to have different versions of the web pages placed in different projects within a single solution or if I need to put different versions in a single project within multiple solutions. I need to be able to build and publish each version separately as an independent website for uploading into a different server. What should I do?

View 4 Replies

MVC :: Error While Running Multiple Versions In Iis 6.0?

Dec 22, 2010

I have developed a MVC web application in both 3.5 and 4.0 versions.I have deployed both applications in IIS6.0 and configured proper asp.net versions in IIS for each website.But after deploying , the 4.0 application is working and 3.5 application is throwing error as "The website declined to show this webpage".I have even used different application pools for the websites.

how to do parellel execution of both the versions.

View 10 Replies

.net - Using Two Versions Of The Same Assembly (system.web.mvc) At The Same Time?

May 13, 2010

I'm using a content management system whose admin interface uses MVC 1.0. I would like to build the public parts of the site using MVC 2.

If I just reference System.Web.Mvc version 2 in my project the admin mode doesn't work as the reference to System.Web.Mvc.ViewPage created by the views in the admin interface is ambiguous:

The type 'System.Web.Mvc.ViewPage' is ambiguous: it could come from assembly 'C:WindowsassemblyGAC_MSILSystem.Web.Mvc2.0.0.0__31bf3856ad364e35System.Web.Mvc.dll' or from assembly 'C:WindowsassemblyGAC_MSILSystem.Web.Mvc1.0.0.0__31bf3856ad364e35System.Web.Mvc.dll'. Please specify the assembly explicitly in the type name.

I could easily work around this by using binding redirects to specify that MVC 2 should always be used. Unfortunately the content management systems admin mode isn't compatible with MVC 2. I'm not exactly sure why, but I start getting a bunch of null reference exceptions in some of it's actions when I try it and the developers of the CMS have confirmed that it isn't compatible with MVC 2 (yet).

The admin interface which is accessed through domain.com/admin is not physically located in webroot/admin but in the program files folder on the server and domain.com/admin is instead routed there using a virtual path provider. Therefor, putting a separate web.config file in the admin folder to specify a different version of System.Web.Mvc for that part of the site isn't an option as that won't fly when using shared hosting.

Perhaps it's possible to specify that for some assemblies a different version of a referenced assembly should be used?

View 1 Replies

Visual Studio :: VWD Multiple Versions And MVC?

Jun 8, 2010

I have Visual Web Developer 2008 Express and 2010 Express (2010 is my personal choice, 2008 is what I use at work, so I don't want to uninstall it) and I have just installed MVC through Web Platform Installer. MVC installed only for 2010. What do I have to do to completely copy MVC so that 2008 may use it as well?

View 5 Replies

Web Forms :: Date Format On Different OS Versions?

Feb 4, 2010

I have a textbox ticketDate.text which have value "21-10-2003".

I used the CDate function to convert it :- CDate(ticketDate.Text) but have runtime error. Cast from string "21-10-2003" to type "Date" is not valid.

View 1 Replies

Can Different Versions Of Dotnet Framework Co - Exist In Same Machine

Feb 8, 2010

can different versions of dotnet framework co-exist in a same machine ? will it have any impact while developing ? can we choose required framework within VS2005 IDE as and when needed?

View 7 Replies

Implications Of Conflicting Versions Of System.Web.Extensions?

Feb 23, 2010

One of the libraries I am including in my project makes use of System.Web.Extensions 3.5.0.0, which conflicts with my Framework 2.0 application, which uses (C:Program FilesMicrosoft ASP.NETASP.NET 2.0 AJAX Extensionsv1.0.61025System.Web.Extensions.dll). I can think of 3 possible solutions:

Ignore the warning and don't change anything. I am not sure what the application does to handle this.
Add an assembly binding element to my web.config (see below) Configure the application explicitly to use different assemblies (I think this is possible, but don't know how to do it).

However, I am unsure of the implications of each of these decisions. The application seems to work perfectly fine even when I ignore the warnings (solution 1), but ignoring warnings that I don't fully understand bugs me...as does having warnings like this show up at all.

[URL]

View 1 Replies

IIS7 & IE8 - Pages Rendering Differently On Same Versions Of IE8?

Apr 30, 2010

I have an ASP.NET (framework 2.0) web app running under IIS7.hen I run the app on the server, using IE8, localhost the app runs the way it is supposed to.When I run the app in Visual Studio 2008 (framework 2.0) it runs the way it is supposed to.But when I try to run the app from another computer it renders incorrectly.Same versions of IE8.What would cause the serving of an ASP.NET application to render correctly on the server, but incorrectly when serving to another computer, when the Internet Explorer versions are the same?

View 1 Replies

How To Migrate Web.config Files To New Versions Of Framework

May 27, 2010

I've migrated two ASP.NET MVC 1 solutions to MVC 2 and therefore kept my web.config almost the same, just changed the necessary stuff in it as documented in Release notes.Although I created a few new test MVC 2 webapss from scratch, until now I haven't really checked out the default new web.config. As I created a new empty MVC 2 Web App today and opened the web.config, I discovered it's much smaller. There's almost no modules, no handlers, etc.

View 1 Replies

SQL Server :: Creating Versions Of Content And Manging?

Feb 25, 2011

Im wring a mini cms knowledge base type solution, there is a requirement to create versions of a document so that we are able to revert if neccessary. Ive never done this and although i think im along the write track on the design id like some and advice from anyone who has experience of doing this.

Im using vb.net sql 2005, .net 3.5 and ajax.
Ive created a table with the following which will contains the process details
tempID pk
processID varchar(20)
processVersion int
title
desciption

the processID will be generated by the app, based on a random number generator the version will be set by 1 on the first time page is created. If each time an already existing piece of content is updated i would select the original data, copy it to a new row, creating a new tempID but keeping the same processID, and then incrementing the process version by 1. Where it gets alittle complicated, is that i have another 2 table 1 which contains snippets of content, and 2 which can be relates the process to the snippet, snippets are resusable so can be added to multiple processes, again it must provide versioning of each snippet. table 1 uses the same idea as the process table above

table1
tempID pk
snippetID
snippetVersion
title
content
table2
tempID
snippetID
snippetVersion
processID
ProcessVersio

Is this along the right lines?

View 3 Replies

Configuration :: Access An Assembly With The Same Name But Having Different Versions At Runtime?

Feb 14, 2011

I have 2 assemblies with the same name but with different version 1.0.0.0 and 1.0.0.1. I have installed it in GAC and want to use 1 of these versions during run time from my C# application(for e.g - based on locale) in asp.net 2.0.

View 5 Replies

Debugging Application Built With Mixed Asp Versions

Feb 15, 2010

I am working on an application built using ASP.NET 1.1 but that invokes services built in ASP.NET 2.0.

Attempts to debug my code by setting a breakpoint and attaching the w3wp.exe process fail because IIS is running under ASP.NET 2.0.

If I select ASP.NET 1.1 as the version in IIS then debugging works, but the calls to the 2.0 services (which are everywhere) causes the page to crash.

Does anyone have a solution/workaround to this problem?

View 1 Replies







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