Telerik Forums
Reporting Forum
7 answers
150 views
Visual Studio 2010 started erroring when loading the expression editor. 

I entered the log information into the devenv.exe.config but did not see any entries in the event viewer.  Should I be looking somewhere else?

Here is the error statistics from the debugger:

System.InvalidCastException was unhandled
  Message=Unable to cast COM object of type 'System.__ComObject' to interface type 'IAssemblyCache'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{E707DCDE-D1CD-11D2-BAB9-00C04F8ECEAE}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
  Source=mscorlib
  StackTrace:
    Server stack trace:
       at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, Boolean& pfNeedsRelease)
       at Microsoft.VisualStudio.NativeMethods.IAssemblyCache.QueryAssemblyInfo(UInt32 dwFlags, String pszAssemblyName, IntPtr pAsmInfo)
       at Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblyEntry.IsAssemblyInGAC(String assemblyNameWithArchitecture)
       at Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblyEntry.IsAssemblyInGAC()
       at Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblyEntry.get_Assembly()
       at Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblyEntry.Search(String fullName, String typeName, Boolean ignoreTypeCase, Boolean allowPrivate, Assembly& assembly, String description)
       at Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblyEntry.Search(String fullName, String typeName, Boolean ignoreTypeCase, Assembly& assembly, String description)
       at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchNormalEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly& assembly, Boolean fastSearch)
       at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreCase, Assembly& assembly, ReferenceType refType)
       at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, ReferenceType refType)
       at Microsoft.VisualStudio.Design.Serialization.CodeDom.AggregateTypeResolutionService.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
       at Microsoft.VisualStudio.Design.Serialization.CodeDom.AggregateTypeResolutionService.GetType(String name)
       at System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.GetType(String typeName)
       at Telerik.Reporting.Design.VisualStudio.VsInterop.DTEProjectItem.<>c__DisplayClass1.<GetTypes>b__0(CodeElement codeElement)
       at Telerik.Reporting.Design.VisualStudio.VsInterop.CodeElementVisitor.Visit(CodeElements codeElements)
       at Telerik.Reporting.Design.VisualStudio.VsInterop.CodeElementVisitor.Visit(ProjectItem projectItem)
       at Telerik.Reporting.Design.VisualStudio.VsInterop.DTEProjectItem.GetTypes(IDesignerHost host, Boolean recursive, TypeSearchCallback searchCallback)
       at Telerik.Reporting.Design.VisualStudio.ReportTypeResolver.GetReportType(IDesignerHost host)
       at Telerik.Reporting.Design.Common.ExpressionBuilder.CategoryAdapter.CreateHierarchy(IDesignerHost host, Boolean isFieldsTreeVisible)
       at Telerik.Reporting.Design.Common.ExpressionBuilder.ExpressionBuilderDialog.LoadCategories(IDesignerHost host)
       at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
       at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
    Exception rethrown at [0]:
       at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)
       at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)
       at Telerik.Reporting.Design.Common.ExpressionBuilder.ExpressionBuilderDialog.LoadCategoriesDelegate.EndInvoke(IAsyncResult result)
       at Telerik.Reporting.Design.Common.ExpressionBuilder.ExpressionBuilderDialog.OnLoadCategoriesComplete(IAsyncResult result)
       at System.Runtime.Remoting.Messaging.AsyncResult.SyncProcessMessage(IMessage msg)
       at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
       at System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.DoAsyncCall()
       at System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.ThreadPoolCallBack(Object o)
       at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
       at System.Threading.ThreadPoolWorkQueue.Dispatch()
       at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
  InnerException:
Lasse
Top achievements
Rank 1
 answered on 10 Sep 2015
3 answers
95 views

I am trying to create a project data source for in my reporting project as explained here http://www.telerik.com/help/reporting/data-source-how-to-add-project-data-source.html

Once I finish the wizard and compile, I loose the select command that I have used. If I click configure and go to the wizard again my select command is always empty. Please help.

Raja
Top achievements
Rank 1
 answered on 09 Sep 2015
3 answers
60 views

