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

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Strange LocalDataStoreSlot storage exception

Posted By:      Posted Date: September 01, 2010    Points: 0   Category :.NET Framework
Hello, I get a strange "LocalDataStoreSlot storage has been freed" exception in my code... What does such an exception mean? I like to know before I post any code. TIA.

View Complete Post

More Related Resource Links

Strange Exception in ListView



I'm facing a strange issue with the ListView control in Windows Forms (DotNetFX 2.0). I've a custom class that extends ListView. Now when I call the Clear method on an instance of this class, I get the "ArgumentOutOfRange" exception. The stacktrace is as given below :

System.ArgumentOutOfRangeException was unhandled by user code
  Message="Index was out of range. Must be non-negative and less than the size of the collection.\r\nParameter name: index"
       at System.Collections.ArrayList.get_Item(Int32 index)
       at System.Windows.Forms.ListView.ListViewNativeItemCollection.get_Item(Int32 displayIndex)
       at System.Windows.Forms.ListView.ListViewItemCollection.get_Item(Int32 index)
       at System.Windows.Forms.ListView.ListViewNativeItemCollection.Clear()
       at System.Windows.Forms.ListView.ListViewItemCollection.Clear()
       at System.Windows.Forms.ListView.Clear()

Is it possible that the ListView throws exception when we call the Clear() method on it if it doesn't contain any columns ?


"Not enough storage is available to process this command" exception on BitmapSource.Create


Hello all,

i've been developing an application that uses Directshow Sample grabber to take snapshots from a video capture and to show it in a WPF control and save it to a local file. I'm using VS2010. Every thing went fine in the development and tests, except when i tried the app in a non-development computer with Windows 7 installed. I caught this exception on application logs:

System.ArgumentException: Not enough storage is available to process this command.  ---> System.Runtime.InteropServices.COMException (0x88982F8C): Excepção de HRESULT: 0x88982F8C
   em System.Windows.Media.Imaging.CachedBitmap.InitFromMemoryPtr(Int32 pixelWidth, Int32 pixelHeight, Double dpiX, Double dpiY, PixelFormat pixelFormat, BitmapPalette palette, IntPtr buffer, Int32 bufferSize, Int32 stride)
   em System.Windows.Media.Imaging.BitmapSource.Create(Int32 pixelWidth, Int32 pixelHeight, Double dpiX, Double dpiY, PixelFormat pixelFormat, BitmapPalette palette, IntPtr buffer, Int32 bufferSize, Int32 stride)

The code that generates this exception follows

byte[] imageBytes = new byt

Custom Edit Form Strange Exception



I have a custom list, which starts a workflow on item creation. After few simple steps in workflow (tryed both state/sequentional), my custom EditForm wont show up, only exception is shown up (as bellow). I don't know where to get more information about where is the exception raising, because the workflow is not raising any exceptions. Can you pls help me? I have no idea what 'Parameter: s' is.

Thank you a lot


Server Error in '/' Application.

Value cannot be null.
Parameter name: s

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: s

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


An exception occured while committing IIS configuration changes: Not enough storage is available to


Installing SharePoint and it dies during provisioning of Central Admin:

11/15/2010 15:07:25.17 powershell.exe (0x0A68) 0x0924 SharePoint Foundation Topology bmt5 High Creating new application pool 'SecurityTokenServiceApplicationPool'. aa3648dd-c0e4-41e6-ac2d-9f01377b1f0b
11/15/2010 15:07:25.17 powershell.exe (0x0A68) 0x0924 SharePoint Foundation Topology 96ft Medium Adding DEV\svc.spfarm to local group IIS_WPG. aa3648dd-c0e4-41e6-ac2d-9f01377b1f0b
11/15/2010 15:07:25.19 powershell.exe (0x0A68) 0x0924 SharePoint Foundation Topology 96ft Medium Adding DEV\svc.spfarm to local group WSS_WPG. aa3648dd-c0e4-41e6-ac2d-9f01377b1f0b
11/15/2010 15:07:25.19 powershell.exe (0x0A68) 0x0924 SharePoint Foundation Topology 96ft Medium Adding DEV\svc.spfarm to local group PerformanceMonitorUsers. aa3648dd-c0e4-41e6-ac2d-9f01377b1f0b
11/15/2010 15:07:25.20 powershell.exe (0x0A68) 0x0924 SharePoint Foundation Topology 9sis Medium Attempting to give SE_ASSIGNPRIMARYTOKEN_NAME privilege to application pool user DEV\svc.spfarm aa3648dd-c0e4-41e6-ac2d-9f01377b1f0b
11/15/2010 15:07:25.20 powershell.exe (0x0A68) 0x0924 SharePoint Foundation Topology


Every self-respected programmer should include exception handling techniques. Sometimes your application will generate an error. Regardless of who was responsible for this error, the programmer or the user, it is up to the first to include the necessary exception handling techniques to keep his/her program from crashing. The .Net environment provides useful techniques for avoiding disastrous errors such as try-catch statements and user-defined exceptions.

