This is a migrated thread and some comments may be shown as answers.

Deployment error IIS7

2 Answers 207 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Pablo Tola
Top achievements
Rank 2
Pablo Tola asked on 25 Feb 2010, 04:50 AM
I'm getting this error on my production server, everything works fine on my dev machine. Any ideas?

It's a silverlight application using the silverlight report viewer.

Windows 2008 server IIS7

Error Message: An exception occurred during the operation, making the result invalid.  Check InnerException for exception details.
Error InnerException: System.ServiceModel.CommunicationException: The remote server returned an error: NotFound. ---> System.Net.WebException: The remote server returned an error: NotFound. ---> System.Net.WebException: The remote server returned an error: NotFound.
   at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
   at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClass5.<EndGetResponse>b__4(Object sendState)
   at System.Net.Browser.AsyncHelper.<>c__DisplayClass2.<BeginOnUI>b__0(Object sendState)
   --- End of inner exception stack trace ---
   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)
   --- End of inner exception stack trace ---
   at System.ServiceModel.Channels.Remoting.RealProxy.Invoke(Object[] args)
   at proxy_2.EndListRenderingExtensions(IAsyncResult )
   at Telerik.Reporting.Service.SilverlightClient.ReportServiceClient.OnEndListRenderingExtensions(IAsyncResult result)
   at System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)
Error StackTrace:    at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary()
   at Telerik.Reporting.Service.SilverlightClient.ListRenderingExtensionsEventArgs.get_Extensions()
   at Telerik.ReportViewer.Silverlight.ReportViewerModel.OnListRenderingExtensionsCompleted(Object sender, ListRenderingExtensionsEventArgs e)
   at Telerik.Reporting.Service.SilverlightClient.ReportServiceClient.OnListRenderingExtensionsCompleted(Object state)

2 Answers, 1 is accepted

Sort by
0
Pablo Tola
Top achievements
Rank 2
answered on 25 Feb 2010, 05:11 AM
Ok, I managed to solve this one, turns out I was missing the Telerik.Reporting dll in the bin folder.

Now I get another message when trying to render the report:

Error: XAML rendering format is not available.

Attached is a screen shot.

Heres the code:

<telerik:ReportViewer Grid.Row="1" x:Name="ReportViewer1"   
telerikControls:StyleManager.Theme="Vista" 
ReportServiceUri="/Services/ReportService.svc"></telerik:ReportViewer> 
 

        void ReportViewer_Loaded(object sender, RoutedEventArgs e)  
        {  
            var job = (Job)DataContext;  
            switch (ReportType)  
            {  
                case ReportType.Estimate:  
                    Estimate = job.EstimateList.Where(o => o.Id.Equals(ReportObjectId)).FirstOrDefault();  
                    DisplayOptionsList = StringToEnums.GetDisplayOptions(Estimate.DisplayOptions);  
 
                    ReportViewer1.Report = "ServusXchange.MyOnlineToolbox.Reporting.Estimate, ServusXchange.MyOnlineToolbox.Reporting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null";  
                    break;  
 
                case ReportType.Invoice:  
                    Invoice = job.InvoiceList.Where(o => o.Id.Equals(ReportObjectId)).FirstOrDefault();  
                    DisplayOptionsList = StringToEnums.GetDisplayOptions(Invoice.DisplayOptions);  
 
                    ReportViewer1.Report = "ServusXchange.MyOnlineToolbox.Reporting.Invoice, ServusXchange.MyOnlineToolbox.Reporting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null";  
                    break;  
            }  
            ((ReportViewerModel)(ReportViewer1.DataContext)).ApplyReportParametersCommand.Execute(null);  
        }  
 
        void ReportViewer1_RenderBegin(object sender, Telerik.ReportViewer.Silverlight.RenderBeginEventArgs args)  
        {  
            switch (ReportType)  
            {  
                case ReportType.Estimate:  
                    args.ParameterValues["EstimateId"] = ReportObjectId;  
                    break;  
 
                case ReportType.Invoice:  
                    args.ParameterValues["InvoiceId"] = ReportObjectId;  
                    break;  
            }  
            args.ParameterValues["DisplayRate"] = DisplayOptionsList.Contains(DisplayOptions.TaskRate);  
            args.ParameterValues["DisplayQuantity"] = DisplayOptionsList.Contains(DisplayOptions.TaskQuantity);  
            args.ParameterValues["DisplayTaskTotal"] = DisplayOptionsList.Contains(DisplayOptions.TaskTotal);  
            args.ParameterValues["DisplayMaterialQuantity"] = DisplayOptionsList.Contains(DisplayOptions.MaterialQuantity);  
            args.ParameterValues["DisplayMaterialTotal"] = DisplayOptionsList.Contains(DisplayOptions.MaterialTotal);  
            args.ParameterValues["DisplayMaterialUnitPrice"] = DisplayOptionsList.Contains(DisplayOptions.MaterialPrice);  
            args.ParameterValues["DisplayMaterials"] = DisplayOptionsList.Contains(DisplayOptions.Materials);  
            args.ParameterValues["DisplayExpenseAmount"] = DisplayOptionsList.Contains(DisplayOptions.ExpenseAmount);  
            args.ParameterValues["DisplayExpenses"] = DisplayOptionsList.Contains(DisplayOptions.Expenses);  
        }  
 
0
Pablo Tola
Top achievements
Rank 2
answered on 25 Feb 2010, 05:33 AM
Never mind, I found the problem, again, a missing dll on the web application. This time the xaml rendering dll.

I need to pay more attention to the docs...

thanks.
Tags
General Discussions
Asked by
Pablo Tola
Top achievements
Rank 2
Answers by
Pablo Tola
Top achievements
Rank 2
Share this question
or