نمایش نتایج 1 تا 5 از 5

نام تاپیک: مشکل در هنگام هاست کردن یک برنامه نوشته شده توسط C#‎ و ASP.NET 3.5

  1. #1
    کاربر دائمی آواتار delphi5
    تاریخ عضویت
    تیر 1385
    محل زندگی
    تهران
    پست
    350

    مشکل در هنگام هاست کردن یک برنامه نوشته شده توسط C#‎ و ASP.NET 3.5

    با سلام
    من یک پروژه با C#‎ و ASP.NET 3.5 تحت وب دارم که در هنگام هاست کردن به مشکل برخوردم .
    سرورم یک دستگاه با ویندوز XP
    SQL Server 2008
    IIS 5
    .NET Framework 4

    بروی دستگاهی که برنامه با آن نوشته شده مشکلی نیست اما بروی این سرور خطای زیر در هنگام Brows نمایش داده می شود

    [
    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.

    Stack Trace:


    [SqlException (0x80131904): 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)]
    System.Data.SqlClient.SqlInternalConnection.OnErro r(SqlException exception, Boolean breakConnection) +5009598
    System.Data.SqlClient.TdsParser.ThrowExceptionAndW arning() +234
    System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity) +341
    System.Data.SqlClient.SqlInternalConnectionTds.Att emptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, SqlConnection owningObject) +129
    System.Data.SqlClient.SqlInternalConnectionTds.Log inNoFailover(ServerInfo serverInfo, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, TimeoutTimer timeout) +270
    System.Data.SqlClient.SqlInternalConnectionTds.Ope nLoginEnlist(SqlConnection owningObject, TimeoutTimer timeout, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +195
    System.Data.SqlClient.SqlInternalConnectionTds..ct or(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +232
    System.Data.SqlClient.SqlConnectionFactory.CreateC onnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +185
    System.Data.ProviderBase.DbConnectionFactory.Creat ePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +33
    System.Data.ProviderBase.DbConnectionPool.CreateOb ject(DbConnection owningObject) +524
    System.Data.ProviderBase.DbConnectionPool.UserCrea teRequest(DbConnection owningObject) +66
    System.Data.ProviderBase.DbConnectionPool.GetConne ction(DbConnection owningObject) +479
    System.Data.ProviderBase.DbConnectionFactory.GetCo nnection(DbConnection owningConnection) +108
    System.Data.ProviderBase.DbConnectionClosed.OpenCo nnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +126
    System.Data.SqlClient.SqlConnection.Open() +125
    System.Data.Linq.SqlClient.SqlConnectionManager.Us eConnection(IConnectionUser user) +43
    System.Data.Linq.SqlClient.SqlProvider.get_IsSqlCe () +47
    System.Data.Linq.SqlClient.SqlProvider.InitializeP roviderMode() +20
    System.Data.Linq.SqlClient.SqlProvider.System.Data .Linq.Provider.IProvider.Execute(Expression query) +57
    System.Data.Linq.DataQuery`1.System.Collections.Ge neric.IEnumerable<T>.GetEnumerator() +34
    System.Collections.Generic.List`1..ctor(IEnumerabl e`1 collection) +315
    System.Linq.Enumerable.ToList(IEnumerable`1 source) +58
    BL.NewsBL.GetAnalysNews(IpnaDataContext context) +296
    UI.GetNews.GetAnalysNews(Repeater rpt) in C:\Users\User\Desktop\News\IpnaNews\IpnaNews\UI\Ut ilities\GetNews.cs:34
    UI._default.Page_Load(Object sender, EventArgs e) in C:\Users\User\Desktop\News\IpnaNews\IpnaNews\UI\de fault.aspx.cs:24
    System.Web.Util.CalliHelper.EventArgFunctionCaller (IntPtr fp, Object o, Object t, EventArgs e) +14
    System.Web.Util.CalliEventHandlerDelegateProxy.Cal lback(Object sender, EventArgs e) +35
    System.Web.UI.Control.OnLoad(EventArgs e) +91
    System.Web.UI.Control.LoadRecursive() +74
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207

    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

    لطفا کمکم کنید
    فایل Web.config رو هم به عنوان ضمیمه ارسال می کنمweb.rar

  2. #2
    کاربر دائمی آواتار hjran abdpor
    تاریخ عضویت
    فروردین 1387
    محل زندگی
    برنامه نويس + شبگرد + سیسکو به پارسی
    پست
    1,416

    نقل قول: مشکل در هنگام هاست کردن یک برنامه نوشته شده توسط C#‎ و ASP.NET 3.5

    دوست عزيز هر مشكلي هست مال sql server هست قبل از هر كاري سرور هاست ببنيد با ديگر فايل هاي شما مشكلي نداره ، در قدم بعد يه نگاهي به كانكشن استرينگ خود بندازيد و ببيند روي چي ست كرديد ؟

    فعلا اين كارها را بكنيد ؟؟

  3. #3
    کاربر دائمی آواتار amirjalili
    تاریخ عضویت
    خرداد 1387
    محل زندگی
    هر جایی که کنجکاویم و نیاز به دانستنم رو تحریک کنه
    پست
    792

    نقل قول: مشکل در هنگام هاست کردن یک برنامه نوشته شده توسط C#‎ و ASP.NET 3.5

    مرجع کامل خطا ها و باگ ها در ASP.NET
    https://barnamenevis.org/showthread.p...%D8%B1-ASP.NET

  4. #4

    نقل قول: مشکل در هنگام هاست کردن یک برنامه نوشته شده توسط C#‎ و ASP.NET 3.5

    120% از یا کانکشن استرینگته

  5. #5
    کاربر دائمی آواتار delphi5
    تاریخ عضویت
    تیر 1385
    محل زندگی
    تهران
    پست
    350

    نقل قول: مشکل در هنگام هاست کردن یک برنامه نوشته شده توسط C#‎ و ASP.NET 3.5

    کانکشن استرینگ رو ضمیمه کردم . میشه یه نگاهی بهش بندازید ؟

قوانین ایجاد تاپیک در تالار

  • شما نمی توانید تاپیک جدید ایجاد کنید
  • شما نمی توانید به تاپیک ها پاسخ دهید
  • شما نمی توانید ضمیمه ارسال کنید
  • شما نمی توانید پاسخ هایتان را ویرایش کنید
  •