由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
DotNet版 - 新人再问 sql/linq: No connection string name d 'db5Entities' could be found in the application config fi
相关主题
System.Data.SqlClient.SqlException: A network-related or instance -specific errorDo we still need DAL
请教 pass by value or reference 的问题有人试过.Net 3.0吗?
HttpWebRequest小程序Converting a CSV file to XML using LinQ
[合集] asp 打开oracle数据库问题。是不是最近dotnet不济了
String::Format doesn't take integer type params最不爽的就是c#搞了不少syntax sugar就为了少打几个字
csharp的文字输入控件能够实现drag吗? some1 using nhibernate?
how to display a number with the desired digitssome1 using nhibernate?
nHibernate mapping question[合集] some1 using nhibernate?
相关话题的讨论汇总
话题: string话题: config话题: connection
进入DotNet版参与讨论
1 (共1页)
w*s
发帖数: 7227
1
1. in F:charp, i have my c# application project, and a DB file called db5.
mdx
2. in my c# project i uses this db5.mdx, using EF
3. now i copied the exe built from c# project to another folder and run it,
and got this, any hints pls ?
Unhandled Exception: System.InvalidOperationException: No connection string
name
d 'db5Entities' could be found in the application config file.
at System.Data.Entity.Internal.LazyInternalConnection.get_
ConnectionHasModel(
)
at System.Data.Entity.Internal.LazyInternalContext.InitializeContext()
at System.Data.Entity.Internal.InternalContext.
GetEntitySetAndBaseTypeForType
(Type entityType)
at System.Data.Entity.Internal.Linq.InternalSet`1.Initialize()
at System.Data.Entity.Internal.Linq.InternalSet`1.get_InternalContext()
at System.Data.Entity.Infrastructure.DbQuery`1.System.Linq.IQueryable.get
_Pro
vider()
at System.Linq.Queryable.Any[TSource](IQueryable`1 source, Expression`1
predi
cate)
at StockAnalyze.Analyze.ProcessRawStockData(String stock, Int32 mv_days,
Int3
2 p_days)
c*********e
发帖数: 16335
2
web.config里没有這個connection name.

string

【在 w*s 的大作中提到】
: 1. in F:charp, i have my c# application project, and a DB file called db5.
: mdx
: 2. in my c# project i uses this db5.mdx, using EF
: 3. now i copied the exe built from c# project to another folder and run it,
: and got this, any hints pls ?
: Unhandled Exception: System.InvalidOperationException: No connection string
: name
: d 'db5Entities' could be found in the application config file.
: at System.Data.Entity.Internal.LazyInternalConnection.get_
: ConnectionHasModel(

1 (共1页)
进入DotNet版参与讨论
相关主题
[合集] some1 using nhibernate?String::Format doesn't take integer type params
Is there LINQ for VS 2005? csharp的文字输入控件能够实现drag吗?
Demos from MIX08how to display a number with the desired digits
SilverLight能做动画吗?nHibernate mapping question
System.Data.SqlClient.SqlException: A network-related or instance -specific errorDo we still need DAL
请教 pass by value or reference 的问题有人试过.Net 3.0吗?
HttpWebRequest小程序Converting a CSV file to XML using LinQ
[合集] asp 打开oracle数据库问题。是不是最近dotnet不济了
相关话题的讨论汇总
话题: string话题: config话题: connection