Last post Aug 24, 2017 01:53 PM by dlchase
Aug 23, 2017 08:33 PM|dlchase|LINK
I am using VS 2017 and was trying to use a function from a website created in VS 2010. I tried to add the following Imports statement at the top of a class and am getting an error "Namespace or type specified in the Imports 'Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution'
doesn't contain any public member or cannot be found...."
How can I use this process in the new website that is on the same IIS and using the same SQL 2012 Server?
Aug 24, 2017 05:46 AM|Deepak Panchal|LINK
are you trying to refer function from source project or complied project hosted on IIS.
I suggest you to create a DLL of that function and then try to add reference to that DLL.
in that way you can able to reference it to multiple projects.
follow the steps below:
to get detailed steps with pictures , please refer link below.
Creating DLL (Class Library) in .NET Framework
How to: Create and Use C# DLLs (C# Programming Guide)
Aug 24, 2017 01:11 PM|dlchase|LINK
Source project. What "function" are you referring to? I am getting errors on the Imports line at the top of the class. This is a SSRS library. As I mentioned, it works fine in a VS 2010 website on the same exact PC and IIS server and not sure why it
does not work in VS 2017 website.
Aug 24, 2017 01:53 PM|dlchase|LINK
Had to add a reference for Microsoft.ReportViewer.WebForms to the project.