PDA

View Full Version : ASP.NET + DB



melissa
یک شنبه 04 فروردین 1387, 01:07 صبح
سلام
من یه وب با .NET2 و بانک اطلاعاتی SQLServer2000 ساختم و Up Load کردم ولی حالا این خطا رو می گره :
Server Error in '/' Application.
--------------------------------------------------------------------------------

Login failed for user 'WINDOWS-R6CJ2CC\IWPD_926(...)'.
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 'WINDOWS-R6CJ2CC\IWPD_926(....i)'.

حالا باید چه کار کنم ، اگه ممکنه راهنمایی کنید ، مرسی

twelve
یک شنبه 04 فروردین 1387, 01:19 صبح
مشکل از کانکشن استرینگ هست

dr.pantagon
یک شنبه 04 فروردین 1387, 02:40 صبح
Application["cnstr"] = "packet size=4096;user id=username;data source=\"www.site.com\";persist security info=True;initial catalog=dbnamepassword=\"password\"";

melissa
دوشنبه 05 فروردین 1387, 02:18 صبح
سلام
بازم این خطا رو می گیره
Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.
راجع به user ولی من برای بانکم user تعریف نکردم
connection string هم :
Data Source=www.---.ir;Initial Catalog=ِdb_name;Integrated Security=true;
مرسی

twelve
دوشنبه 05 فروردین 1387, 15:31 عصر
شما ظاهرا کانکشن استرینگی رو که از هاست دریافت کردید اشتباه وارد می کنید ، کانکشن استرینگ باید حاوی uid و pwd باشه که مقدارش رو هاست مربوطه در اخیارتون قرار میده