AR11 PanModeBehavior Error

Posted by: DennisB on 8 November 2017, 3:08 pm EST

  • Posted 8 November 2017, 3:08 pm EST

    We are getting the following error in Active Reports v11.1.9726.0.

    The type initializer for ‘GrapeCity.ActiveReports.Framework.Implementation.PanModeBehavior’ threw an exception. —> System.IO.IOException: The directory name is invalid.

    This seems to only occur with certain windows users.

    Other windows users can log into the same machine and the reports will work fine.

    Is there a known issue and/or is there a way to fix it?

  • Posted 8 November 2017, 3:11 pm EST

    Full exception text:

    An exception has been caught

    System.TypeInitializationException: The type initializer for ‘GrapeCity.ActiveReports.Framework.Implementation.PanModeBehavior’ threw an exception. —> System.IO.IOException: The directory name is invalid.

    at System.IO.Error.WinIOError(Int32 errorCode, String maybeFullPath)

    at System.IO.Path.InternalGetTempFileName(Boolean checkHost)

    at System.Windows.Input.Cursor.LoadFromStream(Stream cursorStream)

    at GrapeCity.ActiveReports.Framework.Implementation.PanModeBehavior…cctor()

    — End of inner exception stack trace —

    at GrapeCity.ActiveReports.Framework.Implementation.PanModeBehavior.OnIsEnabledChanged(Boolean isEnabled)

    at GrapeCity.ActiveReports.Framework.Implementation.ScrollBehavior.OnIsEnabledChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)

    at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

    at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)

    at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)

    at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)

    at GrapeCity.ActiveReports.Viewer.Wpf.View.SinglePageViewer.UpdateBehaviors()

    at GrapeCity.Viewer.Common.Model.ActiveModelListenExtensions.<>cDisplayClass5

    2.<Listen>b__4(String propertyName)    at System.ComponentModel.PropertyChangedEventHandler.Invoke(Object sender, PropertyChangedEventArgs e)    at GrapeCity.Viewer.Common.Model.ActiveModel.RaisePropertyChanged(String propertyName)    at GrapeCity.Viewer.Common.ViewModel.ViewTypeViewModel.set_IsUIEnabled(Boolean value)    at GrapeCity.Viewer.Common.ViewModel.ViewTypeViewModel.<SubscribeToModelChange>b7()    at GrapeCity.Viewer.Common.Model.ActiveModelListenExtensions.<>cDisplayClass5
    2.b__4(String propertyName)

    at System.ComponentModel.PropertyChangedEventHandler.Invoke(Object sender, PropertyChangedEventArgs e)

    at GrapeCity.Viewer.Common.Model.ActiveModel.RaisePropertyChanged(String propertyName)

    at GrapeCity.Viewer.Common.Model.DocumentModel.set_PageCount(Nullable
    1 value)    at GrapeCity.ActiveReports.Viewer.Win.Rdf.RdfDocumentReportBase.SetPageCountAndSize(RdfDocumentModel model, Int32 count, Size maxPageSize)    at GrapeCity.ActiveReports.Viewer.Win.Rdf.RdfDocumentReportBase.<>cDisplayClass11.<>cDisplayClass15.<LoadImpl>b__6(Object _)    at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)    at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)    at System.Windows.Threading.DispatcherOperation.InvokeImpl()    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.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)    at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)    at System.Windows.Threading.DispatcherOperation.Invoke()    at System.Windows.Threading.Dispatcher.ProcessQueue()    at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)    at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)    at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)    at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)    at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)    at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)    at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)    at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)    at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)    at System.Windows.Window.ShowHelper(Object booleanBox)    at System.Windows.Window.ShowDialog()    at Alliance.Infrastructure.Dialogs.ExceptionViewer.Show(Exception exception, String message, Boolean EnableSendToSupport)    at Alliance.Infrastructure.EventLogger.<>cDisplayClass6.<LogException>b1()    at System.Windows.Threading.Dispatcher.Invoke(Action callback, DispatcherPriority priority, CancellationToken cancellationToken, TimeSpan timeout)    at System.Windows.Threading.Dispatcher.Invoke(Action callback)    at Alliance.Infrastructure.EventLogger.LogException(Exception exception, MethodBase methodbase, String source, String title, Dictionary
    2 contextInfo, Boolean silent, Boolean enableSendToSupport, Int32 customerId)

    System.IO.IOException: The directory name is invalid.

    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

    at System.IO.Path.InternalGetTempFileName(Boolean checkHost)

    at System.Windows.Input.Cursor.LoadFromStream(Stream cursorStream)

    at GrapeCity.ActiveReports.Framework.Implementation.PanModeBehavior…cctor()

  • Posted 9 November 2017, 3:10 am EST

    Hello,

    From the exception " System.IO.IOException: The directory name is invalid", we understand that there must be the path related problem. Please make sure the all windows users have access to the all resources which are used in report.

    If problem still exits, please share with us the sample report to reproduce the issue at our end.

    Thanks,

    Mohit

  • Posted 10 November 2017, 12:11 pm EST

    All domain users are an administrator on that Virtual Machine, so that shouldn’t be the issue.

    Thanks,

    Dennis

  • Posted 10 November 2017, 12:17 pm EST

    There is no way possible to “share a sample project” for this type of error.

    Some users will get the error and some will not on the same VM.

    Thanks,

    Dennis

  • Posted 10 November 2017, 1:00 pm EST

    We ran some tests on the two Virtual Machines giving us problems.

    It appears to be something about the user account control on those machines.

    Both machines are running Windows Server 2012 R2 Standard.

    The UAC setting is the same and has not been changed from the default for any user.

    I changed the application shortcut to always run as administrator, even though everyone is already an administrator of those PCs.

    Before this change, some users could run reports in the application and some could not.

    There was no specific report this was an issue in, it was all reports inside the application.

    The change to run the application as administrator did allow them to run the reports.

    However, this is a huge windows security issue. We can’t ask all of our customers to set their users up as administrators on every PC!

    We need a fix to this issue badly.

    Thanks,

    Dennis

  • Posted 15 November 2017, 2:19 am EST

    Hello,

    We are sorry, it is not possible to replicate the issue at our end without any steps or sample. Could you please elaborate in detail about your application, way to use it and at what step exception is occurs?

    Also, could you please recheck with a simplified AR application? And it will be very helpful for us to replicate the issue if you can share a demo application which shows the same issue.

    Thanks,

    Mohit

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels