Domanda

I have stumbled upon interesting problem which is destroying me last couple of hours. I have project in VS, in references I have library Communication.dll, which contains class Service. I am invoking following method:

public void ConnectPipe()
{
    Service service = new Service();
    service.ConnectionMode = ConnectionModes.PIPE;
    service.Connect();
}

when I run it, on second line I get MissingMethodException - Method not found: 'Void Service.set_ConnectionMode()'
when I press F12 on service class, I get the Assembly info for the class. When I look for my property, setter is in place, so it does not look like problem with referenced library:

public ConnectionModes ConnectionMode { get; set; }

has anyone any idea where problem might be please?

È stato utile?

Soluzione

Had the same issue. Fixed by updating reference to the library.

Point to the exact file on the local, through button "Browse..." don't choose from the library list in references manager - that doesn't work correctly sometimes.

And rebuild the referenced assembly.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top