منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب
[VB.NET] مشاكل بقاعدة البيانات MySQL - نسخة قابلة للطباعة

+- منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب (http://vb4arb.com/vb)
+-- قسم : قسم لغة الفيجوال بيسك VB.NET (http://vb4arb.com/vb/forumdisplay.php?fid=182)
+--- قسم : قسم اسئلة VB.NET (http://vb4arb.com/vb/forumdisplay.php?fid=183)
+--- الموضوع : [VB.NET] مشاكل بقاعدة البيانات MySQL (/showthread.php?tid=31360)



مشاكل بقاعدة البيانات MySQL - azoz - 16-09-19

مرحبا شباب
انا من فترة عملت فورمات للجهاز وثبتت ال VB 2010 بالبدايه قبل الفورمات كان شغال طبيعي حتى قاعدة البيانات كانت تشتغل طبيعي (اقصد ملفات ref لقاعدة البيانات) يعني لما اكتب ع سبيل المثال
كود :
Imports MySql.Data.MySqlClient

بعد ما اضيف ملفات ref يشتغل البروجكت طبيعي لكن بعد الفورمات صارت تظهر مشاكل ما اعرف من وين تجي
مثلا هذي المشكله اول ما اشغل ال VB

[attachment=22936]

وهذا نص المشاكل بعد وضع ال ref و كتابة الكود وعمل run

كود :
Warning    1    The primary reference "MySql.Data" could not be resolved because it was built against the ".NETFramework,Version=v4.5.2" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client".    test
Warning    2    The primary reference "MySql.Data.EntityFramework" could not be resolved because it has an indirect dependency on the assembly "MySql.Data, Version=8.0.16.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" which was built against the ".NETFramework,Version=v4.5.2" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client".    test
Warning    3    The primary reference "MySQL.Data.EntityFrameworkCore.Design" could not be resolved because it has an indirect dependency on the assembly "MySql.Data, Version=8.0.16.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" which was built against the ".NETFramework,Version=v4.5.2" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client".    test
Warning    4    The primary reference "MySql.Web" could not be resolved because it has an indirect dependency on the assembly "MySql.Data, Version=8.0.16.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" which was built against the ".NETFramework,Version=v4.5.2" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client".    test
Warning    5    The primary reference "MySQL.Data.EntityFrameworkCore" could not be resolved because it has an indirect dependency on the assembly "MySql.Data, Version=8.0.16.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" which was built against the ".NETFramework,Version=v4.5.2" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client".    test
Warning    6    The primary reference "MySql.Data.EntityFramework" could not be resolved because it was built against the ".NETFramework,Version=v4.5.2" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client".    test
Warning    7    The primary reference "MySQL.Data.EntityFrameworkCore" could not be resolved because it was built against the ".NETFramework,Version=v4.5.2" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client".    test
Warning    8    The primary reference "MySQL.Data.EntityFrameworkCore.Design" could not be resolved because it has an indirect dependency on the assembly "MySql.Data.EntityFrameworkCore, Version=8.0.16.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" which was built against the ".NETFramework,Version=v4.5.2" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client".    test
Warning    9    The primary reference "MySQL.Data.EntityFrameworkCore.Design" could not be resolved because it was built against the ".NETFramework,Version=v4.5.2" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client".    test
Warning    10    The primary reference "MySql.Web" could not be resolved because it was built against the ".NETFramework,Version=v4.5.2" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client".    test
Warning    11    The primary reference "MySql.Data.EntityFramework" could not be resolved because it has an indirect dependency on the assembly "Google.Protobuf, Version=3.6.1.0, Culture=neutral, PublicKeyToken=a7d26565bac4d604" which was built against the ".NETFramework,Version=v4.5" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client".    test
Warning    12    The primary reference "MySQL.Data.EntityFrameworkCore.Design" could not be resolved because it has an indirect dependency on the assembly "Google.Protobuf, Version=3.6.1.0, Culture=neutral, PublicKeyToken=a7d26565bac4d604" which was built against the ".NETFramework,Version=v4.5" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client".    test
Warning    13    The primary reference "MySql.Data" could not be resolved because it has an indirect dependency on the assembly "Google.Protobuf, Version=3.6.1.0, Culture=neutral, PublicKeyToken=a7d26565bac4d604" which was built against the ".NETFramework,Version=v4.5" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client".    test
Warning    14    The primary reference "MySql.Web" could not be resolved because it has an indirect dependency on the assembly "Google.Protobuf, Version=3.6.1.0, Culture=neutral, PublicKeyToken=a7d26565bac4d604" which was built against the ".NETFramework,Version=v4.5" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client".    test
Warning    15    The primary reference "MySQL.Data.EntityFrameworkCore" could not be resolved because it has an indirect dependency on the assembly "Google.Protobuf, Version=3.6.1.0, Culture=neutral, PublicKeyToken=a7d26565bac4d604" which was built against the ".NETFramework,Version=v4.5" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client".    test
Warning    16    The currently targeted framework ".NETFramework,Version=v4.0,Profile=Client" does not include "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which the referenced assembly "MySql.Web" depends on. This caused the referenced assembly to not resolve. To fix this, either (1) change the targeted framework for this project, or (2) remove the referenced assembly from the project.    test
Warning    17    Namespace or type specified in the Imports 'MySql.Data.MySqlClient' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.    C:\Users\Unknown\Documents\Visual Studio 2010\Projects\test - Copy (2)\test\Form1.vb    1    9    test
Warning    18    Namespace or type specified in the Imports 'MySql.Data' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.    C:\Users\Unknown\Documents\Visual Studio 2010\Projects\test - Copy (2)\test\Form1.vb    2    9    test
Warning    19    Namespace or type specified in the Imports 'MySql.Web' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.    C:\Users\Unknown\Documents\Visual Studio 2010\Projects\test - Copy (2)\test\Form1.vb    3    9    test
Warning    20    Namespace or type specified in the Imports 'MySql' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.    C:\Users\Unknown\Documents\Visual Studio 2010\Projects\test - Copy (2)\test\Form1.vb    4    9    test
Error    21    Type 'MySqlConnection' is not defined.    C:\Users\Unknown\Documents\Visual Studio 2010\Projects\test - Copy (2)\test\Form1.vb    7    19    test
Error    22    Type 'MySqlCommand' is not defined.    C:\Users\Unknown\Documents\Visual Studio 2010\Projects\test - Copy (2)\test\Form1.vb    8    19    test
Error    23    Type 'MySqlCommand' is not defined.    C:\Users\Unknown\Documents\Visual Studio 2010\Projects\test - Copy (2)\test\Form1.vb    15    23    test
Error    24    Type 'MySqlParameter' is not defined.    C:\Users\Unknown\Documents\Visual Studio 2010\Projects\test - Copy (2)\test\Form1.vb    19    36    test
Error    25    Type 'MySqlParameter' is not defined.    C:\Users\Unknown\Documents\Visual Studio 2010\Projects\test - Copy (2)\test\Form1.vb    20    36    test
Error    26    Type 'MySqlParameter' is not defined.    C:\Users\Unknown\Documents\Visual Studio 2010\Projects\test - Copy (2)\test\Form1.vb    21    36    test
Error    27    Type 'MySqlDataAdapter' is not defined.    C:\Users\Unknown\Documents\Visual Studio 2010\Projects\test - Copy (2)\test\Form1.vb    25    28    test
Error    28    Type 'MySqlException' is not defined.    C:\Users\Unknown\Documents\Visual Studio 2010\Projects\test - Copy (2)\test\Form1.vb    31    21    test



RE: مشاكل بقاعدة البيانات MySQL - azoz - 17-09-19

ممكن رد يا شباب هذي اول مشاركه الي


RE: مشاكل بقاعدة البيانات MySQL - سميـر - 17-09-19

السلام عليكم

يبدو أنك قبل الفورمات كنت مركب محرك قاعدة بيانات MySql ولكنك لم تعيد تركيبه بعد الفورمات،
ولتركيب قاعدة بيانات MySql توجه إلى هذا الرابط وقم بتحميلها وتركيبها
https://dev.mysql.com/downloads/connector/net/8.0.html

حاول تذكر كل البرامج المهمة في تشغيل مشاريعك السابقة والتي كانت مثبتة قبل الفورمات مثل الكريستال ريبورت على سبيل المثال.

أرجو الافادة


RE: مشاكل بقاعدة البيانات MySQL - azoz - 22-09-19

شكرا راح اجرب واشوف