So I've created a simple ASP .NET site, where you can send a message to the Watson service and receive the response.
It works locally when I run the application from VS2017, but now I've deployed it to my 2012 R2 Server and it doesn't work.
The application runs, but I'm not able to receive any answer from the Watson service.
What am I missing in the IIS?
This is the SDK, I've been using.
https://github.com/watson-developer-cloud/dotnet-standard-sdk
Here is the only error I can find in the eventvwr.
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 25-04-2019 15:51:35
Event time (UTC): 25-04-2019 13:51:35
Event ID: 8eb66320f2fa412ea0a2cf3f61d5f3b2
Event sequence: 19
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/6/ROOT-6-132006738849963250
Trust level: Full
Application Virtual Path: /
Application Path: xxx
Machine name: OSI4908
Process information:
Process ID: 6844
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception information:
Exception type: HttpException
Exception message: The remote host closed the connection. The error code is 0x80070057.
at System.Web.Hosting.IIS7WorkerRequest.RaiseCommunicationError(Int32 result, Boolean throwOnDisconnect)
at System.Web.Hosting.IIS7WorkerRequest.ExplicitFlush()
at System.Web.HttpResponse.Flush(Boolean finalFlush, Boolean async)
at System.Web.HttpWriter.WriteFromStream(Byte[] data, Int32 offset, Int32 size)
at Microsoft.Owin.Host.SystemWeb.CallStreams.OutputStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at Microsoft.AspNet.SignalR.Owin.ServerResponse.Write(ArraySegment`1 data)
at Microsoft.AspNet.SignalR.Hosting.ResponseExtensions.End(IResponse response, String data)
at Microsoft.Owin.Mapping.MapMiddleware.<Invoke>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.StageAsyncResult.End(IAsyncResult ar)
at System.Web.HttpApplication.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Related
I am using an Azure Web App (own ASP.NET Project) combined with an Azure SQL database.
My web application is requesting the database on each request to check the userlevel for example.
The workload on the Azure charts are totally normal but sometimes there are some strange workloads after special events. For example I worked on the ASP.NET Project yesterday at 9PM on my local machine without publishing or opening the Server Explorers. I also did not update the firewall IP in Azure for accessing the database from my local machine.
After a hour of work I noticed that the website was sending back a 502 Error after loading for 1.5 minutes.
I took a look on the charts and noticed that the database was occupied by requests since I started programming on the local machine.
Trying to republish, restart the server and changing the database pricing tier did not help.
The Azure Web App Chart:
The Azure SQL Database Chart:
I have no idea why this happens because it is not the first time and the downtime is not that short.
--- EDIT: ---
As #DanRediske-MSFT mentioned below I tracked the SQL queries in the Management Studio and saw that there is one statement which is using a lot of resources (is executing extremely long):
The SQL big resource statement is really long because it is generated by the Entity Framework:
SELECT
[Project1].[AccessFailedCount] AS [AccessFailedCount],
[Project1].[Id] AS [Id],
[Project1].[UserDomain] AS [UserDomain],
[Project1].[Email] AS [Email],
[Project1].[EmailConfirmed] AS [EmailConfirmed],
[Project1].[PasswordHash] AS [PasswordHash],
[Project1].[SecurityStamp] AS [SecurityStamp],
[Project1].[UserName] AS [UserName],
[Project1].[AccountDetail_Id] AS [AccountDetail_Id],
[Project1].[AccountSetting_Id] AS [AccountSetting_Id],
[Project1].[BusinessDetail_Id] AS [BusinessDetail_Id],
[Project1].[LeadCollection_Id] AS [LeadCollection_Id],
[Project1].[PaymentDetail_Id] AS [PaymentDetail_Id],
[Project1].[UserDetail_Id] AS [UserDetail_Id],
[Project1].[C2] AS [C1],
[Project1].[Id1] AS [Id1],
[Project1].[OrderDate] AS [OrderDate],
[Project1].[OrderNumber] AS [OrderNumber],
[Project1].[HasBeenHandled] AS [HasBeenHandled],
[Project1].[OrderId] AS [OrderId],
[Project1].[PaypalSubscriptionID] AS [PaypalSubscriptionID],
[Project1].[IsActive] AS [IsActive],
[Project1].[Product_ProductID] AS [Product_ProductID],
[Project1].[User_Id] AS [User_Id],
[Project1].[C1] AS [C2],
[Project1].[PaymentID] AS [PaymentID],
[Project1].[PaymentDate] AS [PaymentDate],
[Project1].[Amount] AS [Amount],
[Project1].[HasBeenHandled1] AS [HasBeenHandled1],
[Project1].[TransactionID] AS [TransactionID],
[Project1].[Order_ID] AS [Order_ID]
FROM ( SELECT
[Extent1].[Id] AS [Id],
[Extent1].[UserDomain] AS [UserDomain],
[Extent1].[Email] AS [Email],
[Extent1].[EmailConfirmed] AS [EmailConfirmed],
[Extent1].[PasswordHash] AS [PasswordHash],
[Extent1].[SecurityStamp] AS [SecurityStamp],
[Extent1].[AccessFailedCount] AS [AccessFailedCount],
[Extent1].[UserName] AS [UserName],
[Extent1].[AccountDetail_Id] AS [AccountDetail_Id],
[Extent1].[AccountSetting_Id] AS [AccountSetting_Id],
[Extent1].[BusinessDetail_Id] AS [BusinessDetail_Id],
[Extent1].[LeadCollection_Id] AS [LeadCollection_Id],
[Extent1].[PaymentDetail_Id] AS [PaymentDetail_Id],
[Extent1].[UserDetail_Id] AS [UserDetail_Id],
[Join2].[ID] AS [Id1],
[Join2].[OrderDate] AS [OrderDate],
[Join2].[OrderNumber] AS [OrderNumber],
[Join2].[HasBeenHandled1] AS [HasBeenHandled],
[Join2].[Product_ProductID] AS [Product_ProductID],
[Join2].[User_Id] AS [User_Id],
[Join2].[OrderId] AS [OrderId],
[Join2].[PaypalSubscriptionID] AS [PaypalSubscriptionID],
[Join2].[IsActive] AS [IsActive],
[Join2].[PaymentID] AS [PaymentID],
[Join2].[PaymentDate] AS [PaymentDate],
[Join2].[Amount] AS [Amount],
[Join2].[HasBeenHandled2] AS [HasBeenHandled1],
[Join2].[TransactionID] AS [TransactionID],
[Join2].[Order_ID] AS [Order_ID],
CASE WHEN ([Join2].[ID] IS NULL) THEN CAST(NULL AS int) WHEN ([Join2].[PaymentID] IS NULL) THEN CAST(NULL AS int) ELSE 1 END AS [C1],
CASE WHEN ([Join2].[ID] IS NULL) THEN CAST(NULL AS int) ELSE 1 END AS [C2]
FROM [dbo].[AspNetUsers] AS [Extent1]
LEFT OUTER JOIN (SELECT [Extent2].[ID] AS [ID], [Extent2].[OrderDate] AS [OrderDate], [Extent2].[OrderNumber] AS [OrderNumber], [Extent2].[HasBeenHandled] AS [HasBeenHandled1], [Extent2].[Product_ProductID] AS [Product_ProductID], [Extent2].[User_Id] AS [User_Id], [Extent3].[OrderId] AS [OrderId], [Extent3].[PaypalSubscriptionID] AS [PaypalSubscriptionID], [Extent3].[IsActive] AS [IsActive], [Extent4].[PaymentID] AS [PaymentID], [Extent4].[PaymentDate] AS [PaymentDate], [Extent4].[Amount] AS [Amount], [Extent4].[HasBeenHandled] AS [HasBeenHandled2], [Extent4].[TransactionID] AS [TransactionID], [Extent4].[Order_ID] AS [Order_ID]
FROM [dbo]
It looks like the statement would not be complete but that's all I see in the .sqlplan file StatementText Attribute. So here it would be the complete file for that statement: http://alexpower.de/snippet.sqlplan
For me it now would be intresting to know which EF code is generating that statement. Is this possible to get that information?
--- EDIT: ---
Found some interesting Events in the Event Viewer on domainname.scm.azurewebsites.net/Support but don't know what to do with it:
Info:
.NET Runtime version 4.0.30319.0 - Loading profiler failed. Failed
trying to receive from out of process a request to attach a profiler.
HRESULT: 0x8007006d. Process ID (decimal): 4716. Message ID: [0x250d].
Warning:
Worker Process requested recycle due to 'Percent Slow Requests' limit.
Error:
Event code: 3005 Event message: An unhandled exception has occurred.
Event time: 3/22/2017 9:47:27 PM Event time (UTC): 3/22/2017 8:47:27
PM Event ID: 919f06b7f5e647beb75be7c8400d107f Event sequence: 8 Event
occurrence: 1 Event detail code: 0
Application information: Application domain:
/LM/W3SVC/712043775/ROOT-1-131346876896158300 Trust level: Full
Application Virtual Path: / Application Path: D:\Program Files
(x86)\SiteExtensions\Kudu\61.60316.2745\ Machine name: RD00155D56FC01
Process information: Process ID: 5064 Process name: w3wp.exe Account
name: IIS APPPOOL\onlineplaybook
Exception information: Exception type: HttpException Exception
message: Server cannot append header after HTTP headers have been
sent. at System.Web.HttpHeaderCollection.SetHeader(String name, String
value, Boolean replace) at System.Web.HttpHeaderCollection.Add(String
name, String value) at
Kudu.Services.Web.Tracing.TraceModule.OnBeginRequest(Object sender,
EventArgs e) at
System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean& completedSynchronously)
Request information: Request URL:
https://onlineplaybook.scm.azurewebsites.net:443/msdeploy.axd?site=onlineplaybook
Request path: /msdeploy.axd User host address: 79.248.163.180 User:
Is authenticated: False Authentication Type: Thread account name: IIS
APPPOOL\onlineplaybook
Thread information: Thread ID: 20 Thread account name: IIS
APPPOOL\onlineplaybook Is impersonating: False Stack trace: at
System.Web.HttpHeaderCollection.SetHeader(String name, String value,
Boolean replace) at System.Web.HttpHeaderCollection.Add(String name,
String value) at
Kudu.Services.Web.Tracing.TraceModule.OnBeginRequest(Object sender,
EventArgs e) at
System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean& completedSynchronously)
Custom event details:
I've been getting the following error in a production environment. Please refer the error in the bottom. So far I was able to recreate the problem by letting the orchestration suspend by forcing a db timeout in the application db call, and resuming the instance. After repeating the action for 2 rounds on the same instance, third time the instance will get suspended with the error below.
What could be the reason for this behavior?
BizTalk Error
Uncaught exception (see the 'inner exception' below) has suspended an
instance of service '{ORCHESTRATION
NAME}(57adc083-7423-2bff-bd2d-ca813b8c0f4e)'. The service instance
will remain suspended until administratively resumed or terminated.
If resumed the instance will continue from its last persisted state
and may re-throw the same unexpected exception. InstanceId:
1bca1f03-7780-4f45-af2e-020724c8a92d Shape name: ShapeId: Exception
thrown from: segment -1, progress -1 Inner exception: Unable to
process exec message.
Exception type: Exception Source: Microsoft.XLANGs.BizTalk.Engine Target Site: System.Object[]
get_Args() The following is a stack trace that identifies the location
where the exception occured
at Microsoft.BizTalk.XLANGs.BTXEngine.BTXService.get_Args() at
{ORCHESTRATION NAME}.segment1(StopConditions stopOn) at
Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s,
StopConditions stopCond, Exception& exp)
Stack trace
xlang/s engine event log entry: Failed while delivering a message to a
service instance. Message details follow. Message ID:
61eaa7fc-ac85-42d9-bf3e-1bed258b82be Service Instance ID:
1bca1f03-7780-4f45-af2e-020724c8a92d Service Type ID:
57adc083-7423-2bff-bd2d-ca813b8c0f4e Subscription ID:
00000000-0000-0000-0000-000000000000 Body part name: Service type:
{ORCHESTRATION NAME}, {Assembly Details}
Exception type: BTXMessageDeliveryException The following is a stack
trace that identifies the location where the exception occured
at
Microsoft.BizTalk.XLANGs.BTXEngine.BTXSession._receiveOneMessage(Guid&
instanceId, Guid& serviceId, IBTMessage currentMsg) at
Microsoft.BizTalk.XLANGs.BTXEngine.BTXSession.ReceiveMessages(IBTMessage[]
messages, Int32 firstIdx, Int32 count) at
Microsoft.BizTalk.XLANGs.BTXEngine.AppDomains.AppDomainRoot.Microsoft.XLANGs.BizTalk.ProcessInterface.IAppDomainStub.ReceiveMessages(Object
objMsg)
Additional error information:
Failed while delivering a message to a service instance. Message details follow. Message ID:
61eaa7fc-ac85-42d9-bf3e-1bed258b82be Service Instance ID:
1bca1f03-7780-4f45-af2e-020724c8a92d Service Type ID:
57adc083-7423-2bff-bd2d-ca813b8c0f4e Subscription ID:
00000000-0000-0000-0000-000000000000 Body part name: Service type:
{ORCHESTRATION NAME}, {Assembly Details}
Exception type: BTXMessageDeliveryException Source:
Microsoft.XLANGs.BizTalk.Engine Target Site: Void
DeliverMessage(System.Guid,
Microsoft.BizTalk.Agent.Interop.IBTMessage, Boolean ByRef) The
following is a stack trace that identifies the location where the
exception occured
at
Microsoft.BizTalk.XLANGs.BTXEngine.BTXSession._tryReceiveOneMessage(Boolean&
loggedError, Guid& instanceId, IBTMessage currMsg) at
Microsoft.BizTalk.XLANGs.BTXEngine.BTXSession._receiveOneMessage(Guid&
instanceId, Guid& serviceId, IBTMessage currentMsg) at
Microsoft.BizTalk.XLANGs.BTXEngine.BTXSession.ReceiveMessages(IBTMessage[]
messages, Int32 firstIdx, Int32 count) at
Microsoft.BizTalk.XLANGs.BTXEngine.AppDomains.AppDomainRoot.Microsoft.XLANGs.BizTalk.ProcessInterface.IAppDomainStub.ReceiveMessages(Object
objMsg)
Additional error information:
The XLANG/s message has no part at index '0'. The total number of parts found in the message is '0'. If you expect a multipart
message, check that the pipeline supports multipart messages such as
MIME.
Exception type: MissingPartException Source:
Microsoft.XLANGs.BizTalk.Engine Target Site: Void
ReadMessageState(Microsoft.XLANGs.Core.Envelope,
Microsoft.XLANGs.BaseTypes.XLANGMessage) The following is a stack
trace that identifies the location where the exception occured
at
Microsoft.BizTalk.XLANGs.BTXEngine.BTXXlangStore.ReadMessageState(Envelope
env, XLANGMessage msg) at
Microsoft.BizTalk.XLANGs.BTXEngine.BTXService.ArgsFromExecEnvelope(IBTMessage
msg) at
Microsoft.BizTalk.XLANGs.BTXEngine.BTXService.DeliverMessageImpl2(Guid
subscriptionId, IBTMessage msg, Boolean& receiveCompleted) at
Microsoft.BizTalk.XLANGs.BTXEngine.BTXService.DeliverMessage(Guid
subscriptionId, IBTMessage msg, Boolean& receiveCompleted)
Received this myself. Not sure what you were doing when you started receiving it. For me, I had a working orchestration and then added a correlation set. I use BTDF so simply updated the GAC only with new orchestration when I really should've done a full re-deploy (I know, lazy.).
Anyway, once I did redeploy fully, cycle hosts, and retest it worked fine.
Probably not answer you are looking for but it helped me. Here was my stack trace:
Exception type: BTXMessageDeliveryException
Source: Microsoft.XLANGs.BizTalk.Engine
Target Site: Void DeliverMessage(System.Guid, Microsoft.BizTalk.Agent.Interop.IBTMessage, Boolean ByRef)
The following is a stack trace that identifies the location where the exception occured
at Microsoft.BizTalk.XLANGs.BTXEngine.BTXSession._tryReceiveOneMessage(Boolean& loggedError, Guid& instanceId, IBTMessage currMsg)
at Microsoft.BizTalk.XLANGs.BTXEngine.BTXSession._receiveOneMessage(Guid& instanceId, Guid& serviceId, IBTMessage currentMsg)
at Microsoft.BizTalk.XLANGs.BTXEngine.BTXSession.ReceiveMessages(IBTMessage[] messages, Int32 firstIdx, Int32 count)
at Microsoft.BizTalk.XLANGs.BTXEngine.AppDomains.AppDomainRoot.Microsoft.XLANGs.BizTalk.ProcessInterface.IAppDomainStub.ReceiveMessages(Object objMsg)
at Microsoft.XLANGs.BizTalk.CrossProcess.AppDomainStubProxy.Microsoft.XLANGs.BizTalk.ProcessInterface.IAppDomainStub.ReceiveMessages(Object msgs)
Additional error information:
Index was outside the bounds of the array.
I have a project in aspx with vb.net and this app calls a COM + DLL, and this DLL reads a registry key, in my VB6 app uses this DLL correctly, but adding this DLL's references on my .NET project, i get this error below:
Somebody help me with this error, pls...
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 27/8/2014 11:25:13
Event time (UTC): 27/8/2014 14:25:13
Event ID: c94e2752e983457cb159dc7d9e5f75a1
Event sequence: 7
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1/Root/Constito-1-130536231061632161
Trust level: Full
Application Virtual Path: /Constito
Application Path: C:\Constito\
Machine name: SERVER-Constito
Process information:
Process ID: 7116
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception information:
Exception type: Exception
Exception message:
Unable to cast COM object of type 'System.__ComObject' to interface type 'U_Master.Obj'.
This operation failed because the QueryInterface
call on the COM component for the interface
with IID '{BE0634D8-325E-4A3E-9426-44D52F118BF9}'
failed due to the following error:
Could not read key from registry
(Exception from HRESULT: 0x80040150 (REGDB_E_READREGDB)).
at Constito.Master.Post_DadosVB6(Object obj, String acao, String xmlArg, String p_cd_usuario) in C:\Constito\Master.vb:line 102
at Constito.Principal.Page_Load(Object sender, EventArgs e) in C:\Constito\Principal.aspx.vb:line 30
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean
includeStagesAfterAsyncPoint)
Try setting the Application Pool user to an account with local admin privileges on the Web Server.
It looks like a registry permissions issue.
If thats not it ensure that the GUID (BE0634D8-325E-4A3E-9426-44D52F118BF9) exists in the HKEY_CLASSES_ROOT hive.
I have error for my custom asp.net
my code asp code:
IServiceConfiguration<IOrganizationService> orgConfigInfo =
ServiceConfigurationFactory.CreateConfiguration<IOrganizationService>(new Uri("http://crm.tadbirgaranbm.com/TadbirgaranMellat/XRMServices/2011/Organization.svc"));
var creds = new ClientCredentials();
creds.UserName.UserName = "user";
creds.UserName.Password = "pass";
using (_serviceProxy = new OrganizationServiceProxy(orgConfigInfo, creds))
{
// This statement is required to enable early-bound type support.
_serviceProxy.ServiceConfiguration.CurrentServiceEndpoint.Behaviors.Add(new ProxyTypesBehavior());
_service = (IOrganizationService)_serviceProxy;
using (context srv = new context(_service))
{
Account acc = new Account();
acc.thr_FirstName = firstname.Text;
acc.thr_LastName = lastname.Text;
acc.thr_NationalCode = nationalcode.Text;
acc.EMailAddress1 = email.Text;
acc.thr_Mobile = cellphone.Text;
acc.Telephone1 = tel.Text;
srv.AddObject(acc);
srv.SaveChanges();
alert.ForeColor = System.Drawing.Color.Green;
alert.Text = "با موفقیت ثبت شد";
}
}
and then when i run this code in my visual studio work correctly but when i run in iis i get this error
The Security Support Provider Interface (SSPI) negotiation failed.
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.ComponentModel.Win32Exception: The Security Support Provider Interface (SSPI) negotiation failed.
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.
Stack Trace:
[Win32Exception (0x80004005): The Security Support Provider Interface (SSPI) negotiation failed.]
System.ServiceModel.Security.WindowsSspiNegotiation.GetOutgoingBlob(Byte[] incomingBlob, ChannelBinding channelbinding, ExtendedProtectionPolicy protectionPolicy) +6115112
System.ServiceModel.Security.SspiNegotiationTokenProvider.GetNextOutgoingMessageBody(Message incomingMessage, SspiNegotiationTokenProviderState sspiState) +1325
System.ServiceModel.Security.IssuanceTokenProviderBase1.GetNextOutgoingMessage(Message incomingMessage, T negotiationState) +91
System.ServiceModel.Security.IssuanceTokenProviderBase1.DoNegotiation(TimeSpan timeout) +586
[SecurityNegotiationException: SOAP security negotiation with 'http://crm.tadbirgaranbm.com/TadbirgaranMellat/XRMServices/2011/Organization.svc' for target 'http://crm.tadbirgaranbm.com/TadbirgaranMellat/XRMServices/2011/Organization.svc' failed. See inner exception for more details.]
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +14489026
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +622
Microsoft.Xrm.Sdk.IOrganizationService.Execute(OrganizationRequest request) +0
Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.ExecuteCore(OrganizationRequest request) +892
Microsoft.Xrm.Sdk.Client.OrganizationServiceContext.Execute(OrganizationRequest request) +254
Microsoft.Xrm.Sdk.Client.OrganizationServiceContext.SaveChange(OrganizationRequest request, IList`1 results) +43
[SaveChangesException: An error occured while processing this request.]
Microsoft.Xrm.Sdk.Client.OrganizationServiceContext.SaveChanges(SaveChangesOptions options) +1791
crm.Reg.submit_Click(Object sender, EventArgs e) +790
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +155
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3804
this error occurs due to the time zone as the server is hosted on some other region which has a different time zone then the local timezone where the web application is running.
to solve this problem server have to manage the offset of every timezone and the simplest way to do it tom manage the time in UTC format. to learn more about UTC click here
I've just noticed that when running an application I periodically get an error message.
Server Error in '/' Application.
Buffer cannot be null.
Parameter name: buffer
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: Buffer cannot be null.
Parameter name: buffer
Stack trace:
[ArgumentNullException: Buffer cannot be null.
Parameter name: buffer]
System.IO.MemoryStream..ctor(Byte[] buffer, Boolean writable) +12627669
MemcachedProviders.Session.Common.Deserialize(HttpContext context, Byte[] serializedItems, Int32 timeout) +47
MemcachedProviders.Session.Db.SQLDbOperations.GetItem(String strSessionId, String strApplicationName, Int32 iTime, HttpContext context, Boolean lockRecord, Boolean& locked, TimeSpan& lockAge, Object& lockId, SessionStateActions& actionFlags) +1221
MemcachedProviders.Session.SessionStateProvider.GetItemExclusive(HttpContext context, String id, Boolean& locked, TimeSpan& lockAge, Object& lockId, SessionStateActions& actions) +1069
System.Web.SessionState.SessionStateModule.GetSessionStateItem() +178
System.Web.SessionState.SessionStateModule.PollLockedSessionCallback(Object state) +299
[HttpException (0x80004005): Exception of type 'System.Web.HttpException' was thrown.]
System.Web.SessionState.SessionStateModule.EndAcquireState(IAsyncResult ar) +11513726
System.Web.AsyncEventExecutionStep.OnAsyncEventCompletion(IAsyncResult ar) +107
Our application uses Enyim memcached and MemcachedProviders and runs in a load balanced environment.
The application does alot of managing of PDF reports and compiling of responses then generating a final report pdf. So we use streams quite a bit.
This problem only appears to affect our management application as we also expose a webservice and I never get the error when looking at the service definition and WSDL.
From looking at the session table in the DB I can see that they are being created but, many of them have null in the SessionItems field and the locked flag set to 1.
The data time stamps seem to correlate to the null buffer error occurances.
Is this a case of a buffer set incorrectly or maxing out?