Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sql Backplane: Nullable object must have a value in SqlReceiver.Receive #3350

Closed
ElanHasson opened this issue Nov 26, 2014 · 1 comment
Closed

Comments

@ElanHasson
Copy link

I see this in my event log and it prevents my app from running as it is executed in Startup class. This is only happening outside of my dev environment (as always, right?). I'm using latest nuget packages. Any help is appreciated.

I have configured tracing as defined in https://github.com/SignalR/SignalR/blob/master/samples/Microsoft.AspNet.SignalR.Samples/Web.config

Only bus.log is created and contains only this:

SignalR.SqlMessageBus Information: 0 : Start installing SignalR SQL objects SignalR.SqlMessageBus Information: 0 : SignalR SQL objects installed SignalR.ScaleoutMessageBus Information: 0 : Stream(0) - Changed state from Initial to Open

`Exception: System.InvalidOperationException

Message: Nullable object must have a value.

StackTrace: at Microsoft.AspNet.SignalR.SqlServer.SqlReceiver.Receive(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()`

Also from Event log:
`Fault bucket , type 0
Event Name: CLR20r3
Response: Not available
Cab Id: 0

Problem signature:
P1: w3wp.exe
P2: 8.5.9600.16384
P3: 5215df96
P4: Microsoft.AspNet.SignalR.SqlServer
P5: 2.1.30912.170
P6: 5412b3c9
P7: af
P8: bb
P9: System.InvalidOperationException
P10:
[...removed paths of dumps for brevity..Dump available if someone wants it...81 MB.]

@ElanHasson
Copy link
Author

The issue was due to me using Web Deploy and enabling the DB migrations from EF on deploy.

Deleting the database and unchecking the option made it work properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants