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

Avatar
Search
Forum Scope


Match



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
Avatar
Vivek Bhardwaj
New Member
Members
Forum Posts: 1
Member Since:
02/26/2020
sp_UserOfflineSmall Offline
1
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.

Thanks.

Forum Timezone: America/Phoenix
Most Users Ever Online: 202
Currently Online: Randy Armstrong
Guest(s) 26
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 9
Topics: 796
Posts: 2359