problems when building database

Topics: Data Access Application Block
Aug 31, 2010 at 4:38 PM

Good morning

I am new to Enterprise Library, I am using Data Access Block, I'm using Net Framework 4 with Enterprise Library 5, and I presented the following problem:

El ensamblado al que se hace referencia "DataLayer, Version=, Culture=neutral, processorArchitecture=MSIL" no se pudo resolver porque tiene una dependencia de "System.Data.OracleClient, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" que no se encuentra en la versión de .NET Framework de destino actual ".NETFramework,Version=v4.0,Profile=Client". Quite las referencias a ensamblados que no se encuentran en la versión de .NET Framework de destino o cambie el destino del proyecto.

And in my class I'm not using any reference to Oracle, because I'm using SQL Server only.

using System;
using System.Data;
using System.Data.Common;
using System.Collections.Generic;
using Microsoft.Practices.EnterpriseLibrary.Data.Sql;
using System.Xml;
using System.Configuration;

If i look the propertys in the project file you see:

    <Reference Include="Microsoft.Practices.EnterpriseLibrary.Common, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
    <Reference Include="Microsoft.Practices.EnterpriseLibrary.Data, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
    <Reference Include="Microsoft.Practices.ServiceLocation, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
<object id="tts_flash" width="18" height="18" type="application/x-shockwave-flash" data=""> <param name="movie" value="" /> <param name="flashvars" value="sound_name=&sound_name_cb=_TTSSoundFile" /> <param name="wmode" value="transparent" /> <param name="allowScriptAccess" value="always" /> </object>
What can i do to solve the problem?
Note: sorry my English is bad,.

Sep 1, 2010 at 1:50 AM

Looks like you're using the .NET 4 Client Profile.  Please target the full .NET Framework because it has some dependencies which are not included in the client profile.  Right click on your project and select .NET Framework 4.0 from the list of Target Framework.


Sarah Urmeneta
Global Technology & Solutions
Avanade, Inc.

Sep 1, 2010 at 1:53 PM

After a few minutes of playing with the settings I could reach that conclusion.

Thank you very much for your timely response