Error when I edit the screen at runtime - Object reference not set to an instance of an object - LightSwitch V2
-
Friday, April 20, 2012 2:00 PM
Error when I edit the screen at runtime - Object reference not set to an instance of an object - LightSwitch V2
see the recording of the error
http://screencast.com/t/xe1Uginl
All Replies
-
Friday, April 20, 2012 3:47 PM
You might try clearing the MEF cache as described here: http://social.msdn.microsoft.com/Forums/en-US/lightswitch/thread/99ce68e8-52b1-4bd5-b298-7f9159d18ff7
I seem to recall having a similar issue with V1 that was fixed by clearing the cache.
My Blog: dotnetlore.com Twitter: @DotNetLore
-
Friday, April 20, 2012 5:32 PM
Hi Jewel,
I cleared the cache and restarted the pc, but now is giving this error message:
The last change was not maintained successfully. Shut down the running application. Error: The running application uses a different version of application definition.
-
Friday, April 20, 2012 5:37 PM
Hmmmm... which version of visual studio did you clear the cache from?
%LOCALAPPDATA%\Microsoft\VisualStudio\10.0\ComponentModelCache
%LOCALAPPDATA%\Microsoft\VisualStudio\10.0\ManifestCacheor
%LOCALAPPDATA%\Microsoft\VisualStudio\11.0\ComponentModelCache
%LOCALAPPDATA%\Microsoft\VisualStudio\11.0\ManifestCacheMy Blog: dotnetlore.com Twitter: @DotNetLore
-
Friday, April 20, 2012 5:42 PMboth
-
Friday, April 20, 2012 6:01 PMSorry, not sure what else to suggest.
My Blog: dotnetlore.com Twitter: @DotNetLore
-
Friday, April 20, 2012 6:12 PM
Thanks for the help :)
-
Friday, April 20, 2012 10:31 PMModerator
Couple of questions:
- Does this problem happen all of the time? Most of the time? Sometimes?
- Does this problem only occur on this screen? Does it occur on other screens?
- If you switch back to using the Standard shell and theme, does the same problem occur?
- Just before you click the Save button, if you enable breaking on all exceptions (in VS, Debug->Exceptions...-> check on the Thrown check box next to Common Language Runtime Exceptions), what is the call stack (the call stack is one of the tool windows along the bottom of VS)? Be sure to uncheck this check box after you are done reporting the problem, otherwise you'll break into VS every time an exception occurs).
Justin Anderson, LightSwitch Development Team
-
Saturday, April 21, 2012 12:17 AM
Hi Justin,
1. Always happens on some screens
2. On some screens
3. I removed the cosmopolitam theme and shell put the Default theme and shell. the error stopped
-
Saturday, April 21, 2012 12:33 AMModeratorIf you do the 4th point, that would really help us in determining what the problem is.
Justin Anderson, LightSwitch Development Team
-
Saturday, April 21, 2012 3:18 AM
In call stack showing nothing, i try this form:
In Immediate window show this :
System.Windows.Data Error: BindingExpression path error: 'ViewModel' property not found on 'System.Windows.Controls.ContentControl' 'System.Windows.Controls.ContentControl' (HashCode=45409538). BindingExpression: Path='ViewModel.IsCharacters' DataItem='System.Windows.Controls.ContentControl' (HashCode=45409538); target element is 'System.Windows.Controls.ContentControl' (Name=''); target property is 'IsEnabled' (type 'System.Boolean')..
System.Windows.Data Error: BindingExpression path error: 'ViewModel' property not found on 'ControlProperty:HeightSizingMode: ScreenLayout' 'Microsoft.LightSwitch.RuntimeEdit.Implementation.PropertyPage.ScreenDesignerPropertyEntry' (HashCode=42067500). BindingExpression: Path='ViewModel.IsRowResizableDisplayName' DataItem='ControlProperty:HeightSizingMode: ScreenLayout' (HashCode=42067500); target element is 'System.Windows.Controls.CheckBox' (Name='chkIsColumnResizable'); target property is 'AutomationProperties.HelpText' (type 'System.String')..
System.Windows.Data Error: BindingExpression path error: 'ViewModel' property not found on 'ControlProperty:HeightSizingMode: ScreenLayout' 'Microsoft.LightSwitch.RuntimeEdit.Implementation.PropertyPage.ScreenDesignerPropertyEntry' (HashCode=42067500). BindingExpression: Path='ViewModel.IsRowResizableDisplayName' DataItem='ControlProperty:HeightSizingMode: ScreenLayout' (HashCode=42067500); target element is 'System.Windows.Controls.CheckBox' (Name='chkIsRowResizable'); target property is 'AutomationProperties.HelpText' (type 'System.String')..
System.Windows.Data Error: BindingExpression path error: 'ViewModel' property not found on 'System.Windows.Controls.ContentControl' 'System.Windows.Controls.ContentControl' (HashCode=5814408). BindingExpression: Path='ViewModel.IsCharacters' DataItem='System.Windows.Controls.ContentControl' (HashCode=5814408); target element is 'System.Windows.Controls.ContentControl' (Name=''); target property is 'IsEnabled' (type 'System.Boolean')..
System.Windows.Data Error: BindingExpression path error: 'ViewModel' property not found on 'ControlProperty:HeightSizingMode: grid' 'Microsoft.LightSwitch.RuntimeEdit.Implementation.PropertyPage.ScreenDesignerPropertyEntry' (HashCode=8873741). BindingExpression: Path='ViewModel.IsRowResizableDisplayName' DataItem='ControlProperty:HeightSizingMode: grid' (HashCode=8873741); target element is 'System.Windows.Controls.CheckBox' (Name='chkIsColumnResizable'); target property is 'AutomationProperties.HelpText' (type 'System.String')..
System.Windows.Data Error: BindingExpression path error: 'ViewModel' property not found on 'ControlProperty:HeightSizingMode: grid' 'Microsoft.LightSwitch.RuntimeEdit.Implementation.PropertyPage.ScreenDesignerPropertyEntry' (HashCode=8873741). BindingExpression: Path='ViewModel.IsRowResizableDisplayName' DataItem='ControlProperty:HeightSizingMode: grid' (HashCode=8873741); target element is 'System.Windows.Controls.CheckBox' (Name='chkIsRowResizable'); target property is 'AutomationProperties.HelpText' (type 'System.String')..
Justin I withdrew the answer because it does not solve the problem, we solve the problem using the cosmopolitam theme- Edited by Marden LR Saturday, April 21, 2012 3:30 AM
-
Monday, April 23, 2012 10:11 PM
Hi Justin,
the above post can help? we will try to solve the problem? I will not switch to the default thema because it works with normal
-
Friday, April 27, 2012 7:27 PM
Hi justin,
I trace the error with Fiddler, please take a look...
-
Friday, April 27, 2012 8:40 PMModerator
Here's what you need to do to get what I'm looking for:
- Do the steps that would reproduce the problem except for the final step in reproducing the problem.
- Go back to VS and check the Throw check box next to Common Language Runtime Exceptions in the Exceptions dialog.
- Go back to the running application and perform the final step that reproduces the problem.
If the problem occurs (because as we have established, it is not consistent reproducible), you'll definitely see where it occurs. VS will break on the line that is throwing the exception. It might even show a No Source Code Available window, but that's fine. What is really important is that you'll probably see a popup like this:
and what I'm looking for is the information in this tool window:
You don't have to take a screenshot; you can just select all of the lines and copy them.
Justin Anderson, LightSwitch Development Team
-
Saturday, April 28, 2012 1:13 AM
Please what am I doing wrong?? http://screencast.com/t/avma4dlI
I can not see the call stack window exceptions! -
Saturday, April 28, 2012 1:22 AMModerator
Maybe you need to have Just My Code disabled (do this right before the final step to reproduce the problem):
- In VS, Tools->Options...
- Select Debugging tree item
- Uncheck "Enable Just My Code (Managed only)"
In also notice that you run into the "Object reference not set to an instance of an object" message three times. So if you could grab the call stack for each thrown exception, that would be really helpful.
Justin Anderson, LightSwitch Development Team
-
Saturday, April 28, 2012 4:07 AM
Thanks for the help, here is the log of call stack,
> System.ServiceModel.dll!System.ServiceModel.AsyncResult.End<System.ServiceModel.Channels.ClientPollingDuplexDispatcher.PollAsyncResult>(System.IAsyncResult result) + 0x166 bytes
System.ServiceModel.PollingDuplex!System.ServiceModel.Channels.ClientPollingDuplexDispatcher.PollAsyncResult.End(System.IAsyncResult result) + 0x36 bytes
System.ServiceModel.PollingDuplex!System.ServiceModel.Channels.ClientPollingDuplexDispatcher.EndPoll(System.IAsyncResult result) + 0x105 bytes
System.ServiceModel.PollingDuplex!System.ServiceModel.Channels.ClientPollingDuplexDispatcher.OnPollComplete(System.IAsyncResult result) + 0x98 bytes
System.ServiceModel.dll!System.ServiceModel.AsyncResult.Complete(bool completedSynchronously) + 0xbe bytes
System.ServiceModel.dll!System.ServiceModel.AsyncResult.Complete(bool completedSynchronously, System.Exception exception) + 0x1c bytes
System.ServiceModel.PollingDuplex!System.ServiceModel.Channels.ClientPollingDuplexDispatcher.PollAsyncResult.OnRequestComplete(System.IAsyncResult result) + 0x12f bytes
System.ServiceModel.dll!System.ServiceModel.AsyncResult.Complete(bool completedSynchronously) + 0xbe bytes
System.ServiceModel.dll!System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.OnGetResponse(System.IAsyncResult result) + 0x100 bytes
System.Windows.dll!System.Net.Browser.ClientHttpWebRequest.InvokeGetResponseCallback.AnonymousMethod__18(object state2) + 0x11 bytes
mscorlib.dll!System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(object state) + 0x3e bytes
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) + 0x97 bytes
mscorlib.dll!System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() + 0x5a bytes
mscorlib.dll!System.Threading.ThreadPoolWorkQueue.Dispatch() + 0x1b3 bytes
mscorlib.dll!System.Threading._ThreadPoolWaitCallback.PerformWaitCallback() + 0x5 bytes
[Native to Managed Transition]
[Appdomain Transition]
[Native to Managed Transition]
System.Windows.Browser.dll!System.Windows.Browser.HtmlPage.VerifyThreadAndEnabled() + 0x78 bytes
System.Windows.Browser.dll!System.Windows.Browser.HtmlPage.Window.get() + 0x18 bytes
Microsoft.Data.Services.Client.LightSwitch!System.Data.Services.Http.ScriptXmlHttpRequest.CreateInstance(string typeName, object arg, out System.Windows.Browser.ScriptObject request) + 0xac bytes
Microsoft.Data.Services.Client.LightSwitch!System.Data.Services.Http.ScriptXmlHttpRequest.CreateNativeRequest() + 0xfe bytes
Microsoft.Data.Services.Client.LightSwitch!System.Data.Services.Http.ScriptXmlHttpRequest.ScriptXmlHttpRequest() + 0x37 bytes
Microsoft.Data.Services.Client.LightSwitch!System.Data.Services.Http.XHRHttpWebRequest.IsAvailable() + 0x47 bytes
Microsoft.Data.Services.Client.LightSwitch!System.Data.Services.Http.WebRequest.UriRequiresClientHttpWebRequest(System.Uri uri) + 0x34 bytes
Microsoft.Data.Services.Client.LightSwitch!System.Data.Services.Http.WebRequest.Create(System.Uri requestUri, System.Data.Services.Client.HttpStack httpStack) + 0xe0 bytes
Microsoft.Data.Services.Client.LightSwitch!System.Data.Services.Client.HttpWebRequestMessage.CreateRequest(Microsoft.Data.OData.HttpMethod method, System.Uri requestUrl, System.Data.Services.Client.RequestInfo requestInfo, System.Data.Services.Client.HttpStack httpStack) + 0x6a bytes
Microsoft.Data.Services.Client.LightSwitch!System.Data.Services.Client.HttpWebRequestMessage.HttpWebRequestMessage(System.Uri requestUri, Microsoft.Data.OData.HttpMethod httpMethod, System.Data.Services.Client.RequestInfo requestInfo, System.Data.Services.Client.HttpStack httpStack) + 0x73 bytes
Microsoft.Data.Services.Client.LightSwitch!System.Data.Services.Client.ODataRequestMessageWrapper.ODataRequestMessageWrapper(Microsoft.Data.OData.HttpMethod httpMethod, System.Uri requestUrl, System.Data.Services.Client.RequestInfo requestInfo, System.Data.Services.Client.HttpStack httpStack) + 0x55 bytes
Microsoft.Data.Services.Client.LightSwitch!System.Data.Services.Client.DataServiceContext.CreateODataRequestMessage(Microsoft.Data.OData.HttpMethod httpMethod, System.Uri requestUri, bool allowAnyType, System.Version requestVersion, System.Data.Services.Client.HttpStack httpStackArg, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string>> headers, System.Collections.Generic.IEnumerable<string> headersToReset) + 0x78 bytes
Microsoft.Data.Services.Client.LightSwitch!System.Data.Services.Client.DataServiceRequest.CreateResult(object source, System.Data.Services.Client.DataServiceContext context, System.AsyncCallback callback, object state, string method) + 0x2eb bytes
Microsoft.Data.Services.Client.LightSwitch!System.Data.Services.Client.DataServiceRequest.BeginExecute(object source, System.Data.Services.Client.DataServiceContext context, System.AsyncCallback callback, object state, string method) + 0x44 bytes
Microsoft.Data.Services.Client.LightSwitch!System.Data.Services.Client.DataServiceContext.InnerBeginExecute<int>(System.Uri requestUri, System.AsyncCallback callback, object state, Microsoft.Data.OData.HttpMethod httpMethod, string method, bool? singleResult, System.Data.Services.Client.OperationParameter[] operationParameters) + 0xfa bytes
Microsoft.Data.Services.Client.LightSwitch!System.Data.Services.Client.DataServiceContext.BeginExecute<int>(System.Uri requestUri, System.AsyncCallback callback, object state) + 0xa9 bytes
Microsoft.LightSwitch.Base.Client!Microsoft.LightSwitch.ClientGenerated.Implementation.OperationImplementation<int>.ExecuteGetOperation(Microsoft.LightSwitch.Framework.Base.ExecutableObject<int>.ExecutionWithResult execution, System.Uri operationUri) + 0xd9 bytes
Microsoft.LightSwitch.Base.Client!Microsoft.LightSwitch.ClientGenerated.Implementation.OperationImplementation<int>.DoExecution(Microsoft.LightSwitch.Framework.Base.ExecutableObject<int>.ExecutionWithResult execution) + 0x273 bytes
Microsoft.LightSwitch!Microsoft.LightSwitch.Framework.Base.ExecutableObject<int>.DoExecution(Microsoft.LightSwitch.Framework.Base.ExecutableObject.Execution execution) + 0x67 bytes
Microsoft.LightSwitch!Microsoft.LightSwitch.Framework.Base.ExecutableObject.ExecuteAsync(bool allowJoin) + 0x36a bytes
Microsoft.LightSwitch!Microsoft.LightSwitch.Framework.Base.ExecutableObject.ExecuteAsync() + 0x28 bytes
Microsoft.LightSwitch.Base.Client!Microsoft.LightSwitch.ClientGenerated.Implementation.DataServiceContext.Microsoft.LightSwitch.Internal.IDataServiceImplementationCore.BeginLoadEntitySetCanInformation(string entitySetName) + 0xce bytes
Microsoft.LightSwitch!Microsoft.LightSwitch.Details.Framework.Internal.CanInformation.BeginLoad(Microsoft.LightSwitch.IDataService dataService, Microsoft.LightSwitch.Model.IEntitySetDefinition entitySetDef) + 0xfe bytes
Microsoft.LightSwitch.Client!Microsoft.LightSwitch.Details.Framework.Client.ScreenDetails<LightSwitchApplication.RepasseDeParceiros,LightSwitchApplication.RepasseDeParceiros.DetailsClass>.Initialize(Microsoft.LightSwitch.Client.IClientApplication application, string modelId) + 0xa2b bytes
Microsoft.LightSwitch.Client!Microsoft.LightSwitch.Framework.Client.ScreenObject<LightSwitchApplication.RepasseDeParceiros,LightSwitchApplication.RepasseDeParceiros.DetailsClass>.ScreenObject(string modelId) + 0xd2 bytes
> Cdv.Client!LightSwitchApplication.RepasseDeParceiros.New() Line 32746 + 0x12 bytes Basic
Cdv.Client!LightSwitchApplication.RepasseDeParceiros.CreateInstance() Line 32754 + 0x19 bytes Basic
Cdv.Client!LightSwitchApplication.Application.DetailsClass.CreateScreen(String screenName, Object() args) Line 986 + 0x5 bytes Basic
Microsoft.LightSwitch.Client!Microsoft.LightSwitch.Details.Framework.Client.ClientApplicationDetails<LightSwitchApplication.Application,LightSwitchApplication.Application.DetailsClass>.RefreshScreen.AnonymousMethod__6a() + 0x67b bytes
Microsoft.LightSwitch!Microsoft.LightSwitch.Threading.DispatcherExtensions.Invoke(Microsoft.LightSwitch.Threading.IDispatcher dispatcher, System.Action action) + 0x13c bytes
Microsoft.LightSwitch.Client!Microsoft.LightSwitch.Details.Framework.Client.ClientApplicationDetails<LightSwitchApplication.Application,LightSwitchApplication.Application.DetailsClass>.RefreshScreen(Microsoft.LightSwitch.Client.IScreenObject screen) + 0xf8 bytes
Microsoft.LightSwitch.Client!Microsoft.LightSwitch.Details.Framework.Client.ClientApplicationDetails<LightSwitchApplication.Application,LightSwitchApplication.Application.DetailsClass>.Microsoft.LightSwitch.Details.Client.IClientApplicationDetails.RefreshScreen(Microsoft.LightSwitch.Client.IScreenObject screen) + 0x32 bytes
Microsoft.LightSwitch.RuntimeEditor.Internal!Microsoft.LightSwitch.RuntimeEdit.Implementation.ScreenDesignerHostService.Reset.AnonymousMethod__2() + 0x203 bytes
[Native to Managed Transition]
[Managed to Native Transition]
mscorlib.dll!System.Delegate.DynamicInvokeImpl(object[] args) + 0x6b bytes
System.Windows.dll!System.Windows.Threading.DispatcherOperation.Invoke() + 0x26 bytes
System.Windows.dll!System.Windows.Threading.Dispatcher.Dispatch(System.Windows.Threading.DispatcherPriority priority) + 0xd5 bytes
System.Windows.dll!System.Windows.Threading.Dispatcher.OnInvoke(object context) + 0xa bytes
System.Windows.dll!System.Windows.Hosting.CallbackCookie.Invoke(object[] args) + 0x16 bytes
System.Windows.RuntimeHost.dll!System.Windows.RuntimeHost.ManagedHost.InvokeDelegate(System.IntPtr pHandle, int nParamCount, System.Windows.Hosting.NativeMethods.ScriptParam[] pParams, ref System.Windows.Hosting.NativeMethods.ScriptParam pResult) + 0xe9 bytes
[Appdomain Transition]
> System.ServiceModel.dll!System.ServiceModel.AsyncResult.End<System.ServiceModel.Channels.DuplexChannel.HelpReceiveAsyncResult>(System.IAsyncResult result) + 0x166 bytes
System.ServiceModel.PollingDuplex!System.ServiceModel.Channels.DuplexChannel.HelpReceiveAsyncResult.End(System.IAsyncResult result) + 0x32 bytes
System.ServiceModel.PollingDuplex!System.ServiceModel.Channels.DuplexChannel.HelpEndReceive(System.IAsyncResult result) + 0x29 bytes
System.ServiceModel.PollingDuplex!System.ServiceModel.Channels.DuplexChannel.EndReceive(System.IAsyncResult result) + 0x28 bytes
Microsoft.LightSwitch.Client.Internal!Microsoft.LightSwitch.AppBridge.Implementation.Client.WebClientChannel.CompleteReceive(System.IAsyncResult result) + 0x7d bytes
Microsoft.LightSwitch.Client.Internal!Microsoft.LightSwitch.AppBridge.Implementation.Client.WebClientChannel.OnReceiveComplete(System.IAsyncResult result) + 0x45 bytes
System.ServiceModel.dll!System.ServiceModel.AsyncResult.Complete(bool completedSynchronously) + 0xbe bytes
System.ServiceModel.dll!System.ServiceModel.AsyncResult.Complete(bool completedSynchronously, System.Exception exception) + 0x1c bytes
System.ServiceModel.PollingDuplex!System.ServiceModel.Channels.DuplexChannel.HelpReceiveAsyncResult.OnReceive(System.IAsyncResult result) + 0xfe bytes
System.ServiceModel.dll!System.ServiceModel.AsyncResult.Complete(bool completedSynchronously) + 0xbe bytes
System.ServiceModel.dll!System.ServiceModel.AsyncResult.Complete(bool completedSynchronously, System.Exception exception) + 0x1c bytes
System.ServiceModel.PollingDuplex!System.ServiceModel.Channels.InputQueue<System.ServiceModel.Channels.Message>.AsyncQueueReader.Set(System.ServiceModel.Channels.InputQueue<System.ServiceModel.Channels.Message>.Item item) + 0x124 bytes
System.ServiceModel.PollingDuplex!System.ServiceModel.Channels.InputQueue<System.ServiceModel.Channels.Message>.Shutdown(System.ServiceModel.Channels.CommunicationObject communicationObject) + 0x2f6 bytes
System.ServiceModel.PollingDuplex!System.ServiceModel.Channels.InputQueueChannel<System.ServiceModel.Channels.Message>.OnFaulted() + 0x32 bytes
System.ServiceModel.dll!System.ServiceModel.Channels.CommunicationObject.Fault() + 0xb0 bytes
System.ServiceModel.PollingDuplex!System.ServiceModel.Channels.PollingDuplexSessionChannel.Fault() + 0x1d bytes
System.ServiceModel.PollingDuplex!System.ServiceModel.Channels.PollingDuplexSession.OnSessionInactive(object state) + 0x209 bytes
mscorlib.dll!System.Threading.TimerQueueTimer.CallCallbackInContext(object state) + 0x2c bytes
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) + 0x97 bytes
mscorlib.dll!System.Threading.TimerQueueTimer.CallCallback() + 0xbf bytes
mscorlib.dll!System.Threading.TimerQueueTimer.Fire() + 0xc0 bytes
mscorlib.dll!System.Threading.TimerQueue.FireQueuedTimerCompletion(object state) + 0x25 bytes
mscorlib.dll!System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() + 0x33 bytes
mscorlib.dll!System.Threading.ThreadPoolWorkQueue.Dispatch() + 0x1b3 bytes
mscorlib.dll!System.Threading._ThreadPoolWaitCallback.PerformWaitCallback() + 0x5 bytes
[Native to Managed Transition]
[Appdomain Transition]
[Native to Managed Transition]
> System.ServiceModel.dll!System.ServiceModel.Channels.CommunicationObject.ThrowIfDisposedOrNotOpen() + 0xd6 bytes
System.ServiceModel.PollingDuplex!System.ServiceModel.Channels.DuplexChannel.BeginSend(System.ServiceModel.Channels.Message message, System.TimeSpan timeout, System.AsyncCallback callback, object state) + 0x10a bytes
System.ServiceModel.PollingDuplex!System.ServiceModel.Channels.DuplexChannel.BeginSend(System.ServiceModel.Channels.Message message, System.AsyncCallback callback, object state) + 0x69 bytes
Microsoft.LightSwitch.Client.Internal!Microsoft.LightSwitch.AppBridge.Implementation.Client.WebClientChannel.SendInternal(Microsoft.LightSwitch.AppBridge.Internal.GenericMessage message) + 0xd7 bytes
Microsoft.LightSwitch.Client.Internal!Microsoft.LightSwitch.AppBridge.Implementation.Client.WebClientChannel.Send(Microsoft.LightSwitch.AppBridge.Internal.MessageBase message) + 0xb8 bytes
Microsoft.LightSwitch.Client.Internal!Microsoft.LightSwitch.AppBridge.Implementation.AppBridgeService.SendMessageInternal(Microsoft.LightSwitch.AppBridge.Internal.MessageBase message, bool sameThread) + 0x17b bytes
Microsoft.LightSwitch.Client.Internal!Microsoft.LightSwitch.AppBridge.Implementation.AppBridgeService.PostMessageEx(Microsoft.LightSwitch.AppBridge.Internal.MessageBase message, bool sameThread) + 0x53 bytes
Microsoft.LightSwitch.Client.Internal!Microsoft.LightSwitch.AppBridge.Implementation.AppBridgeService.SendMessageEx(Microsoft.LightSwitch.AppBridge.Internal.MessageBase message, int timeOut, bool sameThread) + 0xf9 bytes
Microsoft.LightSwitch.Client.Internal!Microsoft.LightSwitch.AppBridge.Implementation.AppBridgeService.SendMessage(Microsoft.LightSwitch.AppBridge.Internal.MessageBase message) + 0x56 bytes
Microsoft.LightSwitch.RuntimeEditor.Internal!Microsoft.LightSwitch.RuntimeEdit.Implementation.ScreenDesignerHostService.SendMessageWithRetry(Microsoft.LightSwitch.AppBridge.Internal.MessageBase message) + 0x64 bytes
Microsoft.LightSwitch.RuntimeEditor.Internal!Microsoft.LightSwitch.RuntimeEdit.Implementation.ScreenDesignerHostService.PostRemotePersistChanges(object arg) + 0x57e bytes
mscorlib.dll!System.Threading.ThreadHelper.ThreadStart_Context(object state) + 0x9c bytes
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) + 0x97 bytes
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x2a bytes
mscorlib.dll!System.Threading.ThreadHelper.ThreadStart(object obj) + 0x4a bytes
[Native to Managed Transition]
[Appdomain Transition]
[Native to Managed Transition]
Microsoft.Data.Services.Client.LightSwitch!System.Data.Services.Http.ScriptXmlHttpRequest.CreateNativeRequest() + 0x154 bytes
Microsoft.Data.Services.Client.LightSwitch!System.Data.Services.Http.ScriptXmlHttpRequest.ScriptXmlHttpRequest() + 0x37 bytes
Microsoft.Data.Services.Client.LightSwitch!System.Data.Services.Http.XHRHttpWebRequest.IsAvailable() + 0x47 bytes
Microsoft.Data.Services.Client.LightSwitch!System.Data.Services.Http.WebRequest.UriRequiresClientHttpWebRequest(System.Uri uri) + 0x34 bytes
Microsoft.Data.Services.Client.LightSwitch!System.Data.Services.Http.WebRequest.Create(System.Uri requestUri, System.Data.Services.Client.HttpStack httpStack) + 0xe0 bytes
Microsoft.Data.Services.Client.LightSwitch!System.Data.Services.Client.HttpWebRequestMessage.CreateRequest(Microsoft.Data.OData.HttpMethod method, System.Uri requestUrl, System.Data.Services.Client.RequestInfo requestInfo, System.Data.Services.Client.HttpStack httpStack) + 0x6a bytes
Microsoft.Data.Services.Client.LightSwitch!System.Data.Services.Client.HttpWebRequestMessage.HttpWebRequestMessage(System.Uri requestUri, Microsoft.Data.OData.HttpMethod httpMethod, System.Data.Services.Client.RequestInfo requestInfo, System.Data.Services.Client.HttpStack httpStack) + 0x73 bytes
Microsoft.Data.Services.Client.LightSwitch!System.Data.Services.Client.ODataRequestMessageWrapper.ODataRequestMessageWrapper(Microsoft.Data.OData.HttpMethod httpMethod, System.Uri requestUrl, System.Data.Services.Client.RequestInfo requestInfo, System.Data.Services.Client.HttpStack httpStack) + 0x55 bytes
Microsoft.Data.Services.Client.LightSwitch!System.Data.Services.Client.DataServiceContext.CreateODataRequestMessage(Microsoft.Data.OData.HttpMethod httpMethod, System.Uri requestUri, bool allowAnyType, System.Version requestVersion, System.Data.Services.Client.HttpStack httpStackArg, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string>> headers, System.Collections.Generic.IEnumerable<string> headersToReset) + 0x78 bytes
Microsoft.Data.Services.Client.LightSwitch!System.Data.Services.Client.DataServiceRequest.CreateResult(object source, System.Data.Services.Client.DataServiceContext context, System.AsyncCallback callback, object state, string method) + 0x2eb bytes
Microsoft.Data.Services.Client.LightSwitch!System.Data.Services.Client.DataServiceRequest.BeginExecute(object source, System.Data.Services.Client.DataServiceContext context, System.AsyncCallback callback, object state, string method) + 0x44 bytes
Microsoft.Data.Services.Client.LightSwitch!System.Data.Services.Client.DataServiceContext.InnerBeginExecute<int>(System.Uri requestUri, System.AsyncCallback callback, object state, Microsoft.Data.OData.HttpMethod httpMethod, string method, bool? singleResult, System.Data.Services.Client.OperationParameter[] operationParameters) + 0xfa bytes
Microsoft.Data.Services.Client.LightSwitch!System.Data.Services.Client.DataServiceContext.BeginExecute<int>(System.Uri requestUri, System.AsyncCallback callback, object state) + 0xa9 bytes
Microsoft.LightSwitch.Base.Client!Microsoft.LightSwitch.ClientGenerated.Implementation.OperationImplementation<int>.ExecuteGetOperation(Microsoft.LightSwitch.Framework.Base.ExecutableObject<int>.ExecutionWithResult execution, System.Uri operationUri) + 0xd9 bytes
Microsoft.LightSwitch.Base.Client!Microsoft.LightSwitch.ClientGenerated.Implementation.OperationImplementation<int>.DoExecution(Microsoft.LightSwitch.Framework.Base.ExecutableObject<int>.ExecutionWithResult execution) + 0x273 bytes
Microsoft.LightSwitch!Microsoft.LightSwitch.Framework.Base.ExecutableObject<int>.DoExecution(Microsoft.LightSwitch.Framework.Base.ExecutableObject.Execution execution) + 0x67 bytes
Microsoft.LightSwitch!Microsoft.LightSwitch.Framework.Base.ExecutableObject.ExecuteAsync(bool allowJoin) + 0x36a bytes
Microsoft.LightSwitch!Microsoft.LightSwitch.Framework.Base.ExecutableObject.ExecuteAsync() + 0x28 bytes
Microsoft.LightSwitch.Base.Client!Microsoft.LightSwitch.ClientGenerated.Implementation.DataServiceContext.Microsoft.LightSwitch.Internal.IDataServiceImplementationCore.BeginLoadEntitySetCanInformation(string entitySetName) + 0xce bytes
Microsoft.LightSwitch!Microsoft.LightSwitch.Details.Framework.Internal.CanInformation.BeginLoad(Microsoft.LightSwitch.IDataService dataService, Microsoft.LightSwitch.Model.IEntitySetDefinition entitySetDef) + 0xfe bytes
Microsoft.LightSwitch.Client!Microsoft.LightSwitch.Details.Framework.Client.ScreenDetails<LightSwitchApplication.RepasseDeParceiros,LightSwitchApplication.RepasseDeParceiros.DetailsClass>.Initialize(Microsoft.LightSwitch.Client.IClientApplication application, string modelId) + 0xa2b bytes
Microsoft.LightSwitch.Client!Microsoft.LightSwitch.Framework.Client.ScreenObject<LightSwitchApplication.RepasseDeParceiros,LightSwitchApplication.RepasseDeParceiros.DetailsClass>.ScreenObject(string modelId) + 0xd2 bytes
> Cdv.Client!LightSwitchApplication.RepasseDeParceiros.New() Line 32746 + 0x12 bytes Basic
Cdv.Client!LightSwitchApplication.RepasseDeParceiros.CreateInstance() Line 32754 + 0x19 bytes Basic
Cdv.Client!LightSwitchApplication.Application.DetailsClass.CreateScreen(String screenName, Object() args) Line 986 + 0x5 bytes Basic
Microsoft.LightSwitch.Client!Microsoft.LightSwitch.Details.Framework.Client.ClientApplicationDetails<LightSwitchApplication.Application,LightSwitchApplication.Application.DetailsClass>.RefreshScreen.AnonymousMethod__6a() + 0x67b bytes
Microsoft.LightSwitch!Microsoft.LightSwitch.Threading.DispatcherExtensions.Invoke(Microsoft.LightSwitch.Threading.IDispatcher dispatcher, System.Action action) + 0x13c bytes
Microsoft.LightSwitch.Client!Microsoft.LightSwitch.Details.Framework.Client.ClientApplicationDetails<LightSwitchApplication.Application,LightSwitchApplication.Application.DetailsClass>.RefreshScreen(Microsoft.LightSwitch.Client.IScreenObject screen) + 0xf8 bytes
Microsoft.LightSwitch.Client!Microsoft.LightSwitch.Details.Framework.Client.ClientApplicationDetails<LightSwitchApplication.Application,LightSwitchApplication.Application.DetailsClass>.Microsoft.LightSwitch.Details.Client.IClientApplicationDetails.RefreshScreen(Microsoft.LightSwitch.Client.IScreenObject screen) + 0x32 bytes
Microsoft.LightSwitch.RuntimeEditor.Internal!Microsoft.LightSwitch.RuntimeEdit.Implementation.ScreenDesignerHostService.Reset.AnonymousMethod__2() + 0x203 bytes
[Native to Managed Transition]
[Managed to Native Transition]
mscorlib.dll!System.Delegate.DynamicInvokeImpl(object[] args) + 0x6b bytes
System.Windows.dll!System.Windows.Threading.DispatcherOperation.Invoke() + 0x26 bytes
System.Windows.dll!System.Windows.Threading.Dispatcher.Dispatch(System.Windows.Threading.DispatcherPriority priority) + 0xd5 bytes
System.Windows.dll!System.Windows.Threading.Dispatcher.OnInvoke(object context) + 0xa bytes
System.Windows.dll!System.Windows.Hosting.CallbackCookie.Invoke(object[] args) + 0x16 bytes
System.Windows.RuntimeHost.dll!System.Windows.RuntimeHost.ManagedHost.InvokeDelegate(System.IntPtr pHandle, int nParamCount, System.Windows.Hosting.NativeMethods.ScriptParam[] pParams, ref System.Windows.Hosting.NativeMethods.ScriptParam pResult) + 0xe9 bytes
[Appdomain Transition] -
Saturday, April 28, 2012 9:27 PMModeratorI think those call stacks are for exceptions that are not NullReferenceExceptions. The ones above occur because communication from the application back to VS timed out. I just want the call stacks for the NullReferenceExceptions.
Justin Anderson, LightSwitch Development Team
-
Sunday, April 29, 2012 2:44 AM
System.NullReferenceException occurred
Message=Object reference not set to an instance of an object.
StackTrace:
em Microsoft.LightSwitch.Cosmopolitan.Model.ScreenModel.DelayedDispatcherBusyListener.ResetTimer()
InnerException:> Microsoft.LightSwitch.Cosmopolitan.Client!Microsoft.LightSwitch.Cosmopolitan.Model.ScreenModel.DelayedDispatcherBusyListener.ResetTimer() + 0x39 bytes
Microsoft.LightSwitch.Cosmopolitan.Client!Microsoft.LightSwitch.Cosmopolitan.Model.ScreenModel.DelayedDispatcherBusyListener.Dispatcher_IsProcessingChanged.AnonymousMethod__6() + 0x1d bytes
[Native to Managed Transition]
[Managed to Native Transition]
mscorlib.dll!System.Delegate.DynamicInvokeImpl(object[] args) + 0x6b bytes
System.Windows.dll!System.Windows.Threading.DispatcherOperation.Invoke() + 0x26 bytes
System.Windows.dll!System.Windows.Threading.Dispatcher.Dispatch(System.Windows.Threading.DispatcherPriority priority) + 0xd5 bytes
System.Windows.dll!System.Windows.Threading.Dispatcher.OnInvoke(object context) + 0xa bytes
System.Windows.dll!System.Windows.Hosting.CallbackCookie.Invoke(object[] args) + 0x16 bytes
System.Windows.RuntimeHost.dll!System.Windows.RuntimeHost.ManagedHost.InvokeDelegate(System.IntPtr pHandle, int nParamCount, System.Windows.Hosting.NativeMethods.ScriptParam[] pParams, ref System.Windows.Hosting.NativeMethods.ScriptParam pResult) + 0xe9 bytes
[Appdomain Transition] -
Wednesday, May 09, 2012 9:38 AMModerator
We identified this particular issue not too long ago, but found it after releasing the Beta of the Cosmopolitan shell. It should be fixed in the next release. Thanks for reporting it though.
Please let us know if there are different call stacks for the other NullReferenceException instances.
Justin Anderson, LightSwitch Development Team
- Proposed As Answer by Simon Jones [MSDL] Sunday, May 13, 2012 6:52 AM
- Marked As Answer by Justin AndersonMicrosoft Employee, Moderator Monday, May 21, 2012 11:48 PM
-
Wednesday, May 09, 2012 12:05 PM
@Justin...
Perhaps unrelated to this specific bug, but I have this issue as well.
I have two accounts on my pc: work & personal. On the one account, I can use LightSwitch and edit screens at runtime, on the other account I can use LightSwitch but editing the screens at runtime throws the same exception.
Do you think this is a separate cause, and worth logging a bug for?
It's your story - time to switch on the innovation. || About me || LightSwitch blog
-
Thursday, May 10, 2012 8:27 PMModeratorIs it the same call stack that Marden LR is reporting? If it is, it's the same issue and not worth logging a bug for it.
Justin Anderson, LightSwitch Development Team

