RIG000
پنج شنبه 20 آذر 1393, 11:26 صبح
سلام. من asp.net mvcکار میکنم. و دیتابیس رو از طریق windows athuntication ساخته بودم و از ویژوال استدیو بهش وصل میشدم....
حالا یه یوزر ساختم تو دیتابیس و از طریق این یوزر دیتابیسم رو به برنامه generate کردم...
حالا میخام یه تیبل رو بود کنم. همچین خطایی میده و میگه شما نتونستی با این user وارد بی ..
An exception of type 'System.Data.Entity.Core.EntityException' occurred in EntityFramework.SqlServer.dll but was not handled in user code
Additional information: The underlying provider failed on Open.
و تو مرور گرم هم به این شکل نشون میده
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'amin'.
Source Error:
حالا کانکشن استرینگ من تو دیتابیس هم به این شکل تنظیم شده بعد جنریت کردنش.
<add name="eshopMVCEntities" connectionString="metadata=res://*/Models.Model1.csdl|res://*/Models.Model1.ssdl|res://*/Models.Model1.msl;provider=System.Data.SqlClient;p rovider connection string="data source=(LocalDb)\v11.0;initial catalog=eshopMVC;persist security info=True;user id=amin;MultipleActiveResultSets=True;App=EntityFr amework"" providerName="System.Data.EntityClient" />
ممنون میشم راهنمایی کنید. مرسی
حالا یه یوزر ساختم تو دیتابیس و از طریق این یوزر دیتابیسم رو به برنامه generate کردم...
حالا میخام یه تیبل رو بود کنم. همچین خطایی میده و میگه شما نتونستی با این user وارد بی ..
An exception of type 'System.Data.Entity.Core.EntityException' occurred in EntityFramework.SqlServer.dll but was not handled in user code
Additional information: The underlying provider failed on Open.
و تو مرور گرم هم به این شکل نشون میده
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'amin'.
Source Error:
حالا کانکشن استرینگ من تو دیتابیس هم به این شکل تنظیم شده بعد جنریت کردنش.
<add name="eshopMVCEntities" connectionString="metadata=res://*/Models.Model1.csdl|res://*/Models.Model1.ssdl|res://*/Models.Model1.msl;provider=System.Data.SqlClient;p rovider connection string="data source=(LocalDb)\v11.0;initial catalog=eshopMVC;persist security info=True;user id=amin;MultipleActiveResultSets=True;App=EntityFr amework"" providerName="System.Data.EntityClient" />
ممنون میشم راهنمایی کنید. مرسی