microsoft / sql-server-samples

Azure Data SQL Samples - Official Microsoft GitHub Repository containing code samples for SQL Server, Azure SQL, Azure Synapse, and Azure SQL Edge
Other
9.93k stars 8.84k forks source link

Type 'ReportingService2010' is not defined #412

Open MikeOtown opened 6 years ago

MikeOtown commented 6 years ago

When I run \samples\features\reporting-services\ssrs-migration-rss\ssrs_migration.ssrs, I get "Type 'ReportingService2010' is not defined":

rs.exe -i ssrs_migration.rss -s http://xxx:8888/ReportServer -u ReportViewer -p xxx -v f="/MikeDev" -v ts="http://xxx:8888/ReportServer" -v tu="ReportViewer" -v tp="xxx" -v tf="/test"

C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn> "C:\Windows\Microsoft.NET\Framework\v2.0.50727\vbc.exe" /t:exe /main:MainModule /utf8output /R:"System.dll" /R:"System.Xml.dll" /R:"System.Web.Services.dll" /R:"C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\rs.exe" /out:"C:\Users\Michael.Wasson\AppData\Local\Temp\jd5ga1za.exe" /debug- "C:\Users\Michael.Wasson\AppData\Local\Temp\jd5ga1za.0.vb" "C:\Users\Michael.Wasson\AppData\Local\Temp\jd5ga1za.1.vb"

Microsoft (R) Visual Basic Compiler version 8.0.50727.8745

for Microsoft (R) .NET Framework version 2.0.50727.8784

Copyright (c) Microsoft Corporation. All rights reserved.

C:\Users\Michael.Wasson\AppData\Local\Temp\jd5ga1za.1.vb(71) : error BC30002: Type 'ReportingService2010' is not defined.

Private RsSrc As ReportingService2010

             ~~~~~~~~~~~~~~~~~~~~

C:\Users\Michael.Wasson\AppData\Local\Temp\jd5ga1za.1.vb(78) : error BC30002: Type 'ReportingService2010' is not defined.

Private RsSnk As ReportingService2010

             ~~~~~~~~~~~~~~~~~~~~

C:\Users\Michael.Wasson\AppData\Local\Temp\jd5ga1za.1.vb(129) : error BC30002: Type 'ReportingService2010' is not defined.

mkmalensek commented 5 years ago

I'm running into the same thing. Did you ever figure out the solution?

wuttichaipomsua commented 5 years ago

i found same this issue.

ghost commented 3 years ago

Same here. Microsoft sucks.

matthiaslueken commented 5 months ago

For me specifying the endpoint fixed the issue:

rs.exe -e Mgmt2010 -i ssrs_migration.rss -s http://xxx:8888/ReportServer -u ReportViewer -p xxx -v f="/MikeDev" -v ts="http://xxx:8888/ReportServer" -v tu="ReportViewer" -v tp="xxx" -v tf="/test"