Click here to Skip to main content
16,019,618 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
The following code is working when run on windows7 and windows10 but it fails on windows2016 server.


RS2005.ReportingService2005 rs = new RS2005.ReportingService2005();

When the program hits the line above (when run on windows2016), it immediately drops to the catch section with the following error:

The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)

Has anyone seen this before?

Thanks in advance for your help
Tom Altonji

What I have tried:

I've tried compiling the code on the windows2016 server after reinstalling the web references in the applications. The application compiles without error but still gives the same error. I'm using VS 2019, .Net 4.8, SqlServer 2016.
Posted
Updated 31-Aug-20 20:10pm
Comments
ZurdoDev 31-Aug-20 15:46pm    
Just a guess but the dlls for ReportingServcie 2005 are not on that machine.

1 solution

The entire error would be:
Quote:
Could not load file or assembly ‘[assembly name]’ or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))

Given above, as pointed by @ZurdoDev, most likely you are missing Assembly: ReportService2005.dll

Please make sure it is present on the system and then try out.

Also, for similar error, if assembly is at the desired location, seems handful of people got it resolved[^] by cleaning the temporary folder used by Visual Studio:
C:\Users\[CurrentUserAccount]\AppData\Local\Temp\Temporary ASP.NET Files\
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900