मैंने विजुअल स्टूडियो 2008 पर अपनी परियोजना बनाई है, साथ ही साथ आरडीएलसी फाइलें भी बनाई हैं। लेकिन अब, जब मैं विजुअल स्टूडियो 2010 पर समाधान खोलता हूं और आरडीएलसी फ़ाइल खोलना चाहता हूं, तो यह मुझे एक चेतावनी दिखा रहा है।विजुअल स्टूडियो 2010 आरएसएलसी को आरएसएलसी 2008 प्रारूप में आरएसएलसी में परिवर्तित करने के लिए कह रहा है?
यह थोड़ा मजाकिया है। रिपोर्ट वीएस -2008 और वीएस -2010 पर बनाई गई थी जिसे 2008 प्रारूप में परिवर्तित करने के लिए कहा जा रहा है। शायद मेरी वीएस -2008 स्थापना पर एक समस्या थी जिसने आरडीएलसी फाइलों को कुछ प्राचीन प्रारूप (2005 ??!)
समस्या तब होती है जब आप ओके बटन की पुष्टि करते हैं, कुछ डिज़ाइन समायोजन करते हैं और ऐप चलाते हैं, यह एक फेंकता है 'मुख्य रिपोर्ट' पर त्रुटि:
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)}
ऐसा लगता है कि विजुअल स्टूडियो 2008 SQL Server 2008 RDLC फ़ाइलों के साथ संगत नहीं है? वीएस 2008 अभी भी मेरी आरडीएलसी फाइल पर मिली SQL सर्वर 2005 आरडीएलसी स्कीमा का उपयोग कर रहा है:
और यहां है आरडीएलसी 2008 प्रारूप की सही परिभाषा: