i am trying to port the web application made on VS.net 2003 to VS.net 2005 some exceptions are o
i have done all the steps to make it compatible as mentioned in the release notes of MS ent. library june 2005.
but still the problem has occurred.
Actually the problem is in the web.config file. when i build the application then it is okay and when i debug it then it throws the exception that the section name is in valid and the section "dataConfiguration" does not exist in the web.config and...........................
really the dataConfiguration section is exist in the file(dataConfiguration.config).
i also includes the refrences of MS Ent. library june2005.
but may be that i am not sure that which MS Ent. library is we used i think its janauary 2005 release but we lost the setup of that library and i am not sure that this library is compatible to VS.net2005
i also make the new web.config and dataConfiguration.config files.
but the problem is still there.
if somebody comes to help me then i will be vary greatful to him.
and i am using windows xp.
here is my web.config file
<?
xmlversion=" 1.0"?><
configurationxmlns="http://schemas.microsoft.com/
<
configSections><
sectionname=" icm"type="System.Configuration.NameValueS<
sectionname=" emailSettings"type=" System.Configuration.NameValueS<
sectionname=" windowSettings"type=" System.Configuration.NameValueS<
sectionname=" enterpriselibrary.configuration<
sectionname=" exceptionManagement"type=" Microsoft.ApplicationBlocks<
sectionname=" exceptionHandling"type=" System.Configuration.NameValueS<
sectionname=" customerComplaintHistory"type=" System.Configuration.NameValueS<
sectionname=" hostSettings"type=" System.Configuration.NameValueS<!--
<section name="log4net" type="System.Configuration.IgnoreSect<!--
AM-3107200 for Application Logging Utility--><
sectionname=
" windowsDomain"type=" System.Configuration.NameValueS<
sectionname=" LDAP"type="System.Configuration.NameValueS</
configSections><
appSettings><!--
To enable internal log4net logging specify the following appSettings key--><!--
<add key="log4net.Internal.Debug" value="true"/>--><!--
This section contains the log4net configuration settings--><!--
<add key="entLibConfigFile" value="Config\enterpriseLibrary-->
<
log4net><!--
Example of how to configure the AdoNetAppender to connect to MS SQL Server--><
appendername=" ADONetAppender_SqlServer"type=" log4net.Appender.AdoNetAppender"><
bufferSizevalue=" 1"/><
connectionTypevalue=" System.Data.SqlClient.SqlConnec<
connectionStringvalue="Server=131.222.150.4;Database=CMS_PIA;uid=cmsv4<
commandTextvalue=" INSERT INTO Log ([Date],[Thread],[Level],<
parameter><
parameterNamevalue=" @log_date"/><
dbTypevalue=" DateTime"/><!--
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date{yyyy'-'MM'-'dd HH':'mm':'ss'.'fff}" />
</layout>
--><
layouttype=" log4net.Layout.RawTimeStampLayo</
parameter><
parameter
><
parameterNamevalue=" @thread"/><
dbTypevalue=" String"/><
sizevalue=" 255"/><
layouttype=" log4net.Layout.PatternLayout"><
conversionPatternvalue="%thread"/></
layout></
parameter><
parameter><
parameterNamevalue=" @log_level"/><
dbTypevalue=" String"/><
sizevalue=" 50"/><
layouttype=" log4net.Layout.PatternLayout"><
conversionPatternvalue="%level"/></
layout></
parameter><
parameter><
parameterNamevalue=
" @logger"/><
dbTypevalue=" String"/><
sizevalue=" 255"/><
layouttype=" log4net.Layout.PatternLayout"><
conversionPatternvalue="%logger"/></
layout></
parameter><
parameter><
parameterNamevalue=" @message"/><
dbTypevalue=" String"/><
sizevalue=" 4000"/><
layouttype=" log4net.Layout.PatternLayout"><
conversionPatternvalue="%message"/></
layout></
parameter></
appender><!--
Setup the root category, add the appenders and set the default level--><
root><
levelvalue=" INFO"></level><
appender-refref=" ADONetAppender_SqlServer"/><!--
<appender-ref ref="A" />--></
root><!--
Specify the level for some specific categories--><
loggername=" CMS.Logging"><!--
<appender-ref ref="B" />--><
appender-refref=" ADONetAppender_SqlServer"/></
logger></
log4net></
appSettings
><
enterpriselibrary.configuration<
configurationSections><
configurationSectionname="dataConfiguration"encrypt= "false"><
storageProvidertype=" XmlFileStorageProviderData"name=" XML File Storage Provider"path=" E:\Inetpub\wwwroot\CMS_PIA\<
dataTransformertype=" XmlSerializerTransformerData"name=" Xml Serializer Transformer"><
includeTypes /></
dataTransformer></
configurationSection></
configurationSections><
keyAlgorithmStorageProvidernil=
"true" /></
enterpriselibrary.configuration<
exceptionManagementmode="on"><
publisherassembly=" CMS"type="CMS.Util.CMSExceptionPublisher"exclude="* "include="* "/></
exceptionManagement><
exceptionHandling><
addkey="DebugLogFolder
"value=" E:\CMSLOGS\"/></
exceptionHandling><
emailSettings><
addkey=" Subject"value=" BKME Complaint status"/><
addkey=" EmailBodyOnRegisteration"value=" You have been assigned a complaint, and your supervisor knows it."/><
addkey=" EmailBodyOnRedirect"value
=" You have been assigned a redirected complaint, your supervisor knows it as well."/></
emailSettings><
windowsDomain><
addkey=" windowsDomain"value=" CORP\"></add><
addkey=" domainLdap"value=" LDAP://DC=corp,DC=dgt,DC=com"></add></
windowsDomain><
windowSettings><
addkey=" isNewComplaintHistory"value=" yes"/></
windowSettings><
LDAP><
addkey=" Enabled"value=" no"/></
LDAP><
hostSettings><
addkey=" ConnectionString"value="" /><
addkey=
" CommunicationAdapter"value=" TCSSInterface.TCSS"/><
addkey=" CommunicationAdapterAssembly"value=" TCSSInterface"/></
hostSettings><
customerComplaintHistory><
addkey=" NoOfHistoryRecordsToFetch"value=" 6"/></
customerComplaintHistory><
icm><
addkey
=" logFile"value="" /><
addkey=" iniFile"value="" /></
icm><
system.web><
identityimpersonate=" false"userName=""password=""/><!--
DYNAMIC DEBUG COMPILATIONSet compilation debug="true" to enable ASPX debugging. Otherwise, setting this value to
false will improve runtime performance of this application.
Set compilation debug="true" to insert debugging symbols (.pdb information)
into the compiled page. Because this creates a larger file that executes
more slowly, you should set this value to true only when debugging and to
false at all other times. For more information, refer to the documentation about
debuggingASP.NET files.
--><
compilationdefaultLanguage="c#"debug=" true"><
assemblies><
addassembly=" System.Management, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/><
addassembly=" System.Configuration.Install, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/><
add
assembly=" System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/><
addassembly=" System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/><
addassembly=" System.Data.OracleClient, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/><
addassembly=" System.Deployment, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/><
addassembly=" Microsoft.SqlServer.SString, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/></ assemblies></compilation
><!--
CUSTOM ERROR MESSAGESSet customErrors mode="On" or "RemoteOnly" to enable custom error messages, "Off" to disable.
Add <error> tags for each of the errors you want to handle.
"On" Always display custom (friendly) messages.
"Off" Always display detailedASP.NET error information.
"RemoteOnly" Display custom (friendly) messages only to users not running
on the local Web server. This setting is recommended for security purposes, so
that you do not display application detail information to remote clients.
--><
customErrorsmode=" Off"/><!--
AUTHENTICATIONThis section sets the authentication policies of the application. Possible modes are "Windows",
"Forms", "Passport" and "None"
"None" No authentication is performed.
"Windows" IIS performs authentication (Basic, Digest, or Integrated Windows) according to
its settings for the application. Anonymous access must be disabled in IIS.
"Forms" You provide a custom form (Web page) for users to enter their credentials, and then
you authenticate them in your application. A user credential token is stored in a cookie.
"Passport" Authentication is performed via a centralized authentication service provided
by Microsoft that offers a single logon and core profile services for member sites.
--><
authenticationmode=" Windows"/><!--
AUTHORIZATIONThis section sets the authorization policies of the application. You can allow or deny access
to application resources by user or role. Wildcards: "*" mean everyone, "?" means anonymous
(unauthenticated) users.
--><
authorization><
allowusers=" *"/><!--
Allow all users--><!--
<allow users="[comma separated list of users]"roles="[comma separated list of roles]"/>
<deny users="[comma separated list of users]"
roles="[comma separated list of roles]"/>
--></
authorization><!--
APPLICATION-LEVEL TRACE LOGGINGApplication-level tracing enables trace log output for every page within an application.
Set trace enabled="true" to enable application trace logging. If pageOutput="true", the
trace information will be displayed at the bottom of each page. Otherwise, you can view the
application trace log by browsing the "trace.axd" page from your web application
root.
--><
traceenabled=" false"requestLimit=" 10"pageOutput=" false"traceMode=" SortByTime"localOnly=" true"/>
<!--
SESSION STATE SETTINGSBy defaultASP.NET uses cookies to identify which requests belong to a particular session.
If cookies are not available, a session can be tracked by adding a session identifier to the URL.
To disable cookies, set sessionState cookieless="true".
--><
sessionStatemode=" InProc"stateConnectionString=" tcpip=127.0.0.1:42424"sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"cookieless="false"timeout="20"/><!--
GLOBALIZATION
This section sets the globalization settings of the application.
--><
globalizationrequestEncoding="utf-8"responseEncoding= "utf-8"/><
httpHandlers><
addverb=" POST,GET"path=" ajaxpro/*.ashx"type=" AjaxPro.AjaxHandlerFactory, AjaxPro"/><
addverb=" GET"path="FtbWebResource.axd
"type="FreeTextBoxControls.AssemblyRes</
httpHandlers><
pagesvalidateRequest="false"/></
system.web><!--
For Ldap login.--><
locationpath=" Pages/Aspx/login.aspx"><
system.web><
authorization><
denyusers=" ?"/><
allowusers=
" *"/><!--
Allow all users--></
authorization></
system.web></
location></
configuration>here is the sample of my dataConfiguration.config file
<?
xmlversion=" 1.0"encoding=" utf-8"?><
dataConfiguration><
xmlSerializerSectiontype="Microsoft.Practices.EnterpriseL<
enterpriseLibrary.databaseSetti<
databaseTypes><
databaseTypename=" Sql Server"type
=" Microsoft.Practices.EnterpriseL</
databaseTypes><
instances><
instancename=" Database Instance"type=" Sql Server"connectionString=" CMS_Con" /></
instances><
connectionStrings><
connectionStringname="CMS_Con"><
parameters><
parametername=" database"value=" CMS_PIA"isSensitive=" false" /><
parametername=" Integrated Security"value=" True"isSensitive=" false" /><
parametername=" server"value="131.222.150.4
"isSensitive= "false" /><
parametername=" User ID"value=" cmsv4" /><
parametername=" Password"value=" cmsv4" /></
parameters></
connectionString></
connectionStrings></
enterpriseLibrary.databaseSetti</
xmlSerializerSection></
dataConfiguration>
and i am using windows xp.
Regards
Talha

