Sharing Data Between Two Web Applications?

Oct 14, 2010

I have a web application (MainApplication) where many of the pages contain a custom Web Control that looks for some content in a cache. If it can't find any data within the cache, then it goes out to a database for the content. After retrieving the content, the Control displays the content on the page.

There is a web application (CMS) in a subdirectory within the aforementioned web application. Users use this CMS to update the content pulled in by the MainApplication.

When a user updates some content using the CMS, I need the CMS to clear the relevant portion of the cache used by the MainApplication. The problem is that, as two different web applications, they can't simply interact with the same static cache object.

The ideal solution would be to somehow share an instance of a cache object between both web applications.

Failing that, what would be the best (performance-wise) way of communicating between the two web applications? Obviously, writing/reading to a database would defeat the purpose. I was thinking about a flat file?

View 3 Replies


Similar Messages:

Architecture :: Sharing Data Between Two Different Applications

Feb 17, 2010

I have to different .Net applications running simultaneously. Assume both are windows / web applications.When I update some data in application A

correspondingly data in application B must be updated.

View 3 Replies

MVC :: Sharing The Same Users DB For Several Applications DB

Feb 14, 2011

I begin with MVC and this technology is very efficient !

I would like to create several applications mapped with a common applicaton Users Accounts. The aim is to isolate logical parts. The problem is always the same : how to communicate easily between users db and appli db ? Do I continue to use my poor View mechanism from SQL Server (db1.Users.UserId inner join db2.Users.UserId) or is it a better way with super MVC?

View 1 Replies

Sharing Resource Files Between Web Applications?

Jan 26, 2010

I have multiple projects that need to share resource files (.resx) Suggestions have been made to move resource files to a separate assembly and have web projects reference it. Is there an example of how to do this?

Do I create a new Class Library project and move App_GlobalResource folder inside of that? I don't think that will work because code classes that are generated for resource files are marked as 'internal' which means that they can not be accessed outside of this assembly.

View 1 Replies

Sharing Cookies Across Different Domains And Different Applications?

Jan 24, 2011

Is there a way to share cookies across different domains and different applications (classic ASP and ASP.NET)

View 4 Replies

Forms Authentication, 2 Applications Sharing 1 Login ?

May 11, 2010

I have 2 almost identical asp.net (vb) applications. 1 Development and 1 Production.

They use forms authentication that is configured to run in SQL server. Both apps use the same aspnetdb database but have different application names.

The problem I have is:I have an Identical login for each app (same username, same password), but If I change profile information for that user in the development app, the changes are reflected in production app. This isn't what I want.

View 2 Replies

State Management :: Cache Sharing Between Applications

Jul 30, 2010

Is it possible to share a cache between multiple ASP.NET applications? The apps may reside on different servers. How can one achieve this requirement?

View 1 Replies

State Management :: Sharing Session Between Applications?

Oct 18, 2010

I would like to share the session variables between 2 applications. basically I have a website and in there I have 2 applications and want to share the session object betwen the two. Is there a way to set something in web.config to enable this?

View 2 Replies

State Management :: Sharing Cache Between Two Web Applications In The Same Solution

Jul 7, 2010

I have an asp.net solution in which there are two web application projects (client website and admin website) and also a class liabrary project in the same solution . In the live production server, the admin web app is within the client app (eg: client site= [URL] and admin site=[URL]). A class (with static variables) in class liabrary is userd to cache data. My problem is that i cannot get the changes to the static cache by one web project reflected to the other (becoz, i think, they seem to load in seperate appdomains).

View 3 Replies

State Management :: How To Disable Session Sharing Among Different Applications With Same Domain

Jul 14, 2010

I have 2 applications App1 and App2 on same domain, both with Forms authentication, each using a different database instance for authentication.

First, I open a browser with application www.mydomain.com/App1 and log on.

After that, when I open another instance of the same browser with application www.mydomain.com/App2 and log on, first browser loses session and goes back to login page.

I need each application on same domain to have its own session so that both can stay logged on.

View 2 Replies

State Management :: Sharing The Session Variables Between Two .net Applications Using SQL Server Mode?

Sep 18, 2010

I have two different IIS applications within the same domain(let us say www.mydomain.com) , both of these applications use the same database instance(same connectionstring), now what I want is that both of applications can see each sessions variables , can SQL Server session state mode helps in this case? Did someone try that before? Is there any other way to share the session variables?

View 3 Replies

How To Use Facebook Sharing And Tweet Sharing Tools

Dec 1, 2010

I see on the bottom of blog pages a sharing buttons (Twitter and Facebook), where if clicked the link behind (which is normally the blog page url) the fshare button takes the clicker to the blog site facebook page respectively.

How does one do this in asp.net 2 , does one one use the <%# %> in the url part of these share buttons, are there any examples of how this is done?

View 8 Replies

WCF / ASMX :: Building Services To Work With Web Applications And Console Applications?

Jun 7, 2010

I've been worked with web services so far, and I'm interested in expanding my services to console applications as well so I started digging up with WCF but I'm conserned that I won't be able to use the HttpContext collection that I've been used to do with web services one important thing which is to generate a random value from HttpContext.Current.Request.ServerVariables["ALL_HTTP"] that I need to reckon if it's the same or at least near what machine that is calling my service. How can I overcome this problem?

I need to know what machine is calling to count the number of attempts to login into my system for example. So must do it inside of the svc code otherwise if I let the client inform what ip address or what computer he is using, anyone could forge this argument and surpass by another machine. May be I'm approaching this matter wrongly. And I should count the number of attempts per state session, but how is it done?

View 1 Replies

Data Sharing - .NET - Using Another App's App_data?

Feb 4, 2010

If there is a self contained web app, let's use the Screw Turn Wiki as an example, that utilizes the App_Data to store the MDF, is there any way another web app, living in the same domain, can also use that MDF?

Example IIS Setup:

http://wiki.domain.com | c:webwiki | port 80
http://www.domain.com | c:website | port 80

My WWW web app would like to pull some data from the WIKI app. Without moving the MDF to a full fledged SQL Server is there a way to do this? Also note, the WIKI app is an installed app so I don't have access to its source.

View 2 Replies

Subdomain - Sharing Session Data Between Domains In Asp

Jun 3, 2010

i want to maintain session data between two applications or domains [URL]. I have read on net about this, but many people pointing many different ways to do it, with people commenting +ve and -ve responses to all. Plus many are just providing theoretical answer, do this and that ,but no code at all. are these steps all that is required?

1) in web.config: <httpCookies domain=".[URL]"/>

2) store session data in sql DB as:(after preparing the db for storing sessions)

<sessionState mode="SQLServer" sqlConnectionString="Data Source=YourServer;
Integrated Security=True;database=MySessionDB" sqlCommandTimeout="30"
allowCustomSqlDatabase="true"/>
<machineKey decryption="AES" validation="SHA1" decryptionKey="..." validationKey="..." />

3)Am confused about this one: i want to set the domain for the session cookie like this

Response.Cookies["ASP.NET_SessionId"].Domain = ".[URL]";
But where should this code be written?
this entry: [URL]says: use System.Web.SessionState.SessionIDManager as a base class but the SaveSessionID method is not virtual so cannot be overridden. Options are: either explicitly re-implement the interface method or decorate SessionIDManager class and after calling SessionIDManager.SaveSessionID set Response.Cookies[SessionIdCookieName].Domain to our domain.

Only if the author had provided real code, step 3 would have been clear. Plus all this 3 steps enough to share session among the domains?

View 1 Replies

WCF / ASMX :: Sharing Data Between User Requests?

Nov 7, 2010

am new to web services and have a quick question. I've some data (an c# class object) that needs to be shared between two different users (of my web service) . all the methods in the web service have a parameter called "sessionkey" which can be used to know what data to share.

i need to know how/where to store this data ?

View 4 Replies

State Management :: Sharing Data Between Sessions?

Nov 5, 2010

how do i pass data between two asp.net webservice sessions ?

this is the scenario, we've windows application and web service. our windows app calls a third party web site which requires data from our applciation. this 3rd party suggested that we create a web service that they can call from the web site.

after some reading it looks like i can use "application" object to store the data so that we store data in session with a specific session key and give it to web site and web site passes this session key in all methods it uses in webservice. is this best approach to take ?

View 8 Replies

Configuration :: Deploying Web Applications With Sub Web Applications?

Apr 22, 2010

Our corporate intranet is designed so that each web application is a child application in the primary application.. Everything has worked fine with Visual Studio 2008 and even in 2010 running the website locally works great, the output directory for the child apps is ..in and the ProjectName.dll copies to that directory.. When I do a publish however it does not and I have to manually copy the dll from the bin folder in the project folder to the parent bin folder, this isn't hard of course but more of a pain in the butt each time I need to publish something. I made sure the output directory is correct for both debug and release yet on publish is just copies it to the child bin and not the parent bin as needed.

