Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/30.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net &引用;系统找不到指定的文件";_Asp.net_Membership - Fatal编程技术网

Asp.net &引用;系统找不到指定的文件";

Asp.net &引用;系统找不到指定的文件";,asp.net,membership,Asp.net,Membership,我看到了很多关于这个错误的问题。但这些都与形式无关。在本地测试之后,我刚刚托管了我的应用服务器。我认为它工作了几分钟,但我不确定,因为我可能看了一下localhost选项卡。然后它停止了工作。在服务器上进行更改时,我可能也更改了一些内容 我检查了我的连接字符串,还尝试使用其他方式登录到数据库,它是在线的。所以,任何可能出错的线索。我认为sql server不可能只是不响应应用程序的请求,而且如果您通过SSMS登录,它是可用的 下面是我得到的错误 “/”应用程序中出现服务器错误 系统找不到指定的文

我看到了很多关于这个错误的问题。但这些都与形式无关。在本地测试之后,我刚刚托管了我的应用服务器。我认为它工作了几分钟,但我不确定,因为我可能看了一下localhost选项卡。然后它停止了工作。在服务器上进行更改时,我可能也更改了一些内容

我检查了我的连接字符串,还尝试使用其他方式登录到数据库,它是在线的。所以,任何可能出错的线索。我认为sql server不可能只是不响应应用程序的请求,而且如果您通过SSMS登录,它是可用的

下面是我得到的错误

“/”应用程序中出现服务器错误

系统找不到指定的文件

描述:在执行过程中发生未处理的异常 当前的web请求。请查看堆栈跟踪以了解更多信息 有关错误的信息及其在代码中的来源

异常详细信息:System.ComponentModel.Win32异常:系统 找不到指定的文件

源错误:

在执行过程中生成了未处理的异常 当前web请求。关于货物来源和位置的信息 可以使用下面的异常堆栈跟踪来识别异常

堆栈跟踪:

[Win32Exception(0x80004005):系统找不到该文件 指定的]

[SqlException(0x80131904):与网络相关或特定于实例的 建立与SQL Server的连接时出错 找不到服务器或无法访问服务器。请验证实例 名称正确,并且SQL Server配置为允许远程访问 连接。(提供程序:SQL网络接口,错误:52-无法 找到本地数据库运行时安装。请验证SQL Server Express已正确安装,并且本地数据库运行时 功能已启用。)]
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException 异常,布尔断开连接,操作
1 wrapCloseInAction)
+5296071 System.Data.SqlClient.TdsParser.ThroweException和Warning(TdsParserStateObject
stateObj,布尔调用方连接锁,布尔异步关闭)+558
System.Data.SqlClient.TdsParser.Connect(ServerInfo-ServerInfo, SqlInternalConnectionDS connHandler,布尔值IgnoresInOpenTimeout, Int64 timerExpire,布尔加密,布尔信任服务器证书,布尔 集成安全性,带故障切换的布尔值)+5308555
System.Data.SqlClient.sqlinternalconnectionds.AttemptOneLogin(ServerInfo serverInfo、String newPassword、SecureString newSecurePassword、, 布尔值IgnoresInOpenTimeout,TimeoutTimer timeout,布尔值 带故障切换)+145
System.Data.SqlClient.sqlinternalconnectionds.loginnofilover(ServerInfo serverInfo、String newPassword、SecureString newSecurePassword、, Boolean redirectedUserInstance,SqlConnectionString connectionOptions, SqlCredential凭证,超时时间)+920
System.Data.SqlClient.sqlinternalconnectionds.OpenLoginEnlist(TimeoutTimer 超时,SqlConnectionString连接选项,SqlCredential 凭证、字符串newPassword、SecureString newSecurePassword、, 布尔重定向EduseInstance)+307
System.Data.SqlClient.SqlInternalConnectionDS..ctor(DbConnectionPoolIdentity 标识、SqlConnectionString连接选项、SqlCredential 凭证、对象providerInfo、字符串newPassword、SecureString newSecurePassword、布尔重定向edUserInstance、SqlConnectionString 用户连接选项)+434
System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions 选项、DbConnectionPoolKey poolKey、对象poolGroupProviderInfo、, DbConnectionPool池,DbConnection owningConnection, 数据库连接选项用户选项)+225
System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool 池,DbConnectionOptions选项,DbConnectionPoolKey池键, DbConnectionOptions用户选项)+37
System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnectionOptions 用户选项)+558
System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnectionOptions 用户选项)+67
System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject,UInt32 WaitForMultipleObjectStimOut,布尔型 allowCreate,仅布尔值EchkConnection,DbConnectionOptions 用户选项,DbConnectionInternal&connection)+1052
System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject,TaskCompletionSource
1重试,DbConnectionOptions 用户选项,DbConnectionInternal和connection)+78
System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection、TaskCompletionSource
1重试、DbConnectionOptions
用户选项,DbConnectionInternal&connection)+167
System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection 外部连接,数据库连接工厂连接工厂, TaskCompletionSource
1重试,DbConnectionOptions用户选项)+143
System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource
1
重试)+83 System.Data.SqlClient.SqlConnection.Open()+96
System.Data.SqlClient.SqlProviderServices.UsingConnection(SqlConnection sqlConnection,Action
1 act)+79
System.Data.SqlClient.SqlProviderServices.UsingMasterConnection(SqlConnection sqlConnection,Action`1 act)+384
System.Data.SqlClient.SqlProviderServices.GetDbProviderManifestToken(DbConnection 连接)+241
System.Data.Common.DbProviderServices.GetProviderManifestToken(DbConnection 连接)+26

[ProviderIncompatibleException:提供程序未返回 ProviderManifestToken字符串。]
System.Data.Common.DbProviderServices.GetProviderManifestToken(DbConnection 连接)+170
Sy
public class ApplicationUser : IdentityUser
{
}

public class ApplicationDbContext : IdentityDbContext<ApplicationUser>
{
    //public ApplicationDbContext() : base("DefaultConnection") ---> this was original
    public ApplicationDbContext() : base("<myConnectionStringNameInWebConfigFile>") //--> changed
    {
    }
}
     {
                   SqlCommand cmd = new SqlCommand("select * from tblemployee",con);
                   con.Open();
                   GridView1.DataSource = cmd.ExecuteReader();
                   GridView1.DataBind();