.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Post New Web Links

Queue grow factor must be between 1 and 10

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :ASP.Net

Can anyone shed some light on this intermittent error?


Message: Exception of type 'System.Web.HttpUnhandledException' was thrown.

Stack trace:

System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.ArgumentOutOfRangeException: Queue grow factor must be between 1 and 10.

Parameter name: growFactor

   at System.Collections.Queue..ctor(Int32 capacity, Single growFactor)

   at System.Web.UI.SessionPageStatePersister.Save()

   at System.Web.UI.Page.SavePageStateToPersistenceMedium(Object state)

   at System.Web.UI.Page.SaveAllState()

   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

   --- End of inner exception stack trace ---

   at System.Web.UI.Page.HandleError(Exception e)

   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

   at System.Web.UI.Page.ProcessRequest()

   at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext contex

View Complete Post

More Related Resource Links

Crystal Reports can grow fields with large amounts of text layout problem


A can grow field in the details section of a crystal report may have so much text that the section will be larger than the remaining space available on the page (the space below the previous record).  The section has vertical lines on it with Extend to bottom of section when printing set to true.  The section starts on a new page (and may continue on the following one).  I want it to start on the page where the last record was laid out, and continue to the new page without leaving a gap with vertical lines on it.  I'm using Crystal Reports 9 and I can't work out how to do it. Has anyone got a solution?

smtp is noe sending email instantly,it makes a Queue in my local system