View 2 Replies

Web Sharing Folder/ Data Pulling Is Pretty Slow ?

Feb 25, 2010

we have a program that we work with with in 2 different locations, both of the program instances must share the same database.what i did is to open Web Sharing folder on our server then i added on both computers this folder to their "My network places" and direct both of application to this folder which contains the database.this is how i direct the program :

Code:

D:WNKKWnkk.exe \MyServerktest
nk2008

it all works fine but there is one problem, the data pulling is pretty slow when it shouldn't we have 100MB download / upload on our server and over 10MB dl/ul in our office.

some pointers:i added the shared web folder to one of our website directory and thats mean that the port the program is using is 80
is port 80 is slower then others?

View 10 Replies

HttpHandlers / Modules :: Sharing Data Structure Between Requests?

Feb 13, 2011

I am working on a web service that return image tiles for site using Bing Maps. The problem I am having is that All these tiles are created using a single data source. When the bing maps control calls out for the imagery it calls the service multiple times to get the tiles it needs. So if the first thread to go in gets the file all the other threads will fail until the first thread is done reading in the file. Is there an easy way to share this file between all the requests? The flow for what im trying to do is as follows: recieve request open file and read in the data to a custom class - (this is the class I would like to share for all the threads) create the image based on the data return the image.

View 3 Replies

Multiple Browser Tabs/windows Sharing Data?

Jan 27, 2010

I have a page where I display ASP.NET charts. There are two types of charts and I felt the need to separate them to some extent which I did by using a submenu which looks like this:

Charts > Goals Charts
> Reconciliation Charts

Clicking on either of the two chart links will take you to the same Charts.aspx page, but with the query string "Goals" or "Reconciliation" respectively. On the page load of the Charts.aspx page, I receive the query string into a session variable and create the correct charts based on that value. All of this works fine.

The problem I'm experiencing occurs when I open up a new tab in IE/Firefox. Here is the series of events I'm experiencing:

- In the original tab, I will click on the "Goals Charts" hyperlink which loads the Charts.aspx page with "Goals" as the charts type session value. The other controls on the page needed to produce "Goals" charts (eg. drop down lists, etc) are displayed correctly ie. the "Goals" version. At this point, I haven't done anything in this tab except for loading the Charts.aspx page from the "Goals Charts" link.

- In the original tab, I right click the "Reconciliation Charts" link and opt to open in a new tab (I just tested and the same thing appears to be working if you opt to open in a new window as well). When the new tab loads the Charts.aspx page, it loads with the query string "Reconciliation" which it stores in the session variable. So at this point I would expect to have two different, independent tabs: the original tab on the "Goals Charts" track and the second tab on the "Reconciliation Charts" track.

- This is where the problem occurs. I would expect the original tab/window to create a "Goals" chart when I make a selection using the other controls and I would expect the second tab/window to create a "Reconciliation" chart. The problem, however, is that when I go back to the original tab/window - the one which should be a "Goals" chart and which should have "Goals" stored in the session value - when I proceed to create a chart, it's a Reconciliation chart that is created.

Somehow, even though I'm in a different tab or window and I am navigating the site seemingly independently of the other tab/window, it seems to be carrying the most recently populated value from the session variable for both tabs/windows.

View 5 Replies

Sharing Connection And Transaction In A Data Access Layer?

Aug 8, 2010

I'm building a Data Access Layer for my asp.net application. I would like to be able to share connection between different classes in order to manage transaction, but I don't know how to do that.

Example:

I have 2 classes, Order and OrderDetail.

I will call my DAL Order class for a SQL insert of a new order.

Inside the Insert method, I want to call my OrderDetail class to insert my order's details, and I would do that with same connection and transaction.

View 1 Replies

WCF / ASMX :: Using Static Hashtable In Webservice For Sharing Common Data Among Different Users

Nov 26, 2010

We are using static hashtable in webservice for sharing common data among different users. Is it safe? Is there any better way?

View 1 Replies

Forms Data Controls :: Sharing FormView Edit And Insert Templates?

Mar 26, 2010

Is there a way to create only the InsertItemTemplate in the FormView and then assign it to EditItemTemplate. Something like

Page_Load
{
FormView.EditItemTemplate = FormView.InsertItemTemplate;
}

View 4 Replies

Web Forms :: Can Data Transfer Between 2 Web Applications

Sep 10, 2010

how can data be transfered between 2 web applications runnig on 2 web servers

View 4 Replies







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