Unhandled exception : 'Could not load type 'S7.Net.Plc' from assembly 'S7.net, Version=1.0.0.0, Culture=neutral,

Yash89

New member
Joined
May 9, 2023
Messages
2
Programming Experience
1-3
Hello All,

I am facing an issue with this exception and need your support to resolve.

S7.Net.Plc' from assembly 'S7.net, Version=1.0.0.0, Culture=neutral,


I am creating a windows form using c# to make a connection between S7 300 PLC and this form . Hence I have insalled S7netplus package which is provided by Siemens to make the connection.

But as I run the Code I get this exception .
 

Attachments

  • exception.PNG
    exception.PNG
    121.6 KB · Views: 14
There seems to be some kind of mixup with your project "S7.net" and the library namespace "S7.Net".
"S7.net Version 1.0.0.0" is your own project, the latest library version is 0.16.0.
Maybe just create a new project with a better name?
 
I would recommend to every developer, regardless of their level of expertise or experience, that they choose a "company name" and use that in all their projects. For instance, the name of every project I create starts with Wunnell., so there can never be any confusion as to what comes from my project and what comes from any library it uses. If you use the same name as some other library you're testing or using, a name clash is highly likely.
 
Back
Top Bottom