I am using a  smtp to send email from asp.net (C#)code.it sending some email instantly but many of email is making a queue in my Inetpub folder at local system.what could be the issue ? please help me to get rid from it.ThankxArvind

FAST Search crawl queue

I am attempting to do a full crawl (FAST Search) of a handful of Word, Excel, PowerPoint documents. Has been running for ~3 hours. If I look at the Crawl Queue report in the Administrative Report Library it shows 150 transactions queued. Crawl Processing per Activity - the last entry on the graph is 300 seconds for Initializing Document Filtering for what looks like the entire 2 hrs SQL Server, SharePoint Server and FAST Search servers appear to all have low utilisation (cpu, memory, disk). There are only 2 warnings in the FAST Search crawl log (don't crawl search site and search cache directory). Success = 0, Error = 0, Warning = 2. Before I setup FAST Search, SP Search took approx 6 minutes to crawl a similar list of documents. How do I troubleshoot the issue?

Try your optimizing skills on Phil Factor Speed Phreak challenge

Can you provide a better solution to this problem? So far nobody has been able to come up with a non-cursor based T-SQL solution. http://ask.sqlservercentral.com/questions/17499/phil-factor-speed-phreak-challenge-6-the-stock-exchange-order-book-state-problem Johan Åhlén http://blogical.se/blogs/jahlen

Try your SQL CLR optimization skills on Phil Factor Speed Phreak challenge

Who can provide a better solution to this problem? http://ask.sqlservercentral.com/questions/17499/phil-factor-speed-phreak-challenge-6-the-stock-exchange-order-book-state-problem Johan Åhlén http://blogical.se/blogs/jahlen

MSMQ - Queue Validation

Hi Folks, does anyone know a way of checking that the creation of a private message queue (or attaching to an already existsing message queue) has actually worked? In my program, I create an instance of the MessageQueue class tied to an existing queue by calling the MessageQueue constructor with a 'Format Name' string I've constructed. The string includes the queue name which I extract from a config file. This all works well as long as the queue name is correct. If, however, the referenced queue does not exist then I was expecting the constructor to throw an exception. Unfortunately, it doesn't do this. So, I've tried accessing some of the members of the MessageQueue class after the constructor has executed. In some circumstances accessing MessageQueue.FormatName caused an exception but in other circumstances it didn't. Is there any definitive, fool-proof way of determining an instance of a MessageQueue class is connected to a valid queue? Many thanks, RobDev

Sql server backuo causing .MDF file to grow

Hello, I recently truncated and shrunk the log file for my database  (using BACKUP ... WITH TRUNCATE_ONLY and then DBCC SHTRINKFILE). However when I now perform a backup of my database, the MDF file grows substantially (from 10GB to 17GB). Could this be related somehow to the truncation of the log file?

Public Queue Node Missing

Dear friends, I installed MSMQ onn Windows Server 2008 R2. But I am not able to see Public queue node. And when I try to access queues using .\\QueueName it throws error "A workgroup installation computer does not support the operation." Although I selected optin to integrate MSMQ with AD but still I am not able to see Public Queue Node. Thanks in advance. Satinder.

Database grow automatically


How to check if a database has already been set to grow automatically-sql 2005.



Newbie Can a HTTP client recieve MSMQ messages from a queue?


Can a HTTP client recieve MSMQ messages from a queue?

Thats the question. I see examples on sending messages via HTTP but how do I get messages via HTTP from a queue.

If it supports getting messages via HTTP is it a normal get HTTP request that would be blocked by a firewall or ??




Service Broker Queue message activates stored Proc as SA but the stored proc is unable to access oth


I have a queue whose activation I defined as below

ALTER QUEUE SomeInitiatorQueue
PROCEDURE_NAME = usp_SomeProc,

Now I am trying to access another database in usp_SomeProc as below

Select SomeColumn SomeOtherDb.dbo.SomeTable

Here I am getting this error "The server principal "sa" is not able to access the database "SomeOtherDb" under the current security context."

It never allows unless I grant all permissions on the database to all.

what is the solution?

Database Mail - How to clear queue list ?


Hi Experts,


i had a job on my client database which is running every 3 minutes to send out all my mail item list using Database Mail.

This job will automatically send out email which is retrieve from one of my table (DocumentQueue).

So whenever user click "Email" button on my system, system will add record on my table (DocumentQueue)

and every 3 minutes my job will started to send out all email in DocumentQueue which is not being send.


What my problem is... the recipient on my table in the wrong format, ie: admin@google.com;stone.wu@g;

And this email is being send on 09:00.

It keeps sending email every 3 minutes...

on the 1st 10 minutes the errors on sysmail_log was : 

"The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 1 (2010-10-04T09:28:00). Exception Message: Cannot send mails to mail server. (The specified string is not in the form required for an e-mail address.). )"

and after 10 minutes the errors was :

"The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 1 (2010-10-04T12:42:00). Exception Message: Could not connect to mail server. (An operation on a socket could not be performed because the system lack

A lot of objects in finalization queue


For unknown reason we have thousands of objects in finalization queue:
0:002> !FinalizeQueue
SyncBlocks to be cleaned up: 0
MTA Interfaces to be released: 0
STA Interfaces to be released: 0
generation 0 has 1 finalizable objects (0000000047160bd8->0000000047160be0)
generation 1 has 0 finalizable objects (0000000047160bd8->0000000047160bd8)
generation 2 has 371 finalizable objects (0000000047160040->0000000047160bd8)
Ready for finalization 710207 objects (0000000047160be0->00000000476cbdd8)
              MT    Count    TotalSize Class Name
000007feed51f960        1           24 System.Management.IWbemClassObjectFreeThreaded
000007fef3e85270     3150       201600 System.Drawing.SolidBrush
000007fef3e858f8     5763       276624 System.Drawing.Bitmap
000007fef3e83108     7374       530928 System.Drawing.Font
000007fef3e83790   679426     27177040 System.Drawing.FontFamily

Verifying GRANT permissions on Service Broker CONTRACT and Queue


I am setting up SqlDependency and wish to verify that the permissions have been applied correctly.

One of the commands that should be run to grant permissions is to grant references on a contract for the user:

GRANT REFERENCES on CONTRACT::[http://schemas.microsoft.com/SQL/Notifications/PostQueryNotification]  to [sql_dependency_subscriber]

How can I check whether the user e.g. 'databaseUser' has this REFERENCES granted on this contract? Which view/stored proc. to use?

The other command is similar (also required for SqlDependency) but grants permission "RECEIVE":

GRANT RECEIVE ON QueryNotificationErrorsQueue TO [sql_dependency_subscriber]

How could I verify that the RECEIVE permission has been granted?


I have currently used this command:

sys.database_permissions AS prmssn
INNER JOIN sys.database_principals AS grantee_principal
ON grantee_principal.principal_id = prmssn.grantee_principal_id
WHERE prmssn.class = 0

With this command I can see some permissions (such as CREATE PROCEDURE, CREATE QUEUE, etc.) but the above permissions related to  the contract and queue do not seem to show in the results from sys.database_permissions.

Thankful for any advice!


Two Factor Authentication


 Anyone have any good ideas for implementing a strong two factor authentication solution to an app that's already using asp.net authentication?  any particular add-ons that work well with asp.net?   Preferably one that doesnt involved end-user hardware....

thnx - Curt



GetWorkflowQueueData return zero queue

Hi Folks,

I'm working on sequential approval workflow with replicator running on parallel. It manage to send out email, waiting for approval and tabulate the final result after all approval responded. I'm using manualworkflowschedulerservice since the host application run in ASP.NET. The application allow a representative to perform the approval process on behave of the approver. This workflow work fine most of the time except SOMETIMES out of no where, approving doesn't work because when I perform GetWorkflowQueueData, it return zero queue even the workflow instance still exist in the persistance store in db.

Any advice on this ?

Best Regards

Facing daily 3 to 4 times disk queue lenght once we applied daily update statistic job run at night


we have a large database ,and we applied update statistic job which is run daily at 2:00pm .Afetr that I am watching we have a disk queue leght problem 3 to 4 times a day .Does update statisctics job responsible for that ? how ? What to do to descrease a disk queue lenght problem ?

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend