PDA

View Full Version : سوال: ErOr بعد از آپلود سایت



ramin_hashemi
شنبه 18 دی 1389, 14:07 عصر
سلام دوستان عزیز:لبخندساده:
بنده یه وب سایت روی plesk دارم و کارای زیر رو انجام دادم:
اول سایتمو پابلیش کردم
بعد تمام فایل های پابلیش شده رو توی httpdpcs گذاشتم
بعد یه یوزر جدید برای دیتابیس ساختم
بعد از دیتابیسم بکاپ گرفتم
بعد دیتابیس رو با موفقیت ریستور کردم
کانکشن استرینگ این هست:
Data Source=ip_addr;Initial Catalog=db_name.mdf;User ID=؟؟؟;Password=؟؟؟
ولی با ارور زیر مواجه شدم:

Server Error in '/' Application.
The client was unable to establish a connection because of an error during connection initialization process before login. Possible causes include the following: the client tried to connect to an unsupported version of SQL Server; the server was too busy to accept new connections; or there was a resource limitation (insufficient memory or maximum allowed connections) on the server. (provider: Named Pipes Provider, error: 0 - No process is on the other end of the pipe.)
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: The client was unable to establish a connection because of an error during connection initialization process before login. Possible causes include the following: the client tried to connect to an unsupported version of SQL Server; the server was too busy to accept new connections; or there was a resource limitation (insufficient memory or maximum allowed connections) on the server. (provider: Named Pipes Provider, error: 0 - No process is on the other end of the pipe.)



مشکل من کجاست؟؟؟
ممنون:لبخندساده:

ad.davachi
شنبه 18 دی 1389, 15:24 عصر
سلام . اسم صفحه اولتون چیه؟ اگر اسمی غیر از default هستش باید اون رو توی تنضیمات set کنید.

ramin_hashemi
شنبه 18 دی 1389, 15:36 عصر
سلام
ممنون از جوابتون
ست کردم:گریه:
مشکل ازاین نیست

ad.davachi
شنبه 18 دی 1389, 15:40 عصر
دوباره کانکشن استرینگ رو بذارید(ایندفعه توی تگ html )

ad.davachi
شنبه 18 دی 1389, 15:45 عصر
در قسمت ASP.NET Settings اگر غیر از کانکشن استرینگ خودتان LocalSqlServer هست اون رو حذف کنید

و IIS Application Pool رو turn on کنید.

ramin_hashemi
شنبه 18 دی 1389, 15:46 عصر
Data Source=ip_addr;Initial Catalog=db_name.mdf;User ID=؟؟؟;Password=؟؟؟

ramin_hashemi
شنبه 18 دی 1389, 15:53 عصر
LocalSqlServer نیست
توی web config اصلا IIS Application Pool رو ندیدم
باید اضافش کنم؟؟؟

ad.davachi
شنبه 18 دی 1389, 15:53 عصر
connectionString="Server=121.12.2154.22; Database=Refah_DB; User Id=aa; password=123456"

من این رو توی plesk خودم گذاشتم و کار کرد. البته عددها و مقادیر غیر واقعی هستند.

ad.davachi
شنبه 18 دی 1389, 15:54 عصر
LocalSqlServer نیست
توی web config اصلا IIS Application Pool رو ندیدم
باید اضافش کنم؟؟؟

تو وب کانفیگ نیست یک گزینه هستش توی پلسک بالای ASP.NET Settings

ramin_hashemi
شنبه 18 دی 1389, 16:02 عصر
شما permission خاصی به فولدرها ندادید؟

ad.davachi
شنبه 18 دی 1389, 16:06 عصر
خیر permission خاصی به فولدرها ندادم.
من الان یه چیزی دیدم. چرا شما فایل هاتون رو توی httpdocs کپی کردید؟ پیش فرض اینه که توی httpdoc کپی کنید.

ramin_hashemi
شنبه 18 دی 1389, 16:13 عصر
نه
file manager من httpdocs رو داره

ad.davachi
شنبه 18 دی 1389, 16:14 عصر
برای من هم داره اما تنضیمات اصلی روی httpdoc هست

ramin_hashemi
شنبه 18 دی 1389, 16:18 عصر
خوب من httpdoc ندارم
بسازم اونجا copy کنم