PDA

View Full Version : سوال: عدم ارتباط با database در کانکشن استرینگ پویا



Ilosgroup
جمعه 06 بهمن 1396, 15:05 عصر
سلام در فرایند پروژه اتوماسیون اداری در بخشس انتهایی هنگام ایجاد کانگشن استرینگ پویا در نهایت هنگام اجرا پروژه خطا زیر رخ می ده نمی دونم این خطا که مربوط به AppConfig است مربوط به کجاست .کمک کنید.
کد AppConfig:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrame workSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 </configSections>
<connectionStrings>
<add name="Automation_SystemEntities1" connectionString="metadata=res://*/Models.Automation_SystemEntities1.csdl|res://*/Models.Automation_SystemEntities1.ssdl|res://*/Models.Automation_SystemEntities1.msl;provider=Sys tem.Data.SqlClient;provider connection string=&quot;data source=.;initial catalog=Automation_System;integrated security=True;MultipleActiveResultSets=True;App=En tityFramework&quot;" providerName="System.Data.EntityClient" />
</connectionStrings>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectio nFactory, EntityFramework">
<parameters>
<parameter value="v11.0" />
</parameters>
</defaultConnectionFactory>
<providers>
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
</providers>
</entityFramework>
</configuration>


----------------تصویر خطا:
http://s9.picofile.com/file/8317718526/55.jpg


(http://s9.picofile.com/file/8317718526/55.jpg)لینک سایر کد های مرتبط با کد نویسی بخش کانکشن استرینگ پویا:
http://s9.picofile.com/file/8317712176/22.jpg
http://s8.picofile.com/file/8317712234/11.jpg
http://s8.picofile.com/file/8317712076/44.jpg
http://s8.picofile.com/file/8317712126/33.jpg



(http://s9.picofile.com/file/8317718526/55.jpg)

Ilosgroup
جمعه 06 بهمن 1396, 15:17 عصر
سلام در فرایند پروژه اتوماسیون اداری در بخشس انتهایی هنگام ایجاد کانگشن استرینگ پویا در نهایت هنگام اجرا پروژه خطا زیر رخ می ده نمی دونم این خطا که مربوط به AppConfig است مربوط به کجاست .کمک کنید.
کد AppConfig:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrame workSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 </configSections>
<connectionStrings>
<add name="Automation_SystemEntities1" connectionString="metadata=res://*/Models.Automation_SystemEntities1.csdl|res://*/Models.Automation_SystemEntities1.ssdl|res://*/Models.Automation_SystemEntities1.msl;provider=Sys tem.Data.SqlClient;provider connection string=&quot;data source=.;initial catalog=Automation_System;integrated security=True;MultipleActiveResultSets=True;App=En tityFramework&quot;" providerName="System.Data.EntityClient" />
</connectionStrings>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectio nFactory, EntityFramework">
<parameters>
<parameter value="v11.0" />
</parameters>
</defaultConnectionFactory>
<providers>
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
</providers>
</entityFramework>
</configuration>


----------------تصویر خطا:
http://s9.picofile.com/file/8317718526/55.jpg


(http://s9.picofile.com/file/8317718526/55.jpg)لینک سایر کد های مرتبط با کد نویسی بخش کانکشن استرینگ پویا:
http://s9.picofile.com/file/8317712176/22.jpg
http://s8.picofile.com/file/8317712234/11.jpg
http://s8.picofile.com/file/8317712076/44.jpg
http://s8.picofile.com/file/8317712126/33.jpg



(http://s9.picofile.com/file/8317718526/55.jpg)
لازم بذکر است برای حل مشکل یک بار entity رو مجدد نصب کردم الان ورژن 6.0.0 نصب هست با مکشل حل نشد.