I am having trouble deploying an application written in .NET 3.5. The app is to run at startup and connects to a database server on the local network.
I have another app which does the same sort of thing (although doesn't run at startup) and it works flawlessly - but that is deployed using published file.
I was hoping to just be able to copy my compiled PE's to the main servers and allow people to run them at startup e.g. each user.
Unfortunately I am getting this error:
Now I understand this is something to do with it not being in the GAC or not have a strong named key associated with it. I have tried associating a new key, adding it to the GAC (didnt allow me to add it) and read countless articles on MSDN and the web.
I think it's just me not getting my head around exactly why it's not running, I have tried setting it up so as it's signed with ClickOnce security settings as full rights - no go.
Is there *any* way I can get this program to run properly without using the publish wizard and deploying it every time it's run? It just isn't practical for a program which runs at startup.
Thanks for the help!
I have another app which does the same sort of thing (although doesn't run at startup) and it works flawlessly - but that is deployed using published file.
I was hoping to just be able to copy my compiled PE's to the main servers and allow people to run them at startup e.g. each user.
Unfortunately I am getting this error:
Code:
Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyTokenb77a5c561932e089' failed.
Now I understand this is something to do with it not being in the GAC or not have a strong named key associated with it. I have tried associating a new key, adding it to the GAC (didnt allow me to add it) and read countless articles on MSDN and the web.
I think it's just me not getting my head around exactly why it's not running, I have tried setting it up so as it's signed with ClickOnce security settings as full rights - no go.
Is there *any* way I can get this program to run properly without using the publish wizard and deploying it every time it's run? It just isn't practical for a program which runs at startup.
Thanks for the help!