CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.microsoft_application_blocks Tags:
Item Type: NewsGroup Date Entered: 7/27/2005 6:34:54 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 5 Views: 17 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
6 Items, 1 Pages 1 |< << Go >> >|
LesioS
Asp.Net User
Enterprise Library: Data Access7/27/2005 6:34:54 AM

0/0

I'm starting new project & want to take some training in Enterprise Library. So I've made simple winform and have added into references to Enterprise dll Data and Configuration, but not to Common (which BTW is also copied into Debug directory).
I've following code:
  private void button1_Click(object sender, System.EventArgs e)
  {
   string spName;

   if(ofdPlikDanych.ShowDialog() == DialogResult.OK)
   {
    fileName = ofdPlikDanych.FileName;
   }

   Database db = DatabaseFactory.CreateDatabase(); <<<<

   ...
  }

Compilation goes well, but on run-time when execution reaches <<<< point my personal firewall reports that myapp.exe calls csc.exe compiler and after that System.InvalidCastException ("Specified cast is not valid.") is thrown.
During execution EntLib DataAccess samples csc.exe is not called and everything goes well.
Could anyone explain me what I'm doing wrong?


Best regards,
LesioS
haidar_bilal
Asp.Net User
Re: Enterprise Library: Data Access7/27/2005 9:49:54 AM

0/0

You may want to check my article on aspalliance.com :

Get Started with the Enterprise Library Data Access Application Block

Regards


Bilal Hadiar, MCP, MCTS, MCPD, MCT
Microsoft MVP - Telerik MVP
LesioS
Asp.Net User
Re: Enterprise Library: Data Access7/27/2005 10:55:10 AM

0/0

Thanks, for very useful article. But it still doesn't explain strange behaviour of code: why it calls csc compiler in the middle of execution and throws strange exception...
References are made according to your advice, so it's not this. The only one think which comes to my mind is that there's a minor error in conf files, which is not seen for a 1st look. I'll try to set conf files again by EntLib tool and will sent the result info Wink [;)]

Best regards,
LesioS
haidar_bilal
Asp.Net User
Re: Enterprise Library: Data Access7/27/2005 11:01:57 AM

0/0

Hi:
Try to debug you application so that you follow it step by step.

Regards


Bilal Hadiar, MCP, MCTS, MCPD, MCT
Microsoft MVP - Telerik MVP
LesioS
Asp.Net User
Re: Enterprise Library: Data Access7/27/2005 11:25:20 AM

0/0

I've done it, of course... When active point reaches Database db = DatabaseFactory.CreateDatabase(); exception is thrownSad [:(] From message nothin interesting can be read. And just before it csc compiler is called by my app...
Best regards,
LesioS
LesioS
Asp.Net User
Re: Enterprise Library: Data Access7/27/2005 9:25:33 PM

0/0

I've tried to load my app.config file to EntLIb Configuration tool and received... unhandled exception Smile So I've created the same confoguration file and found the difference. Lack of tag

<dataTransformer
xsi:type="XmlSerializerTransformerData" name="Xml Serializer Transformer">
   <includeTypes />
</
dataTransformer>

in my config file was reason of exception throwing. In fact my app during runtime was calling csc compiler what was catch by my firewall, but after permanent permit for such call everything looks good now Wink


Best regards,
LesioS
6 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Visual Basic 2008 For Dummies Authors: Bill Sempf, Pages: 360, Published: 2008
Expert ASP.NET 2.0 Advanced Application Design: Advanced Application Design Authors: Dominic Selly, Andrew Troelsen, Tom Barnaby, Pages: 459, Published: 2005
Pro ASP.NET for SQL Server: High Performance Data Access for Web Developers Authors: Brennan Stehling, Pages: 408, Published: 2007
The Definitive Guide to the Microsoft Enterprise Library Authors: Keenan Newton, Pages: 492, Published: 2007
Pro Scalable .NET 2.0 Application Designs Authors: Joachim Rossberg, Rickard Redler, Pages: 507, Published: 2005
Professional ASP.NET 2.0 Databases Authors: Thiru Thangarathinam, Pages: 504, Published: 2007
C# for Artists: The Art, Philosophy, and Science of Object-Oriented Programming Authors: Rick Miller, Pages: 0, Published: 2008
Pro Ajax and the .NET 2.0 Platform Authors: Daniel Woolston, Pages: 463, Published: 2006
ASP.NET 2.0: Your Visual Blueprint for Developing Web Applications Authors: Chris Love, Pages: 339, Published: 2007

