PDA

View Full Version : سوال: این ارور واسه چیه Server Error in '/OnlineShop' Application.



123456789m
چهارشنبه 16 شهریور 1390, 12:53 عصر
یه پروژه دانلود کردم می خوام اجراش کنم این ارور رو میده
باید چیکار کنم


Server Error in '/OnlineShop' Application.

A network-related or instance-specific error occurred while establishing a connection to SQL Server.
The server was not found or was not accessible.
Verify that the instance name is correct and that SQL Server is configured to allow remote connections.
(provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server

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: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Saman Hashemi
چهارشنبه 16 شهریور 1390, 12:57 عصر
connection string تنظيم كردي؟

123456789m
چهارشنبه 16 شهریور 1390, 13:39 عصر
چطوری ؟
منظورتونو نمیفهمم

Saman Hashemi
چهارشنبه 16 شهریور 1390, 14:32 عصر
براي اتصال به بانك بايد يه connection string تعريف كنيد حالا اين ميتونه توي برنامه يا webconfig باشه،بايد پيداش كنيد و بعد آدرس بانكي كه روي سيستمتون هست بهش بديد...!

reza344
چهارشنبه 16 شهریور 1390, 14:34 عصر
چطوری ؟
منظورتونو نمیفهمم
سلام
ببین وقتی یه پروژه رو که از جای دیگه دانلود کردی و میخوای رو سیستم خودت اجرا کنی باید ابتدا دیتا بیس آن را Attach کنی داخل SqlServer سپس connection string رو تو پروژت پیدا کنی (مثلا داخل فایل وب کانفیگ یا داخل کدهای برنامت) و Data Source اون رو برابر . (نقطه ) یا نام سرور خودت قرار بدی
موفق باشی

123456789m
چهارشنبه 16 شهریور 1390, 15:07 عصر
تویه وب کانیفیک تنظیم کردم بازم ارور میده
<add name="DBOnlineShopConnectionString" connectionString=" Data Source=.\SQLEXPRESS";AttachDbFilename="C:\Documents and Settings\M(O)HAMMAD\Desktop\SASAS\Mobile\OnlineSho p\App_Data\_vti_cnf\DBOnlineShop_Data.MDF";Integrated="" Security="True;Connect" Timeout="30;User" Instance="True"/>

reza344
چهارشنبه 16 شهریور 1390, 20:00 عصر
اون دوتا فایل دیتا بیس که تو مسیر _vti_cnf هست رو نباید استفاده کنی
این دوتا رو جایگزین کن مشکلت حل میشه ضمنا connection string رو هم مجددا تنظیم کن

75008