Microsoft Enterprise Library Access Remote server

  • Thread starter Thread starter raza
  • Start date Start date
R

raza

Hi,

I am using Enterprise library in development of web application. Till
now i have been accessing local server, but now i have to access a
remote server , here is part of my config file

<connectionStrings>
<connectionString name="TestCOnnection">
<parameters>
<parameter name="Database" value="Customer"
isSensitive="false" />
<parameter name="User ID" value="sa" isSensitive="false" />
<parameter name="Password" value="" isSensitive="true" />
<parameter name="server" value="ip-here"
isSensitive="false" />
</parameters>
</connectionString>

if i change the ip in the server tag , it doesnt connect and instead
request registry right to log exception

1) how can i connect remote server ? especially if website hosted in
shared hosting enviroment ?
2) How can i stop enterprise library from accessing event log for
loggin?wont be possible in shared enviroment

Please help.
 
I'm not sure why you can't access the remote server, but have you tried
accessing it using Server Explorer? Open your .config file with the
Enterprise Library Configuration console to change how exceptions are
logged. I don't know what your configuration file looks like, but I assume
you're using the defaults.
 
Thanks a lot for your reply .

Yes the server is accessible using Enterprise Manager etc . Its just
the enterprise library fails to connect to that server, any access
issue with some asp.net account or what ?

Can you post config file that does not have exceptions being logged to
event viewer ?

Thanks

<?xml version="1.0" encoding="utf-8"?>
<dataConfiguration>
<xmlSerializerSection
type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings,
Microsoft.Practices.EnterpriseLibrary.Data, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null">
<enterpriseLibrary.databaseSettings
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
defaultInstance="BailBooks"
xmlns="http://www.microsoft.com/practices/enterpriselibrary/08-31-2004/data">
<databaseTypes>
<databaseType name="Sql Server"
type="Microsoft.Practices.EnterpriseLibrary.Data.Sql.SqlDatabase,
Microsoft.Practices.EnterpriseLibrary.Data, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null" />
</databaseTypes>
<instances>
<instance name="BailBooks" type="Sql Server"
connectionString="BailBooksConnection" />
</instances>
<connectionStrings>
<connectionString name="BailBooksConnection">
<parameters>
<parameter name="Database" value="BailBooks"
isSensitive="false" />
<parameter name="User ID" value="sa" isSensitive="false" />
<parameter name="Password" value="" isSensitive="true" />
<parameter name="server" value="USMAN" isSensitive="false"
/>
</parameters>
</connectionString>
</connectionStrings>
</enterpriseLibrary.databaseSettings>
</xmlSerializerSection>
</dataConfiguration>
 
Back
Top