PDA

View Full Version : The network name cannot be found



masood1992
شنبه 12 مرداد 1392, 19:08 عصر
سلام.
خسته نباشید.
بعد از آپلود سایت لینکهای سایت این ارور رو میدن


Server Error in '/' Application.

The network name cannot be found

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.ComponentModel.Win32Exception: The network name cannot be found

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:

[Win32Exception (0x80004005): The network name cannot be found] [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, Action`1 wrapCloseInAction) +6676046 System.Data.SqlClient.TdsParser.ThrowExceptionAndW arning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +810 System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, Boolean withFailover) +6702720 System.Data.SqlClient.SqlInternalConnectionTds.Att emptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover) +219 System.Data.SqlClient.SqlInternalConnectionTds.Log inNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout) +6704856 System.Data.SqlClient.SqlInternalConnectionTds.Ope nLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance) +6705315 System.Data.SqlClient.SqlInternalConnectionTds..ct or(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions) +610 System.Data.SqlClient.SqlConnectionFactory.CreateC onnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions) +1049 System.Data.ProviderBase.DbConnectionFactory.Creat ePooledConnection(DbConnectionPool pool, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions) +74 System.Data.ProviderBase.DbConnectionPool.CreateOb ject(DbConnectionOptions userOptions) +6707883 System.Data.ProviderBase.DbConnectionPool.UserCrea teRequest(DbConnectionOptions userOptions) +78 System.Data.ProviderBase.DbConnectionPool.TryGetCo nnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) +2192 System.Data.ProviderBase.DbConnectionPool.TryGetCo nnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) +116 System.Data.ProviderBase.DbConnectionFactory.TryGe tConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) +1012 System.Data.ProviderBase.DbConnectionClosed.TryOpe nConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +6712511 System.Data.SqlClient.SqlConnection.TryOpen(TaskCo mpletionSource`1 retry) +152 System.Data.SqlClient.SqlConnection.Open() +229 System.Data.EntityClient.EntityConnection.OpenStor eConnectionIf(Boolean openCondition, DbConnection storeConnectionToOpen, DbConnection originalConnection, String exceptionCode, String attemptedOperation, Boolean& closeStoreConnectionOnFailure) +102 [EntityException: The underlying provider failed on Open.] System.Data.EntityClient.EntityConnection.OpenStor eConnectionIf(Boolean openCondition, DbConnection storeConnectionToOpen, DbConnection originalConnection, String exceptionCode, String attemptedOperation, Boolean& closeStoreConnectionOnFailure) +11457271 System.Data.EntityClient.EntityConnection.Open() +142 System.Data.Objects.ObjectContext.EnsureConnection () +97 System.Data.Objects.ObjectQuery`1.GetResults(Nulla ble`1 forMergeOption) +66 System.Data.Objects.ObjectQuery`1.GetIListSourceLi stInternal() +11 System.Web.UI.WebControls.EntityDataSourceView.Con tinueSelectTyped(DataSourceSelectArguments arguments, EntityDataSourceQueryBuilder`1 queryBuilder, ObjectQuery`1 queryT, Boolean wasQueryModified) +139082 System.Web.UI.WebControls.EntityDataSourceView.Exe cuteSelectTyped(DataSourceSelectArguments arguments, Creator qbConstructor) +5018 System.Web.UI.WebControls.EntityDataSourceView.Exe cuteSelect(DataSourceSelectArguments arguments) +897 System.Web.UI.WebControls.DataList.CreateControlHi erarchy(Boolean useDataSource) +541 System.Web.UI.WebControls.BaseDataList.OnDataBindi ng(EventArgs e) +174 System.Web.UI.WebControls.BaseDataList.EnsureDataB ound() +89 System.Web.UI.Control.EnsureChildControls() +189 System.Web.UI.Control.PreRenderRecursiveInternal() +60 System.Web.UI.Control.PreRenderRecursiveInternal() +222 System.Web.UI.Control.PreRenderRecursiveInternal() +222 System.Web.UI.Control.PreRenderRecursiveInternal() +222 System.Web.UI.Control.PreRenderRecursiveInternal() +222 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4297
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18044



ببخشید مشکل از کجاست ؟

fri jun
شنبه 12 مرداد 1392, 19:12 عصر
نحوه ی آدرس دهی لینک هات به چه صورتیه؟
یه نمونه بزار بشه نظر داد

masood1992
شنبه 12 مرداد 1392, 19:16 عصر
<%@ Page Title="" Language="C#" MasterPageFile="~/tempMaster.Master" AutoEventWireup="true" CodeBehind="Gallery.aspx.cs" Inherits="gilanino2.Gallery1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content4" runat="server" contentplaceholderid="ContentPlaceHolder1">
<div id="ContentHeader">
<h2 class="h2class">لطفا گالری مربوطه را انتخاب کنید</h2>
</div>
</asp:Content>
<asp:Content ID="Content5" runat="server" contentplaceholderid="ContentPlaceHolder2">
<div id="Content">
<asp:HyperLink ID="HyperLink1" runat="server" Font-Underline="False" NavigateUrl="~/dar.aspx">تصاویر در</asp:HyperLink><br/>
<asp:HyperLink ID="HyperLink2" runat="server" Font-Underline="False" NavigateUrl="~/panjereh_nardeh.aspx">تصاویر پنجره و نرده</asp:HyperLink>
</div>
</asp:Content>

این لینکامه :

<asp:HyperLink ID="HyperLink1" runat="server" Font-Underline="False" NavigateUrl="~/dar.aspx">تصاویر در</asp:HyperLink><br/>
<asp:HyperLink ID="HyperLink2" runat="server" Font-Underline="False" NavigateUrl="~/panjereh_nardeh.aspx">تصاویر پنجره و نرده</asp:HyperLink>

fri jun
شنبه 12 مرداد 1392, 19:29 عصر
ادرس دهی که درسته ، تنها چیزی که به ذهنم میرسه اینه که شاید صفحات درست تو هاست قرار نگرفتن
یعنی مثلا صفحه dar.aspx باید حتما در root هاستت باشه تا کار کنه ادرس دهی

masood1992
شنبه 12 مرداد 1392, 19:30 عصر
داخل روت هستش !