J'ai créé mon projet sur Visual Studio 2008, ainsi que des fichiers RDLC sur celui-ci. Mais maintenant, quand j'ouvre la solution sur Visual Studio 2010 et que je veux ouvrir le fichier RDLC, il me montre un avertissement.Visual Studio 2010 demande de convertir RDLC créé sur VS2008 au format RDLC 2008?
C'est un peu drôle. Le rapport a été créé sur VS2008 et VS2010 demande à convertir au format 2008. Peut-être qu'il y avait un problème sur mon installation VS2008 qui a créé des fichiers RDLC en utilisant un format ancien (2005 ??!)
Le problème est, lorsque vous confirmez avec le bouton Ok, faire quelques ajustements de conception et exécuter l'application, il jette un erreur sur 'Rapport principal':
ex.InnerException
{"The definition of the report 'Main Report' is invalid."}
[Microsoft.Reporting.DefinitionInvalidException]: {"The definition of the report 'Main Report' is invalid."}
Data: {System.Collections.ListDictionaryInternal}
HelpLink: null
InnerException: {"The report definition is not valid. Details: The report definition has an invalid target namespace 'http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition' which cannot be upgraded."}
Message: "The definition of the report 'Main Report' is invalid."
Source: "Microsoft.ReportViewer.Common"
StackTrace: " at Microsoft.Reporting.ReportCompiler.CompileReport(CatalogItemContext context, Byte[] reportDefinition, Boolean generateExpressionHostWithRefusedPermissions, ReportSnapshotBase& snapshot)\r\n at Microsoft.Reporting.StandalonePreviewStore.StoredReport.CompileReport()\r\n at Microsoft.Reporting.StandalonePreviewStore.StoredReport.get_Snapshot()\r\n at Microsoft.Reporting.StandalonePreviewStore.GetCompiledReport(CatalogItemContext context, Boolean rebuild, ReportSnapshotBase& snapshot)\r\n at Microsoft.Reporting.LocalService.GetCompiledReport(CatalogItemContext itemContext, Boolean rebuild, ReportSnapshotBase& snapshot)\r\n at Microsoft.Reporting.LocalService.CompileReport(CatalogItemContext itemContext, Boolean rebuild)\r\n at Microsoft.Reporting.WinForms.LocalReport.CompileReport()"
TargetSite: {Microsoft.ReportingServices.ReportProcessing.PublishingResult CompileReport(Microsoft.ReportingServices.Diagnostics.CatalogItemContext, Byte[], Boolean, Microsoft.ReportingServices.Library.ReportSnapshotBase ByRef)}
Il semble que Visual Studio 2008 n'est pas compatible avec les fichiers RDLC SQL Server 2008? VS 2008 utilise toujours le schéma RDLC SQL Server 2005 tel qu'il se trouve sur mon fichier RDLC:
Et voici la définition correcte au format RDLC 2008: