C# - AppFabric DataCacheFactory Initialization Often Takes 30 Seconds?

Nov 26, 2010

When I initialize my client to connect to AppFabric's cache, it seems to inconsistently take up to 30 seconds to connect on the following line:

factory = new DataCacheFactory(configuration);

See full Init() code below - mostly taken from here.I say inconsistently because sometimes it takes 1 second and other times 27, 28 , etc ... seconds. I have an asp.net site using the AppFabric cache - which lives on a different box (on the same domain). Everything is working great, except for the inconsistent connection time. When it connects, its all good - I just need to get it to consistently connect in ~1 second :)

public static void Init()
{
if (cache == null)
{
Stopwatch sw = new Stopwatch();
sw.Start();

[Code]....

View 1 Replies


Similar Messages:

Where To Store AppFabric DataCacheFactory

Dec 21, 2010

AppFabric's DataCacheFactory takes long time to initialize so I am trying to create it once and re-use it in next requests. Currently, the best idea I have is to store it in HttpContext but I also have some WCF services (which don't have HttpContext set). Any other ideas where and how I should handle this?

View 1 Replies

Forms Data Controls :: PreRender Takes Upto 13 Seconds?

Jan 8, 2010

At the first loading of my page, duration of PreRender takes upto 13 seconds. That page has basically a gridview control which bind to SqlServer query by SqlDataSource. When I execute query seperately, it takes only 0.02 second.

On the other hand, for the next loadings of same page by postback, duration of PreRender varies from 0.5 second to 3-4 seconds.

In addition to gridview, there are several dropdownlist, update panel, ImageButton in gridview. I use paging for Gridview.

Which strategy should i follow to increase performance of this page?

View 3 Replies

C# - Windows AppFabric ACS With AD FS 2.0, Using The AcmBrowser.exe?

Apr 4, 2011

There seems to be very limited information floating around the net about this .I'm running the AcmBrowser.exe to integrate AD FS 2.0 with AppFabric (ACS), yet the authentication service as default tries to point to accesscontrol.windows.net, which is an unaccessible domain and the AppFabric labs resolve to accesscontrol.appfabriclabs.com - so is this a case of the AcmBrowser not being updated by Microsoft?

I've changed the URL in the AcmBrowser code and run the program, in which now comes back as invalid token issuer - when I've taken the management key directly from the ACS (Administration -> Management service -> Management client -> Symmetric Key?).

Is there anyone out there that's facesd this issue before? I believe it's the last step I need to take of syncing my AD FS 2.0 with ACS + Relying Party.

View 1 Replies

C# - Windows Azure AppFabric ACS - Adding Custom STS

Mar 29, 2011

I've currently got Windows Azure AppFabric system set up and running with my own registered Namespace, in which uses the Google/Yahoo/Windows Live STS providers. That all works fine, I can use them and login to my application. Easy.

However, I can't find anything in any way useful on the web that related to adding my own STS to this list from a 3rd party supplier. I've read that it's possible, and it's the last hurdle I'm stuck on here - replacing the Google/Yahoo/Windows Live STS with the ones I need my application to authenticate with. I cannot find anywhere in the STS control panel to allow for this (AppFabric Labs).

View 1 Replies

Windows Server AppFabric Caching Be Used With IIS Express For .NET Session?

Feb 23, 2011

I would like to run Windows Server AppFabric Caching locally on a Windows 7 machine.

Is it possible to configure an ASP.Net app to use AppFabric Caching for session state with IIS Express?

View 1 Replies

AppFabric Error When Disable Security For SessionState Provider?

Jul 28, 2010

I'm completely stuck with this version 1.0.0.0 product.

I'm running in a domain environment but for the specific application i'm using I want to disable security to reduce the workload on the servers when accessing the cache.

I've got a bunch of web servers with an existing application using SQL sessions state, and the idea was to roll out AppFabric and use the session state provider and a fast solution to speed things up. Currently have a single separate server running appFabric Host.

All Servers are on the same domain.

I've got AppFabric Running using this mode on the host

Set-CacheClusterSecurity -ProtectionLevel EncryptAndSign -SecurityMode Transport

Local App Pool on the web servers is using NETWORK SERVICE account, and i've grantedthe machine accounts permissions and it all works fine.

But then on the server i set this

Set-CacheClusterSecurity -ProtectionLevel None -SecurityMode None

(Stopping and Starting the cluster).

Then after that I get this error.

ErrorCode:SubStatus:There is a temporary failure. Please retry later. (One or more specified Cache servers are unavailable, which could be caused by busy network or servers. Ensure that security permission has been granted for this client account on the cluster and that the AppFabric Caching Service is allowed through the firewall on all cache hosts. Retry later.)

My assumption is that the client (session state provider), is set by default to use security and need to be set not too, but can't find any doco on how to change this, or i could be barking up the wrong tree.

View 1 Replies

What Version Of .NET Supports Using Windows AppFabric Caching For Session Management

Aug 25, 2010

I would like to know the version of ASP.NET supports using Windows AppFabric caching for session management or is it just about using the AppFabric session provider

View 1 Replies

C# - Run Initialization Code In .net MVC?

Mar 9, 2010

I need to run some code that will fetch some configuration values from the web.config during first run of an asp.net mvc application. These values will not change frequently but that is not my main concern.

One way that I can think of is calling the method in Application_Start() method in the global.asax.cs file,

View 3 Replies

Initialization Area In .NET That Only Runs Once?

Dec 6, 2010

I've got a piece of code that I want to run one time when my website is first loaded.It is basically a static initialization of another module.Is there some event I can hook into that runs when the site is first served to a client?It doesn't even need to be per session, just on first load to any client.

I'm using vs2010, .net 4.0, asp.net 4.0

View 2 Replies

ADO.NET :: Hibernate Factory Initialization?

Sep 11, 2010

tell me where I could initialize (in the mvc code) the hibernate factory?

View 1 Replies

Automatic Initialization Of IIS-hosted WCF Service?

Dec 28, 2010

I have an ASP.NET web-site and a WCF service which is called from ASP. The problem is, that during the first client request the site loads aufully slow, cause some time-consuming static objects are being created inside the WCF service. Is it possible to call any service method (by doing this the wcf object will be created), when the site gets loaded in IIS? (I know there is a solution for this problem in ASP 4 and IIS 7.5, but i'd like to know what's about IIS6-7). It is something like "user emulation") Maybe i can add some event handlers in global.asax?

