Home > Net >  Senior emergency, the server to start
Senior emergency, the server to start

Time:10-04


String conStr="database=zjhgame; Data source=127.0.0.1; Port=3306; User=root; Password=1234 ";
SqlConcect=new MySqlConnection (conStr);
Errors point to the sentences & gt;>>> SqlConcect. The Open ();


System. IO. FileNotFoundException
HResult=0 x80070002
Message=Could not load file or assembly 'System. Security. Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The System cannot find the specified file,
Source=MySql. Data
StackTrace:
At the MySql. Data. MySqlClient. MySqlConnection. AssertPermissions ()
At the MySql. Data. MySqlClient. MySqlConnection. The Open ()
At the Program. The Database. DatabaseManager. StartConnect () in D: \ \ vc Program \ Database \ DatabaseManager cs: line 17
At the Program. The Program. The Main (String [] args) in D: \ \ vc Program, the Program. The cs: line 13

CodePudding user response:

There is something wrong with the environment? You try to reinstall IIS.net environment to try

CodePudding user response:

Could not load file or assembly 'System. Security. Permissions
- the "big probability without reference to the DLL file

CodePudding user response:

Can't find this System. Security. Permissions assembly, please check,
  •  Tags:  
  • C#
  • Related