Exception while running application (OPC Client) after so many days|Miscellaneous|Forum|OPC Foundation

Forum Scope


Forum Options

Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
Exception while running application (OPC Client) after so many days
Vivek Bhardwaj
New Member
Forum Posts: 1
Member Since:
sp_UserOfflineSmall Offline
05/27/2020 - 01:35
sp_Permalink sp_Print

Hello Sir,

I have developed a OPC UA Client WinForm based .NET application (Visual Studio 2017). It was working fine earlier. No exceptions.
Now after approx 1.5 months, I tried to run the application/Start, it's throwing an exception: " System.InvalidCastException: 'Unable to cast object of type 'System.IO.FileNotFoundException' to type 'Opc.Ua.ServiceResultException'' ".

This exception has occurred me earlier too. When my OPC client application was ready and was getting connected to OPC server too, then after few days, this same exception came. I installed the certificates again and copied all the project files and placed it somewhere else in the directory. Somehow it started working again. I don't know how.

Why I am getting this error? Is it related to certificate re-installation? and what does opc.ua.certificategenerator.exe does ?

Can anyone help me here. It will be huge help to me.

PS: I am using OPC Foundation.

Thank you in advance.


Forum Timezone: America/Phoenix
Most Users Ever Online: 202
Currently Online: Andrew Tarakin, Vlastimil Pohoralek
Guest(s) 22
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1219
Posts: 4064