View 1 Replies

Syntax Error During Generic List Initialization?

Apr 27, 2010

I am creating a generic list of objects using this syntax:

[Code]....

View 1 Replies

Difference Between Object Declare Instantiation And Initialization

Oct 27, 2010

know what is object declaration and initialization but confused over ojbect instantiation ,i am giving a example below what i understood :

Class ABC
{
Public static Void main()
{
ABC a // Object declaration
a = new ABC(); //Object initialization
[code]...

View 2 Replies

HttpHandlers :: Http Modules Initialization Conditions?

Jan 11, 2011

I am having an Asp.net Web application in .Net 3.5 Framework, deployed on IIS 6.0. Obviously we have used Http Modules in our application. The problem is that we are having many entries specifying the message "Http Module is getting Initialized" Now, I would like to know when does an Http Module get initialized? I mean is there any specific reason? Also, is there any case of recycling of http module?

View 2 Replies

Delay In Silverlight Initialization In Aspx Page?

Jul 23, 2010

We have a silverlight/asp.net application which communicates with WCF to fetch data. Now we are facing a problem where in the silverlight component is taking some time to initialize after the asp.net page life cycle is completed.We have tried tracing all the events and found that there is a time lapse between the aspx page unload event and silverlight initialize event. This we have tried with even a simple application (hello world) but still have found the same result.There is nearly 3-4 seconds delay i.e the silverlight component initialization starts 3-4 seconds after the page unload event ends.

View 1 Replies

Array Initialization - The Amount Of Results Is Unknown?

Jul 5, 2010

I am doing some sorting of an array and in order to achieve that I have to declare bounds of a new array based on amount of results returned. So if I get 2 results I will initialize

tagArray = New Integer() {0, 1}, if 5 then
tagArray = New Integer() {0, 1, 2, 3, 4}. The amount of results is unknown and it can be anywhere from 200 to 500 results returned. Is there a way to simplify this? I could probably hard-code it but that would look ugly.

View 3 Replies

.net - Load-time Initialization For Hidden Controls?

Jul 9, 2010

Our web application started out as a big, honkin' ASP.NET AJAX 'page' with oodles of controls on it. They all shared a small set of large .js and .css files. I need to use some of these controls in other, unrelated pages around our site. The difficulty is in all the other stuff the .css and .js files bring along with them when I try to use those controls elsewhere - too much and there's a lot of bloat, too little and the controls don't work.

So, I've been experimenting with breaking up the .css and .js and writing the controls to register the .js and .css they need. Initially I will end up with many more but smaller .js and .css files, but I can combine them at run-time later. I just want to encapsulate these controls so the pages that use them know less about what it takes to use them.But I am running into a problem. I am using OnInit or OnLoad to register the .css and .js as needed. Unfortunately, none of these methods is called if the control is not visible the first time you hit the page when all the .css and .js needs to make its way to the client. It isn't until later on that the controls are enabled for thier specific functions that they are visible and could emit the .js or .css. Then it's too late!

Do I have to bite the bullet and hand-include the right .css/.js on the pages I use these controls on, or is there a better way to 'inventory' the controls in use to get them to emit what they need?

View 2 Replies

New-Cache Parameters For AppFabric Cache When Storing.NET Session State

Jul 28, 2010

What are the "optimal" parameters for creating an AppFabric cache when you will be storing session state in the cache? MSDN Cache-Related Commands

Powershell command line:

New-Cache [-CacheName] <String> [-Eviction <String>] [-Expirable <String>] [-Force [<SwitchParameter>]] [-NotificationsEnabled <String>] [-Secondaries <Int32>] [-TimeToLive <Int64>]

[code]...

Since I don't want my sessions to be removed unless the session has been abandoned either via code or Session Timeout...For eviction, I would think "None" and for expireable, I would think False.I have tested and calling Session.Abandon does remove the object from the cache. I have also tested to see if by extending my session, the session object in cache is also extended. This does seem to work the "correct" way.

View 1 Replies

How To Avoid Initialization Of Web User Control Inside Aspx

Feb 23, 2010

I have an aspx page which contains a web user control as below.

[code]...

In the Page_Load method of the above page I am setting the Visible = true/false (based on some condition) for the WebUserControl1. WebUserControl1 contains lots of control itself. But I don't want to initialize the controls inside WebUserControl1. Is there anyway we can avoid initializing the ChildControls of WebUserControl1?

View 2 Replies

Stop HTML/JavaScript Page From Loading Mid Initialization

Dec 21, 2010

So imagine a piece of Javascript as the first script on a page along the lines of

var MySuperObject = new (function () {
this.SuperObjectInit();
})();

Now imagine that everything that proceeds this script (or a large portion therein) requires the SuperObject to have met its load conditions and loaded correctly.

Assuming for whatever reason the loading of the object fails I need to abort loading the rest of the page and the scripts in particular.

I know the majority of you are going to scream why not have your function issue a callback onSuccess and onFailed but the problem is this is in a ASP.Net project with masterpages, nestedmasterpages, usercontrols and so forth (each of which have their own dependencies and scripts); rendering such an approach problematic.

The other option (I assume) is to use window.location = "myErrorPage.html"; but I dont like the idea of having to create another page for an error message or the fact that it causes a redirect.

What I am hoping to do is something along the lines of

StopLoadingPage();
document.write("Error has occurred");

View 2 Replies

State Management :: Session Variables Like HashTable Initialization

Mar 29, 2011

1) As per my understanding, Session variables like HashTable and another variable in Session must be initialized. The best place as per my knowledge is Sesson_Start Event. But at some post its written that we must do that in Application_Start. I think it is not true, as that could lead to problems with different user sessions. Reference is this [URL] Let me know about the concept.

2) Storing variables like string, boolean and etc in Session is slower than storing objects in Session like HashTable, Arrays etc.. becuase they dont require boxing and unboxing. Is that true? Reference. [URL]