To meet some layout requirements for displaying a currency value i created a custom control that inherits from a Telerik.Reporting.Panel.
I added two textboxes to it, one left aligned with the currency symbol, one right aligned containing the actual value.
I added a Value (String) property to this custom control that merely gets/sets the Value property on the right aligned textbox inside the panel.

This works nicely, except when i add a binding. An error message states that the path 'Value' is not supported for binding.
I tried to solve this by adding a Bindable(True) attribute to the property declaration, but that doesn't help.

How can i make the Value property on this custom control be bindable?

Michael Bakker
Top achievements
Rank 2
 answered on 09 Sep 2015
3 answers
112 views

Hi Everyone,

I installed the Telerik Reporting Tools today including the Local Demos.

I opened the Examples Solution (CSharp.ReportExamples.VS2013) and had a look at a few reports.

Suddenly, Visual Studio started to feel sluggish and sometimes becomes unresponsive for minutes(!), or does not recover at all.

CPU Usage is up to 100% permanently (as long as VS is open - even after closing the Report File).

 

I did not modfiy any files in the Examples Project.

 

Any suggestions?

 

Thanks

Stef
Telerik team
 answered on 09 Sep 2015
4 answers
292 views

Silverlight project. This report has worked for many months so I'm not sure what has changed. I am re-doing the program so I have made changes but not so much in the report module.  There are many other reports (using different designers and data classes) in the same project that still work, so I do not believe it is a simple reference problem.

 When I run the report I hit the break-point at renderbegin, and my data class is initialized and performs its query with no errors.  The error must be occurring after the data is retrieved, which in this case is an empty list of objects so the report really has little to do data-wise.

 Here is the immediate window dump:

*** ReportProcessor.ProcessReport STARTED ***

