Web Forms :: 2 Systems Not Works Simultaneously

Jan 12, 2011

I have 2 Web applications in the same IIS with the virtual directory structure below:

http://www.mydomain.com/site1
http://www.mydomain.com/site2

both site1 an site2 are using form authentication and creating the token further adding in cookie as below,

FormsAuthentication.Initialize();
FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(1,username,DateTime.Now, DateTime.Now.AddMinutes(20),rememberMeSet,globalID ,FormsAuthentication.FormsCookiePath);

// Encrypt the ticket.
String hash = FormsAuthentication.Encrypt(ticket);
//Create the authentication cookie
HttpCookie cookie = new HttpCookie(FormsAuthentication.FormsCookieName, hash);

My problem is when I'm logging in to Both site1 and site2 then these two are not running simultaneously on single browser using different tab for same user name.one is being logged out when logging to the other application and vice verse.

View 3 Replies


Similar Messages:

Security :: Forms Authentication Not Working On Some Systems?

Jan 28, 2010

Recently I've implemnted Single SignOn feature in my website which was developed on Framwork 2.0 using visual studio 2005.These website works on all browsers perfectly except that there two systems in my testing environment where the FormsAuthentication doesn't work on IE only.

On Those systems itself FormsAuthentication works for other browsers like mozilla.On these system I have checked that FormsAuthentication cookie is created but it lost it value as soon as other page is traversed.But when I try to login again it give me the messsage that user is already login i.e. user was able to login successfully.Both of them are currenlty using IE 8.

Following is the settins of my web.config:

[Code]....

View 2 Replies

Web Forms :: Prevent A User To Login From Multiple Systems In Website

May 7, 2015

I want to implement Login session , in which one user can login from one device only ..and if on other device try to login with same ID the  First Device get an Alert..

View 1 Replies

Web Forms :: Doesn't Seem To Processed Simultaneously?

Mar 5, 2010

I am using HTTP load testing tool to stress test my asp.net 2.0 application. I faced problem that, when I have 1 user access to the system (currently only test on login.aspx), it is very fast ~ 1-2 secs. However, when I run with 10 virtual users at the same time, it takes 10-12 secs for each.

User Response Time (s)

1 10.12
2 10.22
3 11.00
...
10 12.78

My question is, why ALL of them also takes 10-12 secs? Is it normal? I was thinking that should be some users take 2-3 secs and some 5-6 secs and etc.

View 4 Replies

POS (Point Of Sale) systems work?

Jun 22, 2010

First, My project is to develop a loyalty system similar to air miles. The objective is to capture items bought in stores by means of a magnetic stripe card. The problem is I dont know how POS (Point of sale) systems work. Do I need to contact all the grocery stores individually or do I need to contact all the POS software designers individually?

Second, The objective is not just to capture a number from the card but to actually have access to the individual items bought at the store by means of the card in the form of a database.

View 1 Replies

Corp IT Systems Direction - Invest In A Or B?

Jan 12, 2010

This is more of a general question about which direction would be a better investment for the company.

Our company's core business application is written in Visual FoxPro and is about 9+ years old. The database is huge 15+ gigs and the core logic is complex and to make matters worse the data model is terrible. The two guys that built it and have maintained it all these years are at least in their 50's, so needless to say retirement or possibly death could come within the next decade or so.

This VFP app drives all our core business functions and requires terminal services and citrix to access it from the outside world. Our web apps have to interface with it via ODBC and we are always having performance issues with it. The servers that run this system are also very old, like Win 2000 server and are falling apart.

Recently we have been having meetings about upgrading the systems that run this core app as well as other services like email and file storage. The biggest expense however is buying new server hardware, OS licensing, Terminal Services licensing, Citrix licensing etc to solve some performance and outside access issues we are currently having as well as just generally bringing us to date on our systems.

The price tag is going to be in the $55K to $65K price range. So as a web developer my point of view is that this is a huge waste of money! My solution would be to invest that money in rewriting the core system to run on the web based .Net platform. This would eliminate the need for Terminal Server and Citrix licensing along with the pricey hardware and configuration management to run it on. I don't see the point in investing this kind of money in an antiquated system that should be on it's way out anyways.

I am looking to get some convincing arguments as to why this is a waste of money. Hopefully there is someone here that has faced this type of situation before that can give me some points of view. The hardware upgrade seems to be the easiest road to take because they will just have a consultant come in and do it all. A software development project would take longer, require more resources and possibly cost a little more money.

View 10 Replies

Cache Access In Highly Concurrent Systems

Nov 16, 2010

Suppose I have two threads(Thread1, Thread2) where the threads are accessing the cache for a given object such as in the code below nearly at the same time:

Dim expensiveToGetData = Cache("ExpensiveDataKey")
If ExpensiveToGetData is nothing then
'because the cache has expired
ExpensiveToGetData = LoadExpensiveDataFromDataSource()
Cache("ExpensiveDataKey") = ExpensiveToGetData
end If
ProcessExpensiveData(ExpensiveToGetData)

Isn't it possible for both threads to load the cache because they both requested data from the cache that was nothing/expired? I've run some tests on a local machine and it seems that the cache is being loaded more than once. Is this a normal pattern?

View 2 Replies

Javascript - Security Practice For Web Based Systems?

Nov 17, 2010

My system is an asp.net website which uses sql server 2008 (mostly stored procedures, but for asychnronous calls I directly insert the sql commands). I have a web service which polls multiple databases, I use external libraries(Including office interop), and allow for uploading and downloading files - without restriction.

My asp pages use javascript and jquery for most of their functionality.

View 1 Replies

Content Management Systems That Comply With WCAG 2.0?

Jun 25, 2010

I like the look of SIteInifinity by Telerik as a content management system. Unfortunately it is not WCAG 2.0 compliant.Are there any third party CMS systems that are WCAG 2.0 complaint?

View 2 Replies

Web Forms :: Unable To Render Pdf And Page Option Simultaneously?

Dec 17, 2010

I have a aspx.cs page that renders a pdf file directly.

To render the pdf directly i have to use ContentType="applicationpdf" in my .aspx page.

The problem I am facing now is:

I need a time-request field - namely, the user would have to enter the time (from and to) and hit Go and the pdf will be rendered according to the date-requested.

However, I cannot display the time-request (or page option) field and render the pdf simultaneously.

View 1 Replies

SQL Reporting :: Accessing Ssrs2008 Reports Remotely With Systems IP Without IIS?

Dec 4, 2010

i'm using ssrs2008 without IIS ...

i've created my reports and deployed in my system.. i.e

http://localhost:8080/rpt which are working fine.. (" i.e in XP prof SP3")

now i've developed an application in different system which windows server2008

in that i'm using reportviewer now.. what i want is when i run the project in

windows server the reports display from my system.. i.e my url http://myip:8080/rpt

error msg("enable to connect remotely")

i've tried by giving my [URL] in another system .. but it will ask username and password i've tried giving my system and password .. and also the system name and passward where i'm trying to execute.. the error is displayed

("An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.")

View 1 Replies

Web Forms :: How To Retrieve Data From Database To Display Several Listed Items Simultaneously

Jun 24, 2010

I would like to display the following information for each "Camera" (in the format below) on my web page in an HTML table. All the data is contained in one table in my database:

For Camera = Canon (e.g.):

Type (Text via asp:Label)
Lens Size (Text via asp:Label)
Storage (Text via asp:Label)
Max. video resolution (Text via asp:Label)
Max. photo resolution (Text via asp:Label)
Weight (Text via asp:Label)
Dimensions (Text via asp:Label)
Sensor (Text via asp:Label)

...where (Text) is the value retrieved from the database for the given Camera. advise on the best way to retrieve this data? The only method I can think of (from my limited experience!) is to have a separate VB function for each value, to run separate SELECT queries for each field, and then to set the (Text via asp:Label)

value accordingly. I am already doing this for datagrid retrieves etc. For example:[Code]....

BUT... I know there must be a better method for the above requirement!

View 9 Replies

Forms Data Controls :: GridView - Check Box Perform 2 Operations Simultaneously?

Apr 9, 2010

I have placed Chekc box in Gridview when i select the check box can perform 2 operations simultaniously one is entire recordset is populated into form fileds and second one is can delete the selected record permanently from database table.following code for this fuctionality.

GridviewCode
<asp:GridView ID="GVData" runat="server" Height="75px" Width="76px" CaptionAlign="Top"
Font-Size="Medium" EnableModelValidation="True" [code]....

View 3 Replies

AJAX :: Failed To Create Designer Systems.web.ui.scriptmanager Version 1.0.61025?

Feb 9, 2010

I migrated a project from vs 2005 to vs 2008, in the vs 2008 project we will continue to use framework 2.0 only so i didnt migrated to 3.5

When I open a page in 2008 I got this problem in the scriptmanager.

I found this on the web.config

<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

View 4 Replies

C# Execute 2 Threads Simultaneously?

Feb 27, 2011

I am trying to reproduce a threading error condition within an HTTP Handler.

Basically, the ASP.net worker procecss is creating 2 threads which invoke the HTTP handler in my application simultaneously when a certain page loads.

Inside the http handler, is a resource which is not thread safe. Hence, when the 2 threads try to access it simultaneously an exception occurs.

I could potentially, put a lock statement around the resource, however I want to make sure that it is infact the case. So I wanted to create the situation in a console application first.

But i cant get 2 threads to execute a method at the same time like asp.net wp does. So, my question is how can you can create 2 threads which can execute a method at the same time.

Edit:

The underlying resource is a sql database with a user table (has a name column only). Here is a sample code i tried.

