microsoft / RdlMigration

Tool that converts RDL from a SQL Server Reporting Services Server or Power BI Report server and published to a Power BI premium workspace
MIT License
111 stars 44 forks source link

RdlMigration.ReportServerApi.IReportingService2010 #34

Open Kay-new opened 3 years ago

Kay-new commented 3 years ago

Getting this error when trying to compile code

error CS0266: Cannot implicitly convert type 'RdlMigration.ReportServerApi.ReportingService2010' to 'RdlMigration.ReportServerApi.IReportingService2010'. An explicit conversion exists (are you missing a cast?)

rabbani400 commented 3 years ago

Im getting the same error message. Were u able to resolve it?

charlesmeyer1 commented 3 years ago

Anyone figure this out?

kasavin commented 3 years ago

I was getting an error indicating that I needed the .NET 4.6.2 targeting pack. When I downloaded it, the build worked for me.

charlesmeyer1 commented 3 years ago

For those that are still having this issue, I found that indeed installing .NET 4.6.2 does help (with other issues). But the real fix for me was to change the URL in the ReportServerApi to point to my real report server. All instances of IReportingService2010 need to be renamed to ReportingService2010 in the code, but after I did that, it worked as expected. Hope that helps.