*** ProcessReport #0 STARTED ***
An exception has occurred while processing 'ItemReport' item:
System.IO.FileNotFoundException: Could not load file or assembly 'System.Windows, Version=5.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified.
File name: 'System.Windows, Version=5.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'
   at System.Signature.GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType)
   at System.Signature..ctor(IRuntimeMethodInfo methodHandle, RuntimeType declaringType)
   at System.Reflection.RuntimeMethodInfo.FetchNonReturnParameters()
   at System.Reflection.RuntimeMethodInfo.GetParametersNoCopy()
   at System.Reflection.RuntimePropertyInfo.GetIndexParametersNoCopy()
   at System.Reflection.RuntimePropertyInfo.GetIndexParameters()
   at System.ComponentModel.ReflectTypeDescriptionProvider.ReflectGetProperties(Type type)
   at System.ComponentModel.ReflectTypeDescriptionProvider.ReflectedTypeData.GetProperties()
   at System.ComponentModel.TypeDescriptor.TypeDescriptionNode.DefaultTypeDescriptor.System.ComponentModel.ICustomTypeDescriptor.GetProperties()
   at System.ComponentModel.TypeDescriptor.GetProperties(Type componentType)
   at Telerik.Reporting.Processing.Data.ObjectDataDescriptorFactory.CreateDataDescriptor(IObjectDataProvider provider, IEnumerable enumerable)
   at Telerik.Reporting.Processing.Data.ObjectDataEnumerable.<EnumDataObjects>d__0.MoveNext()
   at Telerik.Reporting.Processing.Data.ResultSetAdapter.Fill(ResultSet resultSet, IEnumerable`1 data)
   at Telerik.Reporting.Processing.Data.SimpleDataProvider`1.Execute(MultidimensionalQuery query)
   at Telerik.Reporting.Processing.Report.ResolveData()
   at Telerik.Reporting.Processing.Report.ProcessItemCore()
   at Telerik.Reporting.Processing.Report.ProcessItem()
   at Telerik.Reporting.Processing.ReportItemBase.ProcessElement()
   at Telerik.Reporting.Processing.Report.ProcessElement()
   at Telerik.Reporting.Processing.ProcessingElement.Process(IDataMember dataContext)

=== Pre-bind state information ===
LOG: User = CPU-KEN\Ken
LOG: DisplayName = System.Windows, Version=5.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
 (Fully-specified)
LOG: Appbase = file:///C:/Documents and Settings/Ken/My Documents/Visual Studio 2010/Projects/MyProject/Project.Web/
LOG: Initial PrivatePath = C:\Documents and Settings\Ken\My Documents\Visual Studio 2010\Projects\MyProject\Project.Web\bin
Calling assembly : CCiRaterClassLibrary1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Documents and Settings\Ken\My Documents\Visual Studio 2010\Projects\MyProject\Project.Web\web.config
LOG: Using host configuration file: 
LOG: Using machine configuration file from c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: System.Windows, Version=5.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
LOG: The same bind was seen before, and was failed with hr = 0x80070002.

*** ProcessReport #0 DONE in 00:00:00.0934990 ***

*** ReportProcessor.ProcessReport DONE in 00:00:00.0956129 ***


*** RenderReport #0 STARTED ***
*** RenderReport #0 DONE in 00:00:00.0014451 ***

 Attached is screen shot showing the error:

Stef
Telerik team
 answered on 08 Sep 2015
1 answer
104 views

Hi,

I ​recently got upgraded to Visual Studio 2013 development platform from Visual Studio 2012. After this upgrade, I am not able to load the report designer view in the VS2013 IDE which was initially created using VS2012. Its giving some designer load error. Also, if I try to add any new report to the project, it is prompting "Error: Incorrect version" message. The version of Telerik, that I have recently upgraded to is Telerik Report Q1 2015.

Please help me out in resolving this issue.

 Thanks

Nasko
Telerik team
 answered on 08 Sep 2015
6 answers
661 views

I know this question has been asked many times, and I have read most of the posts, but so far I have not seen a reply that is applicable to my situation, so I'm going to ask it again.

I have several LightSwitch applications built using Visual Studio 2012, Telerik Reporting Q3 2013 7.2.13.1016, .NETFramework 4, Silverlight 5, and deployed to a Windows 2008 R2 server with IIS 7.

The reports fail in one of the applications on all computers except one. The reports were working fine for the last 2 years, until I deployed an update to a different LightSwitch application on the same server that also uses the same version of Telerik Reporting. All applications are deployed to separate application pools. The reports in the application I updated are working fine.

I re-deployed the application that the reports stopped working in using the original deployment package, and that did not fix the problem. I then re-built and re-deployed the application, and it still did not fix the problem. The reports in this application work fine on all of our development computers when the reports are run inside Visual Studio, but fail on all except the one computer mentioned above when launched directly from the browser. The reporting functions also fail on the server the application is deployed on. The reports fail with the following error: Error:

 

System.Reflection.TargetInvocationException : An exception occurred during the operation, making the result invalid.  Check InnerException for exception details.
   at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary()
   at Telerik.Reporting.Service.SilverlightClient.ListRenderingExtensionsEventArgs.get_Extensions()
   at Telerik.ReportViewer.Silverlight.ReportViewerModel.OnListRenderingExtensionsCompleted(Object sender, ListRenderingExtensionsEventArgs e)------------- InnerException: -------------System.ServiceModel.CommunicationException : The remote server returned an error: NotFound.
   at System.ServiceModel.Channels.Remoting.RealProxy.Invoke(Object[] args)
   at proxy_3.EndListRenderingExtensions(IAsyncResult )
   at Telerik.Reporting.Service.SilverlightClient.ReportServiceClient.OnEndListRenderingExtensions(IAsyncResult result)
   at System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)------------- InnerException: -------------System.Net.WebException : The remote server returned an error: NotFound.
   at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
   at System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)------------- InnerException: -------------System.Net.WebException : The remote server returned an error: NotFound.
   at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
   at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClassa.<EndGetResponse>b__9(Object sendState)
   at System.Net.Browser.AsyncHelper.<>c__DisplayClass4.<BeginOnUI>b__0(Object sendState)

 

I have also attached an image of the actual error screen from within the report viewer.

As suggested in one of the posts, I typed the address of the svc file on the server, and the service checks out fine.

Any insight as to what I can do to determine the cause and fix the problem would be greatly appreciated.

 

Jack​

 

Kenneth
Top achievements
Rank 2
Iron
 answered on 07 Sep 2015
8 answers
1.5K+ views
Hello again,
This forum has been very helpful.  I have a report with PictureBox control on it.  The report is bound to a data source and that data source includes an image from a SQL 2000 database.  I can successfully bind the PictureBox to the image by setting the PictureBox value to the data bound column of the image.

My problem is the image column this gets bound to is a nullable field.  When there is a null image returned in my data set, I receive an error stating the PictureBox can't be bound to a null field.  What is the best way to work arond this?  I'm thinking of dynamically adding the PictureBox to the report if an image exists but am not sure how to implement this.  thanks again!  Justin
Phil
Top achievements
Rank 1
 answered on 07 Sep 2015
1 answer
277 views
I am trying to create simple tabular report using telerik report wizard. When the wizard is finished it place a table in detail section with the values and headers of properties selected by me, earlier. When i try to run the report, it shows nothing but the header repeating itself. I tried to create the same report using Blank Report, but it also gave me same result. Though there is a twist, Once i create a Blank Report, bind it with same dataset and this time i ​drag and drop only the value fields to the detail section, i run the report and this time it shows data correctly. I have searched for this issue on your forums, tried some suggestion but none worked. I have attached both of the screenshots. I am trying to view this report on IE 8 and IE 9 as the project for which we want to purchase telerik reporting offers compatibility with IE 8 and IE 9. Please advise me the point i am missing.
Nasko
Telerik team
 answered on 07 Sep 2015
2 answers
119 views

I have a very small library which consists of a single class;

 public static class DateTimeFunctions
    {
        [Function(Category = "​xxx", Namespace = "​xxx", Description = "Get the start of current month")]
        public static DateTime StartOfMonth()
        {
            var now = DateTime.Now;
            return new DateTime(now.Year, now.Month, 1);
        }

        [Function(Category = "​xxx", Namespace = "xxx", Description = "Get the end of current month")]
        public static DateTime EndOfMonth()
        {
            return StartOfMonth().AddMonths(1) - TimeSpan.FromSeconds(1);
        }
    }

 In my app.config file I have the following:

 

configuration>
  <configSections>
    <section name="Telerik.Reporting"
             type="Telerik.Reporting.Configuration.ReportingConfigurationSection, Telerik.Reporting"
             allowLocation="true"
             allowDefinition="Everywhere"/>
  </configSections>

  <Telerik.Reporting>
    <AssemblyReferences>
      <add name="Name.Of.My.Assembly" version="1.0.0.0" culture="neutral" publicKeyToken="null" />
    </AssemblyReferences>
  </Telerik.Reporting>​

I have verified that both Telerik.Reporting.dll and my own assembly is located in the root folder of my applicattion.

 When I try to load the WPF ReportViewer component I get the following exception

Object reference not set to an instance of an object.

at Telerik.ReportViewer.Wpf.ReportViewerModel.ApplyValuesOnReportSource(ReportSource rs)
   at Telerik.ReportViewer.Wpf.ReportViewerModel.CreateReportSourceSnapshot(ReportSource source)
   at Telerik.ReportViewer.Wpf.ReportViewerModel.CreateHistoryRecord(ReportSource source, Boolean isTemporary)
   at Telerik.ReportViewer.Wpf.ReportViewerModel.LogHistory(ReportSource source, LogHistoryRecord logHistory, Boolean logTemporaryHistoryRecord)
   at Telerik.ReportViewer.Wpf.ReportViewerModel.RefreshReportCore(Boolean reloadParameters, LogHistoryRecord logHistory)
   at Telerik.ReportViewer.Wpf.ReportViewerModel.RefreshReport()
   at Telerik.ReportViewer.Wpf.ReportViewer.Refresh()
   at Telerik.ReportViewer.Wpf.ReportViewer.OnLoaded(Object sender, RoutedEventArgs e)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at MS.Internal.FrameworkObject.OnLoaded(RoutedEventArgs args)
   at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
   at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
   at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Interop.HwndTarget.OnResize()
   at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(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 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

Stef
Telerik team
 answered on 07 Sep 2015
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?