web-farm

determining which server (in a web farm) the asp.net ajax request came from?

☆樱花仙子☆ 提交于 2019-12-06 07:41:39
I was thinking how we can find out which server the page was served from: I'd do so by doing something like put a hidden variable on the page which has the IP or server name from the server it got processed. But what do I do for asp.net ajax requests: those that happen as a partial postback? I'd have to put the hidden variable in the update panel, but what if there are many update panels in the page? I checked out another SO post , but the solution was for iis 7. What is the equivalent for iis6? And how can we read the header? Where to look? You can set IIS6 custom headers via IIS MMC by

ASP.NET EventValidation fails when .NET 4.5 Framework is installed in only one server behind the load balancer

[亡魂溺海] 提交于 2019-12-05 05:17:00
We have installed .net 4.5 Framework in one of our web servers. Our applications are targeted for .net 4.0 and run off multiple servers behind a load balancer. After the installation we get the following error message for some POST requests error_name=System.ArgumentException error_message=Invalid postback or callback argument. Event validation is enabled using in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the

Implementing SSO in a .NET Web Farm for several e-commerce websites with WIF?

杀马特。学长 韩版系。学妹 提交于 2019-12-05 04:27:16
I have what I think is a fairly complicated question so I will do my best to articulate it here. I am looking for a single sign on (SSO) solution. I am aware of many of the options out there but have ruled most of them out as I add criteria that they need to meet. Here are the criteria: 1.) The SSO must be added to an existing "system". 2.) The existing "system" consists of "X" number of websites. 3.) All of the "x" websites are e-commerce. 4.) The websites are all owned by company Y, for whom 95% of the system was built in-house. 5.) Each of the "X" number of websites is in the same Web Farm.

Make an ASP.NET MVC application Web Farm Ready

拜拜、爱过 提交于 2019-12-03 05:53:18
问题 What will be the most efficient way to make an ASP.NET MVC application web-farm ready. Most importantly sharing the current user's information (Context) and (not so important) cached objects such as look-up items (States, Street Types, counties etc.). I have heard of/read MemCache but haven't seen a simple applicable way (documentation) on how to implement and test it. 回答1: Request context Any request that hits a web farm gets served by an available IIS server. Context gets created there and

Make an ASP.NET MVC application Web Farm Ready

一笑奈何 提交于 2019-12-02 19:16:04
What will be the most efficient way to make an ASP.NET MVC application web-farm ready. Most importantly sharing the current user's information (Context) and (not so important) cached objects such as look-up items (States, Street Types, counties etc.). I have heard of/read MemCache but haven't seen a simple applicable way (documentation) on how to implement and test it. Robert Koritnik Request context Any request that hits a web farm gets served by an available IIS server. Context gets created there and the whole request gets served by the same server. So context shouldn't be a problem. A

Getting current MachineKey, or equivilent, for HMAC (in web-farm)

让人想犯罪 __ 提交于 2019-12-01 07:14:33
I am using HMACSHA256 for message authentication in a web-farm environment. Within the web-farm each machine has the same machine key, so the ViewState will work across machines, however, I need to do HMAC message authentication which will work across machines, so I figured that since all machines use the same machine key, there should be a way to derive a key from that to use as the HMAC key. I notice that as of .NET 4.0 there is the MachineKey class, however, I am stuck with using .NET 3.5 , and this is unavailable to me. Is there a way to get some sort key that is the same on all machines

Getting current MachineKey, or equivilent, for HMAC (in web-farm)

橙三吉。 提交于 2019-12-01 05:27:16
问题 I am using HMACSHA256 for message authentication in a web-farm environment. Within the web-farm each machine has the same machine key, so the ViewState will work across machines, however, I need to do HMAC message authentication which will work across machines, so I figured that since all machines use the same machine key, there should be a way to derive a key from that to use as the HMAC key. I notice that as of .NET 4.0 there is the MachineKey class, however, I am stuck with using .NET 3.5

How to create an ASP.NET web farm?

青春壹個敷衍的年華 提交于 2019-11-30 05:14:43
I am looking for information on how to create an ASP.NET web farm - that is, how to make an ASP.NET application (initially designed to work on a single web server) work on 2, 3, 10, etc. servers? We created a web application which works fine when, say, there are 500 users at the same time. But now we need to make it work for 10 000 users (working with the web app at the same time). So we need to set up 20 web servers and make something so that 10 000 users could work with the web app by typing "www.MyWebApp.ru" in their web browsers, though their requests would be handled by 20 web-servers,

Allowing Session in a Web Farm? Is StateServer Good Enough?

人走茶凉 提交于 2019-11-27 00:31:59
First of all to give you a bit of background on the current environment. We have a number of ASP.NET applications, all of which use session for certain aspects. We are "Load Balanced" over multiple servers due to traffic levels, however, our load balancing is set to use "Sticky Sessions" as currently all web applications are set to use "InProc" for session state. We are looking at being able to remove the "Sticky Sessions" configuration on our load balancer, as due to our traffic loads servers can and do get overloaded. We want to go with a more balanced approach, but must be able to use

Adding machineKey to web.config on web-farm sites

南楼画角 提交于 2019-11-26 15:20:47
We (our IT partner really) recently changed some DNS for a web farmed site we have, so that the two production server have round-robin DNS switching between them. Prior to this switch we didn't really have problems with WebResource.axd files. Since the switch, when we hit the live public URL, we get an error: CryptographicException Padding is invalid and cannot be removed. When we hit the specific servers themselves, they load fine. I've researched the issue and it seems since they're sharing assets between two servers, we need to have a consistent machineKey in the web.config for each server