Web:
Enterprise Library 2.0 Data Access Application Block Jan 8, 2006 ... The Enterprise Library 2.0 Data Access Application Block can help you with a lot of your data access plumbing in your . ...
ASP.NET.4GuysFromRolla.com: Working with the Enterprise Library's ... Mar 9, 2005 ... The Enterprise Library contains application blocks for caching, configuration, data access, cryptography, exception handling, ...
Using the Enterprise Library Data Access Block for .NET 2.0 Mar 16, 2006 ... Writing database-access code is a repetitious and time-consuming task, but now that it's available as a reusable Enterprise Data Access ...
Get Started with the Enterprise Library Data Access Application ... If you have downloaded Microsoft's Enterprise Library Data Access Application Block, you may have had difficulty getting started with it.
Enterprise Library 3.1 - May 2007 This page provides an overview of the Enterprise Library 3.1. ... For example, the Data Access Application Block provides access to the most frequently used ...
Data Access Application Block This section provides an overview of the Enterprise Library Data Access Application Block. An application block is reusable and extensible source code- based ...
DatabaseConfigurationView Class in Enterprise Library Data Access ... Mar 13, 2007 ... DatabaseConfigurationView Class in Enterprise Library Data Access Application Block - Read Database Connection Strings and Configuration ...
Enterprise Library 3.0 Data Access Application Block Jul 12, 2007 ... Data Access Application Block(DAAB) simplifies development tasks that implement common data access functionality.The DAAB provides access to ...
patterns & practices – Enterprise Library - Home Now I am learning how to use the Data Access Application Block by following the excercise from Enterprise Library Hands On Lab. ...
CodeProject: Microsoft Enterprise Library Data Access Block [DAAB ... Microsoft Enterprise Library Data Access Block [DAAB] on Oracle Provider [ODP. NET]; Author: Rain Man Alex; Section: Database; Chapter: Database.

Videos:
Cisco Enterprise TV Video Data Sheet Cisco Enterprise TV is an interactive application that enables organizations to deliver on-demand video and broadcast live TV channels over an IP ...
Cisco Digital Signage Video Data Sheet Cisco Digital Signage provides scalable, centralized management and publishing of high-quality content to networked, on-premise digital signage ...
An Introduction to SQLite Google TechTalks May 31, 2006 Richard Hipp ABSTRACT SQLite is a small C library that implements a self-contained, embeddable, zero ...
(888)CPE1.Org_Microsoft_Office ... Windows SharePoint Services Version Comparison Summary Windows SharePoint Services is a versatile Windows Server technology that organizations ...
Eggs Soup
Charlie Rose - A discussion about North Korea / Liev Schreiber Segment 1: A discussion about North Korea with Donald Gregg, former U.S. Ambassador to South Korea and Wendy Sherman, Former Special Advisor to ...
Charlie Rose - Richard Reeves / Tony Judt Segment 1: Presidential historian Richard Reeves discusses the life and legacy of President Ronald Reagan. His book is called "President Reagan ...
Reversal of Fortune: Casino Gambling in Indian Country Often described by some media writers as the "new buffalo," casino gambling has allowed a few tribes to reverse centuries-long conditions of ...
Long Beach City Council Meeting Long Beach City Council Meeting




Search This Site:










menu in master page

dnn data provider on ingres

custom tool and embedded resource

re: dotnetnuke on linux

new chat sample at gotdotnet

skinning - image problem

changing the provider connectionstring

how to set asp.net version in iis?

deleting files from hard disk

runtime comexception when adding directory object

released: page elements module for dnn3 v001.000 pa and source

number of users

how to find whether the string is in encrypted format or not???

help, vwd and browser difference

virtual root to d:\vbportal\vbportal (configuration won't work)

web dev environment settings

3.0.5 add/user add/role issues

can this be done? is it already available?

install from 4.0.1 to 4.0.2 - upgrade screen appears repeatedly

active directory access

vertical housemenu question

sql server database projects

hyperlink to a .asp form

ms tabstrip - any .net 2.0 update around

page_loadcomplete event not firing on content page

how to link a sub tab to an external link.

ascx skin designs

portal expiry date - how does this work?

migrating anonymous profiles

enable some admin options

 
All Times Are GMT