Global Exception Handling with ASP.NET

After your global exception handler has done its work, you'll want to redirect the users of your website to a friendly page that tells them that something has gone wrong, and then provide them with customer support information as well as a link back to your web application's home page.

Building a 3-Tier App with Silverlight 3, .NET RIA Services, and Azure Table Storage

Silverlight 3, .NET RIA Services, and Windows Azure Services Platform makes a 3-tier Cloud application easier to build: Silverlight 3 as presentation tier, .NET RIA services as the business logic and data access tier, and Windows Azure Table as the data storage tier. The sample application in this article demonstrates the architecture with a simple Survey application with all these technologies working together from Windows Azure.

SQL Server 2005 Try and Catch Exception Handling

I'm pretty excited to see that there is some real error handling for T-SQL code in SQL Server 2005. It's pretty painful to have your wonderfully architected .NET solution tainted by less-than-VBScript error handling for stored procedures in the database. The big difference being the addition of TRY..CATCH blocks. Let's take a look:

Strange Photo upload problem


I'm working project it's live on shared hosting

we'er uploading photos to a file on the server everything works fine the photo is resized renamed and sent to the folder

the upload page returns the thumbnail and the full size photo it's there all the photos have to be approved by an admin

twice now after they have been approved they disapear I checked the folder they are not there could there be anywhere

on the server they could get hung up before they go into the folder I have it setup so when you delete the data base entry it deletes the photo from the folder othe than that you need to open the folder and delete the photo this has hapened twice now I tried to recreate it with no luck

thaks for your help in advance

reader.getordinal("column_may_not_exist") how to catch the exception?



would any body please help me to catch the exception if the column doesnot exist as my table columns are not static.

sometimes its throwing me indexoutofrange exception as the column doesnot exist

thanks for the help guys

Error while using exception handling block el 4.1


Hi Folks,


i am trying to use tyhe exception handling block of Enterprise library 4.1.


I just createda polisy and used IndexOutOfRangeException and added a replace handler and a logging handler to it.

I am using the NotifyRethrow PostHandlingAction to the exception.


During runtime I am getting an exception on the HandleException event, The exception is added below:



Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

Line 42:             catch (Exception ex)
Line 43:             {
Line 44:                 bool reThrow = ExceptionPolicy.HandleException(ex, "ReplacePolicy");
Line 45:         

userprincipal.changepassword throws exception


Hi all,

      userprincipal.changepassword(oldpassword, newpassword);

gives error: that is Configuration information could not be read from the domain controller, either because the machine is unavailable, or access has been denied. (Exception from HRESULT: 0x80070547)

but userDirectoryEntry.invoke("ChangePassword", new object[] { oldpassword, newpassword });

      userDirectoryEntry.CommitChanges works fine.

Any one please tell me the reason behind this.

active directory exception unusual behaviour


i have a small problem
i want user names from active directory for an auto completer type of service
the method is always throwing an exception 
"searcher.FindAll()' threw an exception of type 'System.DirectoryServices.DirectoryServicesCOMException' System.DirectoryServices.SearchResultCollection 

"Exception from HRESULT: 0x800AC472"


Am Exporting Data in to Excel File,meanwhile if i open any other Excel file than the excel File on which am exporting data gets opened up Automatically having name Book1.How should i stop these excel file not to get open.In the Error log i get an error message showing " Exception from HRESULT: 0x800AC472" . Need help on these.Thanks in Advance.

WebControls.TableRow throws exception on Add()


I have the following method to strip hidden and user-specified columns from a gridviewrow and return a tablerow. 

    Private Shared Function StripHiddenColumns(ByVal gvRow As GridViewRow, ByVal ColumnsToExclude() As Integer) As TableRow

        Dim row As New TableRow
        Dim i As Integer = 0
            For Each cell As TableCell In gvRow.Cells
                If cell.Visible Then
                    If Not ColumnsToExclude.Contains(i) Then
                    End If
                End If
                i += 1

            Return row
        Catch ex As Exception
            Throw ex
        End Try
    End Function

However, when I run this code and hit the Add method for the TableRow,  I get an InvalidOperationException stating the Collection was modified; enumeration operation may not execute.  I've gotten this exception before, but usually it's because I'm attempting to modify a table that is databound.  This particular one is not, i am creating it.  Can anyone offer any insight? 

Thanks in advance.


Data Points: Windows Azure Table Storage - Not Your Father's Database


Let go of your traditional relational database thinking if you want to understand how Windows Azure Table storage works, says Julie Lerman. Luckily for you, she's done the hard work to grasp the new concepts and help you get up to speed.

Julie Lerman

MSDN Magazine July 2010

Cloud Storage: Fueling Your Application's Engine with Windows Azure Storage


Yes, you can run background processes in the cloud. Kevin Hoffman and Nate Dudek use a shopping cart example to demonstrate how to build an application engine as well as implement asynchronous messaging and processing using Azure Storage.

Kevin Hoffman, Nathan Dudek

MSDN Magazine January 2010

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