AppBox4.0改为VS2010编译通过。但运行出错,提示信息如下:
项“attachdbfilename”的值无效。 说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.ArgumentException: 项“attachdbfilename”的值无效。
源错误:
行 34: public static void InitConfigs()行 35: {行 36: _configs = PageBase.DB.Configs.ToList();行 37: }行 38: |
源文件: E:\AppBox_v4.0_20140303_source_all\AppBox\Business\Helper\ConfigHelper.cs 行: 36
堆栈跟踪:
[ArgumentException: 项“attachdbfilename”的值无效。] System.Data.SqlClient.SqlConnectionString.VerifyLocalHostAndFixup(String& host, Boolean enforceLocalHost, Boolean fixup) +897526 System.Data.SqlClient.SqlConnectionString..ctor(String connectionString) +4085 System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous) +24 System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(String connectionString, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions) +150 System.Data.SqlClient.SqlConnection.ConnectionString_Set(String value) +59 System.Data.SqlClient.SqlConnection.set_ConnectionString(String value) +4 System.Data.SqlClient.SqlConnection..ctor(String connectionString) +26 System.Data.Entity.Infrastructure.SqlConnectionFactory.CreateConnection(String nameOrConnectionString) +221 System.Data.Entity.Infrastructure.LocalDbConnectionFactory.CreateConnection(String nameOrConnectionString) +284 System.Data.Entity.Internal.LazyInternalConnection.Initialize() +311 System.Data.Entity.Internal.LazyInternalConnection.get_ProviderName() +13 System.Data.Entity.Internal.LazyInternalContext.get_ProviderName() +13 System.Data.Entity.Internal.DefaultModelCacheKeyFactory.Create(DbContext context) +91 System.Data.Entity.Internal.LazyInternalContext.InitializeContext() +495 System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType) +18 System.Data.Entity.Internal.Linq.InternalSet`1.Initialize() +57 System.Data.Entity.Internal.Linq.InternalSet`1.GetEnumerator() +15 System.Data.Entity.Infrastructure.DbQuery`1.System.Collections.Generic.IEnumerable<TResult>.GetEnumerator() +53 System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +315 System.Linq.Enumerable.ToList(IEnumerable`1 source) +58 AppBox.ConfigHelper.InitConfigs() in E:\AppBox_v4.0_20140303_source_all\AppBox\Business\Helper\ConfigHelper.cs:36 AppBox.ConfigHelper.get_Configs() in E:\AppBox_v4.0_20140303_source_all\AppBox\Business\Helper\ConfigHelper.cs:23 AppBox.ConfigHelper.GetValue(String key) in E:\AppBox_v4.0_20140303_source_all\AppBox\Business\Helper\ConfigHelper.cs:50 AppBox.ConfigHelper.get_Theme() in E:\AppBox_v4.0_20140303_source_all\AppBox\Business\Helper\ConfigHelper.cs:160 AppBox.PageBase.OnInit(EventArgs e) in E:\AppBox_v4.0_20140303_source_all\AppBox\Business\PageBase.cs:79 System.Web.UI.Control.InitRecursive(Control namingContainer) +140 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +480 |
|