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

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

Insufficient system resources exist to complete the requested service

Posted By:      Posted Date: September 20, 2010    Points: 0   Category :.NET Framework

Hi All,

I am trying to read file stream on network path & getting the error Insufficient system resources exist to complete the requested service

binaryReader =

New BinaryReader(fileStream)


Dim binaryFileContent As Byte() = binaryReader.ReadBytes(CInt(fileStream.Length))

Can any one help out how to resolve this issue.

View Complete Post

More Related Resource Links

SerialPort.Open Insufficient system resource exist to complet the requested service



SerialPort.Open call in my application crashes intermittently on only one laptop of all machines with the following exception.

Error. Insufficient system resources exist to complete the requested service.

at System.IO.InternalResources.WinIOError(Int32 errorCode,...)

at System.IO.PortsSerialStream..ctor(String portName,...)

at System.IO.Ports.SerialPort.Open()


I am clueless how to debug into this issue, as this happens only on one of the laptops and that too intermittently.

I doubt it is a corrupt kernel issue or ??!!!

Can anyone point me to a direction that can help me resolve this issue or reveal a hidden bug.




Team System: Team Foundation Server Event Service


Use the Team Foundation Server EventService to create and manage event subscriptions or create a Web service to receive and process events.

Brian A. Randell

MSDN Magazine May 2008

Service Station: What's new in System.Xml 2.0?


In this installment of Service Station, Aaron Skonnard takes a long hard look at System.Xml 2.0.

Aaron Skonnard

MSDN Magazine September 2006

System.Data.SqlClient.SqlError: There is insufficient free space on disk volume 'C:\' to create th

I received the following error...*****System.Data.SqlClient.SqlError: There is insufficient free space on disk volume 'C:\' to create the database. The database requires 2739929088 additional free bytes, while only 801185792 bytes are available. (Microsoft.SqlServer.Smo)*****I have looked at the solution recommended on this forum http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=79848 but I am still baffled as to why it says that I don't have enough disk space?  I ran the RESTORE FILELISTONLY command and it told me that the "size" was 1.4 GB and I've got 60GB left. I am starting to resolve that my .BAK is corrupt.  Are there any other reasons as to why I am unable to restore my backup?Thanks for any help in advance!

The requested service, 'http://localhost/MyServices/Test.svc' could not be activated Exception....

Hi I am using VS2010, WPF/WCF/.Net4, IIS 7, Windows 7. I am calling methods asynchronously, some times during execution I get the following errror.  The requested service, 'http://localhost/MyServices/Test.svc' could not be activated. See the server's diagnostic trace logs for more information. ======================== Server stack trace:    at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)    at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)    at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)    at System.ServiceModel.Channels.ServiceChannelProxy.InvokeEndService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)    at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) Exception rethrown at [0]:    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)    at WSProxy.PatientService.IPatient.EndLoadPatientCardsInfosCompress(IAsyncResult result)    at WSProxy.PatientService.PatientClient.EndLoadPatientCardsInfosCompress(IAsyncResult result) ========================= Using BasiHttpBindi

System.ComponentModel.DescriptionAttribute not showing up in REST service

I am trying to set the description for a REST WCF service, but it doesn't seem to be working. Code is: [AspNetCompatibilityRequirements(RequirementsMode=AspNetCompatibilityRequirementsMode.Allowed)]     [ServiceBehavior(InstanceContextMode=InstanceContextMode.PerCall)]     [WebDispatchFormatterConfiguration("application/xml")]     [WebDispatchFormatterMimeType(typeof(WcfRestContrib.ServiceModel.Dispatcher.Formatters.PoxDataContract), "application/xml", "text/xml")]     [WebDispatchFormatterMimeType(typeof(WcfRestContrib.ServiceModel.Dispatcher.Formatters.DataContractJson), "application/json")]     [WebDispatchFormatterMimeType(typeof(WcfRestContrib.ServiceModel.Dispatcher.Formatters.FormUrlEncoded), "application/x-www-form-urlencoded")]     public class PublicAppointmentSchedulerSvc : IPublicAppointmentScheduler     {         IPublicAppointmentScheduler impl = new PublicAppointmentScheduler();         [WebDispatchFormatter]         [Description("Immediate or callback contact request")]         [WebInvoke(UriTemplate = "InitiateContact", Method = Verbs.Post)]  &n

Why windows service Looks for "Classlibrary2.resources Version=" assembly in resolver eve

In a simple Windows Service project, I have got below code. namespace WindowsService1 {     static class Program     {         /// <summary>         /// The main entry point for the application.         /// </summary>         static void Main()         {             System.Diagnostics.Debugger.Launch();             AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve);             ClassLibrary2.Class1.Hello();         }         private static Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args)         {             return null;         }     } } Here "ClassLibrary2" is a simple class library project with couple resources and single class. No other settings are set. After installing WindowsService1, on starting the s

The type or namespace name 'Linq' does not exist in the namespace 'System'

Hi, I uploaded my website to the server, and I have there a working with wcf - it should be fw 3.5 I saw that fw 3.5 is installed on the server and also we have there fw 3.0 sp1. I run my website : www.qenglishcenter.com and I'm getting an error : The type or namespace name 'Linq' does not exist in the namespace 'System' (are you missing an assembly reference?) shouldn't System.linq be already existed ? Thanks for any reply.  

Can´t set up local system accounts as service accounts in sharepoint 2010

HI I made an inplace upgrade to sharepoint 2010. I want to setup performance point services. but it doesn´t allow me to set a local system account as the application pool account for performance point services application. It doesn´t allow me to register a new account it says The specified user account "domain\username" is a local account. Local accounts should only be used in stand alone mode. The application pool account for the site collection that I upgraded is a local system account so I don´t get it? I tried this http://sharepoint.microsoft.com/blogs/fromthefield/Lists/Posts/Post.aspx?ID=112 However the upgrade fails after this. Is there any way that I do the inplace upgrade and it would allow me to use local system accounts has service accounts? Without Active directory? Thanks      

System.ServiceModel.Security.SecurityNegotiationException in WCF RIA Service

Good day, I created a WCF RIA service application in Visual Studio 2008. However, when I run the application it posts this exception. I set the includeExceptionDetailInFaults to true: <behaviors> <serviceBehaviors> <behavior name="serviceBehavior"> <serviceDebug includeExceptionDetailInFaults="true"/> <serviceMetadata httpGetEnabled="true"/> </behavior> </serviceBehaviors> </behaviors> However, I still get the this error in my client app..... Any idea to diagnose the issue? or any suggestion on exception handling in WCF?? Thanks in advance!!

Question on WCF service with Linq to SQL on 64-bit system

I'm trying this question one more time since I realized the work in in a 64-bit environment. I have a WCF service which runs in production in a 32-bit environment using VS2008 and .NET 2.0. We made a big change to our environment (lots at the same time) and I moved the services to VS2010, .NET 4.0, and 64-bit processes.  I wrote a new service and deployed it under IIS.  If I browse to the service I get the example screen and clicking on the link gives me the metadata.  So all of that is working. In my services I create a Linq to SQL context, perform a query, then return the result set as an Array.  I wrapped the context creation with a using.  My tests returned an exception "Attempt to access an object that has already been disposed".  I traced it down and found that the code executes, forces the query, returns the results, exits the using statement (disposing the context properly) then exits the method.  The next thing I get is the exception, inside framework code, and it is linq code attempting to fulfill the query once again. I have searched until I'm blue in the face trying to find prior incidents and fixes but all I found was one post, two years ago, same problem with less debugging, and no answer to the problem other than 'don't use the using statement' which is a bad suggestion.  So for a work around I wrote a Co

Publishing xbap with partial trust, using WCF service for data backend, getting System.Net.WebPermis


It looks like these are very picky when it comes to how and where everything is setup. I've only got this to work when launching from visual studio. If I publish, I keep getting the System.Net.WebPermission exception. I am using .Net 4.0


IIS 7.5 (on my local machine)
Default Website
  --- QuoteTest (Application, ASP.net hosted website)
             ---Xbap(Was virtual directory, turned it into an application)

I'm thinking it's some magical order of settings in the publish tab that I need to do right.

  • Should I use localhost or my ip in the publishing location?
  • For the WCF service, is publishing to a File System Acceptable?
  • Any other security settings that I should set/be aware of?

On starting SSRS Service SQLDUMper starts system freezes


HI All,

          I have SSRS 2008 64-bit for MS CRM 4. Recenlty I am facing very strange problem. If I delete ReportServer Database and then I try to access http://servername/reportserver, I get 'Cannot open database "ReportServer" requested by the login. The login failed. Login failed for user 'NT AUTHORITY\NETWORK SERVICE'. Which is obvious but if I recreate the ReportServer Database using Reporting Services Configuration Manager then instantly SQLDumper starts and URL do not show anything in browser except keep waiting. The Following Things in Dumps- (filename is SQLDmpr....log):

rpcserver!DefaultDomain!1394!09/23/2010-08:57:38:: i INFO: RPC Server started.
servicecontroller!DefaultDomain!1394!09/23/2010-08:57:38:: i INFO: RPC Server started. Endpoint name ='ReportingServices$MSRS10.MSSQLSERVER'
appdomainmanager!WindowsService_0!1394!09/23/2010-08:57:38:: i INFO: Appdomain:2 WindowsService_0 initialized.
library!WindowsService_0!120c!09/23/2010-08:57:38:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details., Interval in DBPolling is too large and will make polling verification logic fail.;

Downloading a document from a sharepoint site to local file system, copy web service returns null

Hi Guys,
               I am trying to get this done for the last 2 days and I am still banging my head to the wall.
All I need to do is to download files from my sharepoint site library that uses integrated windows authentication. I was using copy webservice : getItem method to accomplish this.

CopyService.GetItem(copySource, out myFieldInfoArray, out myByteArray);

Problem : myByteArray is always returned as NULL

Note: I have tried the same with another site that uses forms authentication but the result was the same (NULL !!)

This is my code:


Copy copy = new CopyService.Copy();


List does not exist -- AutoStart Workflow: System.NullReferenceException:


I have been in a discussion on the MSDN forums concerning a site with which I am having considerable issues.  (http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/0feaf4c7-77cd-46c6-b3cd-4d18c69b18c3)    There is one issue that keeps cropping on one of the pages on that site.  The page is a customization of the EditForm.aspx which is being used to edit folders. We call it EditFolderForm.  Like the EditForm it uses a DataFormWebPart.  It also has a SharePoint:SaveButton  and a SharePoint:GoBackButton.  The Listid on the page has been confirmed to be the correct ListID.  Clicking the SaveButton causes the following two errors:

List does not exist  The page you selected contains a list that does not exist.

and then

AutoStart Workflow: System.NullReferenceException: Object reference not set to an instance of an object.

I have found references that mentioned getting these messages for custom made workflows that are built on Designer.  However the workflow being called is a built in SharePoint Workflow so that none of the suggested fixes will work.  (Also it seems that the workflows that cause the issue seem to be sending

There is insufficient system memory in resource pool 'internal' to run this query.



I have a .NET application executing a stored procedure on a SQL Server 2008 SP1 64 bit instance (version 10.0.2531.0), and getting the following exception:

There is insufficient system memory in resource pool 'internal' to run this query.

Maximum server memory is set to 4096MB. The server has 4GB of physical RAM available, and is running Windows Server 2008 R2 x64.

The SQL Server instance is only consuming approx 1.5GB RAM and there is 15+% physical RAM unused.

The messages in error.log are as follows:

2010-09-25 03:28:38.15 spid51    Failed allocate pages: FAIL_PAGE_ALLOCATION 1
2010-09-25 03:28:38.15 spid51   
Memory Manager                  KB
---------------------------------------- ----------
VM Reserved                 4277792
VM Committed                1532212
Locked Pages Allocated              0
Reserved Memory                1024
Reserved Memory In Use              0
2010-09-25 03:28:38.15 spid51   
Memory node Id = 0                KB
---------------------------------------- ----------
VM Reserved                 4276704
VM Committed                1531184
Locked Pages Allocated              0
MultiPage Allocator              38992
SinglePage Allocator            1371648
2010-09-25 03:28:38.15 spid51   
---------------------------------------- ----------
VM Res
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