View 2 Replies

Event Handlers Can Only Be Bound To HttpApplication Events During IHttpModule Initialization?

Mar 3, 2011

I am getting the following error

'Event handlers can only be bound to HttpApplication events during IHttpModule initialization.' at the following code (line in bold or double **)

protected void Application_BeginRequest(object sender, EventArgs e)
{
HttpApplication app = (HttpApplication)sender;
**app.EndRequest += new EventHandler(Application_EndRequest);**
}
protected void Application_EndRequest(object sender, EventArgs e)
{
UnitOfWork.Commit();
}

which is mentioned in Global.asax file.

View 2 Replies

Visual Studio :: Debugging With Development Server Initialization Slow?

Apr 25, 2010

Debugging using the ASP.NET Development server is extremely slow to initialize. The behavior I'm getting is that if I launch the DevServer from VS2008, the first attempt to load a page takes minutes. After that, it's fine. Before the first page load, the DevServer UI responds to input normally (I can bring it up from the status area, use its context menu, and move the window around) until the first page load comes in. Then it shows the busy cursor (spinning blue ring) for 2-6 minutes before finally completing. There is no significant processor or I/O activity during this. After that, it runs normal speed, quite fast.

View 2 Replies

SQL Server :: Format Of The Initialization String Does Not Conform To Specification Starting At Index 0

Oct 15, 2010

I am getting the error above when i click on a button...

View 4 Replies







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