[TestClass]
public class UnitTest1
{
[TestMethod]
public void Linq2SqlThreadSafetyTest()

[Code]....

View 1 Replies

Update Two Updatepanels Simultaneously Together?

Apr 1, 2011

I have two ASP.NET AJAX UpdatePanels . there are two timers with diffrent intervals. is it possible to update two updatepanels simultaneously together ? like multi thread application . each should be UpdatePanel Update in separate thread in one time. i wrote this code but second timer does not work :

<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<h2>
Welcome to ASP.NET!
</h2>
<p>

[Code]....

View 1 Replies

How To Watermark Multiple Images Simultaneously

Feb 26, 2011

i am doin my final year project and in my project i want to watermark multiple images simultaneously where image,logo,position,alpha and key value is stored in a database table ....i need to retreive these details from db table and perform watermark on those images....

View 3 Replies

Summing Up More Data Simultaneously With LINQ?

Nov 28, 2010

[Code]....

How to get SUM in TextBox1 = Najdinaloge.Kilometrov.ToString();
and how to get SUM in TextBox2 = TextBox2.Text = Najdinaloge.Kilometrov2.ToString();

If I use
var Najdinaloge = (from p and db.tbl_PotniNalogis
join t and db.tbl_RelacijeZaMestneVoznjes
[code]....

works, but there is only one figure sum.

View 4 Replies

Asp :RangeValidator And Asp:RegularExpressionValidator Both Fired Simultaneously?

Feb 17, 2011

I have Asp:TextBox,Asp:RegularExpressionValidator and Asp:RangeValidator on .aspx page.

These two validators have ControlToValidate value equal to textBox Id.

RegularExpressionValidator have validation Expression such that it allows only number.

Range validator have maximum value ="100" and if I enter any text then both validators get fired .

Logically only RegularExpressionValidator should fire if I enter any textvalue.

Is there any property of Range validator such that it check for numeric value to compare and disbled if value entered in textBox is some text so that no handling of event(Client side and Server side both) is required.

View 1 Replies

Ajax - Two Events Fired Simultaneously

Mar 21, 2011

I have an update panel in my ASP.NET web form with a trigger that will fire a click event when the contents within my update panel is updated (it's a grid view with fields). The event that is fired when then take the changes user made and do some calculation and then update another update panel with that information. This is all fine and dandy when the user tabs along the form and fill out the form in a orderly fashion before hitting any buttons on the page.

If a user accidentally hits another button on the page while changing the content in my grid within the update panel, for example, the user enter a value in my grid view control, without tabbing, the user click the save button. Logically, i believe that the trigger should fire the click event first (event A), and then the save button event (event B). But, consistently I haven't seen event A gets fire correctly while event B gets fire all the time. is there a way to ensure event A always gets fired before event B? also if event A update another update panel without the page will event B fire after the update is complete?

View 1 Replies

Two Ajax Timer Cannot Tick Simultaneously?

Oct 24, 2010

I have two ajax time for my aspx web page but while the one is ticking , the other stops running. How can i make it both timer run together like the windows form?

View 1 Replies

AJAX :: How To Update Multiple Updatepanels Simultaneously

Feb 3, 2010

I have a page in which there are multiple updatepanels and each of these update panels are trigerred by different triggers.

These update panels are used to do Async post back and the page is updated with the data retrieved from the async post back.

Now the issue i am facing is that since there are multiple update panels, the update done by one panel is lost when the other panels does the post back.

let me know if any one knows on how to solve this issue.

View 5 Replies

SQL Server :: Simultaneously Connecting To Db With VS, Website And SSMS

Aug 27, 2010

I have recently combined my aspnet membership database and main website database into one database file, I'm happy with the schemas, stored procedures etc. (This is a development project not yet a production project.)

My problem is that I can no longer simultaneously connect to the database from Visual Studio if a user is logged in to the website.

EG:

Scenario 1: No user is logged in to the website. I can go to the Data Connection window in VS, choose "Add Connection" and then inspect the contents and schemas of the database. This is fine.

Scenario 2: A user is logged in on the website. I try to connect to the website in VS and get the error:

"Cannot open user default database. Login failed. "

Scenario 3: I am connected to the database in VS and nobody is logged into the website. If someone tries to log into the website they get the following error:

Cannot open user default database. Login failed.

Login failed for user 'NT AUTHORITYNETWORK SERVICE'.

So it seems from the above that there can be only one connection to the database at a time? However this was not the case before I combined the membership database with the main website database. I could always make changes as a user logged into the website and at the same time see those changes through the connection in Visual Studio.

View 6 Replies

Security :: Using Multiple Membership Providers Simultaneously

Jul 1, 2010

I want to know if we can use multiple membership providers simultaneously in a single ASP.net application.

View 1 Replies

ADO.NET :: Call Two Stored Procedures From Application Simultaneously?

Sep 15, 2010

I have a asp.net web page.Inside i am calling 2 stored procedures.. which causes huge performance hit on the page

I need to call the both the procedures simultaniously using threading

Both procedures return data which will displayed on the page

View 1 Replies







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