Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 01, 2012 05:20 AM by TimoYang
Member
4 Points
7 Posts
Mar 02, 2012 12:06 AM|LINK
Hi Guys ,
When I try to connect database through Entity Framework its gives me exception on .net framework 4.0. window 7 x64
{"The type initializer for 'EntityBid' threw an exception."}
Message:Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Source:System.Data.Entity
TypeName:EntityBid
But it works perfectly on .net framework 3.5
Thanks in Advance
All-Star
135142 Points
21676 Posts
Moderator
MVP
Mar 02, 2012 04:15 AM|LINK
do you connect EF to what database?
222 Points
51 Posts
Mar 02, 2012 04:22 AM|LINK
Hello,
Can you please tell us that did you tried to connect to which db server by EF?
Mar 02, 2012 05:44 AM|LINK
Thanks Buddy for your reply
I have been using MS SQL Server 2008 R2 Standard Edition and edmx file , that is working good on .net framework 4 and System.data.Entity(3.5)
But on .net framework(4.0) and System.Data.Entity(4.0) it does not work.
Mar 02, 2012 06:54 AM|LINK
what do you have on entitybid constructor ?
118619 Points
18779 Posts
Mar 04, 2012 12:25 AM|LINK
Hello mishfaq:)
What kind of technology are you now using?Database-first?Model-first or Code-first?
Where is the error thrown out?
Reguards!
Mar 04, 2012 09:07 PM|LINK
Hi Decker.
I tried all three Database-first,Model-first and Code-first on .net framework 4.0 at window 7 x64. They are working fine on .netframework 3.5 on same operating system and also on window server 2003 x86 but it does not work on window 7 x64.
Regards
mishfaq
Apr 26, 2012 12:03 AM|LINK
Hi Guys,
I am still waiting for your reply .If you have an answer
Thanks
Apr 26, 2012 01:05 AM|LINK
We are now analyzing your problem,and plz wait for a while……
If possible,would you mind please offering us your steps of doing things with codes for us to re-produce your issue?
Apr 26, 2012 03:26 AM|LINK
mishfaq I am still waiting for your reply
me too! I have asked what you have on the constructor.
mishfaq
Member
4 Points
7 Posts
Entity Framework on .net Framework 4.0
Mar 02, 2012 12:06 AM|LINK
Hi Guys ,
When I try to connect database through Entity Framework its gives me exception on .net framework 4.0. window 7 x64
{"The type initializer for 'EntityBid' threw an exception."}
Message:Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Source:System.Data.Entity
TypeName:EntityBid
But it works perfectly on .net framework 3.5
Thanks in Advance
ignatandrei
All-Star
135142 Points
21676 Posts
Moderator
MVP
Re: Entity Framework on .net Framework 4.0
Mar 02, 2012 04:15 AM|LINK
do you connect EF to what database?
daisydain
Member
222 Points
51 Posts
Re: Entity Framework on .net Framework 4.0
Mar 02, 2012 04:22 AM|LINK
Hello,
Can you please tell us that did you tried to connect to which db server by EF?
mishfaq
Member
4 Points
7 Posts
Re: Entity Framework on .net Framework 4.0
Mar 02, 2012 05:44 AM|LINK
Thanks Buddy for your reply
I have been using MS SQL Server 2008 R2 Standard Edition and edmx file , that is working good on .net framework 4 and System.data.Entity(3.5)
But on .net framework(4.0) and System.Data.Entity(4.0) it does not work.
ignatandrei
All-Star
135142 Points
21676 Posts
Moderator
MVP
Re: Entity Framework on .net Framework 4.0
Mar 02, 2012 06:54 AM|LINK
what do you have on entitybid constructor ?
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Entity Framework on .net Framework 4.0
Mar 04, 2012 12:25 AM|LINK
Hello mishfaq:)
What kind of technology are you now using?Database-first?Model-first or Code-first?
Where is the error thrown out?
Reguards!
mishfaq
Member
4 Points
7 Posts
Re: Entity Framework on .net Framework 4.0
Mar 04, 2012 09:07 PM|LINK
Hi Decker.
I tried all three Database-first,Model-first and Code-first on .net framework 4.0 at window 7 x64. They are working fine on .netframework 3.5 on same operating system and also on window server 2003 x86 but it does not work on window 7 x64.
Regards
mishfaq
mishfaq
Member
4 Points
7 Posts
Re: Entity Framework on .net Framework 4.0
Apr 26, 2012 12:03 AM|LINK
Hi Guys,
I am still waiting for your reply .If you have an answer
Thanks
mishfaq
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Entity Framework on .net Framework 4.0
Apr 26, 2012 01:05 AM|LINK
Hello mishfaq:)
We are now analyzing your problem,and plz wait for a while……
If possible,would you mind please offering us your steps of doing things with codes for us to re-produce your issue?
Reguards!
ignatandrei
All-Star
135142 Points
21676 Posts
Moderator
MVP
Re: Entity Framework on .net Framework 4.0
Apr 26, 2012 03:26 AM|LINK
me too! I have asked what you have on the constructor.