|
security
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Data Acess aplication blockI have Microsoft Enterprise Library 2005 installed on my local system. I m also using ASp.net 1.1 And C3 as coding language , I have MS Sql Server 2000. I am developing a web application in which i am using data Access Application Block for data access. I have a remote web n data server with asp.net 1.1 support the application is working fine here on the local server(web & data). when i change the data server path to the remote server it also working fine but When I uploaded the application on the remote server n tested there it gives me the following err ex.message was >>>>>The type initializer for ex.Source was>>>>>"Microsoft.Practices.EnterpriseLibrary.Data.Instrumentation.DataConnectionFailedEvent" >>>>>threw an exception. .............Microsoft.Practices.EnterpriseLibrary.Data ex.trace was at Microsoft.Practices.EnterpriseLibrary.Data.Instrumentation.DataConnectionFailedEvent.Fire(String connectionString) at Microsoft.Practices.EnterpriseLibrary.Data.Instrumentation.DataInstrumentationFacade.ConnectionFailed(String connectionString) at Microsoft.Practices.EnterpriseLibrary.Data.Database.OpenConnection() at Microsoft.Practices.EnterpriseLibrary.Data.Database.ExecuteReader(DBCommandWrapper command) at property.m4.Button2_Click(Object sender, EventArgs e) Plz help me why this is happening........... Mukesh Kumar agarwal Delhi India Mukesh,
Are you sure that the user that ASP.NET is running under has access to the database you are trying to reach? It seems as if this is an error on connecting. Hope this helps. -- Show quoteHide quote- Nicholas Paldino [.NET/C# MVP] - mvp@spam.guard.caspershouse.com "Mukesh" <efextra@newsgroups.nospam> wrote in message news:u6JBICB1GHA.4264@TK2MSFTNGP05.phx.gbl... > Hi > > I have Microsoft Enterprise Library 2005 installed on my local system. > I m also using ASp.net 1.1 And C3 as coding language , I have MS Sql > Server 2000. > > I am developing a web application in which i am using data Access > Application Block for data access. > > I have a remote web n data server with asp.net 1.1 support > > the application is working fine here on the local server(web & data). > > when i change the data server path to the remote server it also working > fine but > When I uploaded the application on the remote server n tested there it > gives me the following err > > > ex.message was > > > >>>>>The type initializer for > >>>>>"Microsoft.Practices.EnterpriseLibrary.Data.Instrumentation.DataConnectionFailedEvent" > >>>>>threw an exception. > > ex.Source was > > ............Microsoft.Practices.EnterpriseLibrary.Data > > ex.trace was > > at > Microsoft.Practices.EnterpriseLibrary.Data.Instrumentation.DataConnectionFailedEvent.Fire(String > connectionString) at > Microsoft.Practices.EnterpriseLibrary.Data.Instrumentation.DataInstrumentationFacade.ConnectionFailed(String > connectionString) at > Microsoft.Practices.EnterpriseLibrary.Data.Database.OpenConnection() at > Microsoft.Practices.EnterpriseLibrary.Data.Database.ExecuteReader(DBCommandWrapper > command) at property.m4.Button2_Click(Object sender, EventArgs e) > > > Plz help me why this is happening........... > > Mukesh Kumar agarwal > Delhi > India > > > > > The error you are getting is because the enterprise library wants to write
events to the event log and setting this up requires registry permissions. You need to installutil the dlls for the enterprise library (this is covered in the docs somewhere). The reason it is writing to the event log is because the connection failed. If you setup the event log access correctly then you will have an eventlog entry telling you why the connection failed. HTH Ciaran O'Donnell Show quoteHide quote "Mukesh" wrote: > Hi > > I have Microsoft Enterprise Library 2005 installed on my local system. > I m also using ASp.net 1.1 And C3 as coding language , I have MS Sql > Server 2000. > > I am developing a web application in which i am using data Access > Application Block for data access. > > I have a remote web n data server with asp.net 1.1 support > > the application is working fine here on the local server(web & data). > > when i change the data server path to the remote server it also working > fine but > When I uploaded the application on the remote server n tested there it > gives me the following err > > > ex.message was > > > >>>>>The type initializer for > >>>>>"Microsoft.Practices.EnterpriseLibrary.Data.Instrumentation.DataConnectionFailedEvent" > >>>>>threw an exception. > > ex.Source was > > .............Microsoft.Practices.EnterpriseLibrary.Data > > ex.trace was > > at > Microsoft.Practices.EnterpriseLibrary.Data.Instrumentation.DataConnectionFailedEvent.Fire(String > connectionString) at > Microsoft.Practices.EnterpriseLibrary.Data.Instrumentation.DataInstrumentationFacade.ConnectionFailed(String > connectionString) at > Microsoft.Practices.EnterpriseLibrary.Data.Database.OpenConnection() at > Microsoft.Practices.EnterpriseLibrary.Data.Database.ExecuteReader(DBCommandWrapper > command) at property.m4.Button2_Click(Object sender, EventArgs e) > > > Plz help me why this is happening........... > > Mukesh Kumar agarwal > Delhi > India > > > > > > Hi all
As per my earlier conversation with Ciaran (thx for reply) I have installed the MS APplication block on the server , when i ran Build Enterprise Library file and Install Services from (batch files ) programme files menu it was asking for visual studio 2003 , I have only .net framework on the server how can i use the MS application block data access library on my server plz help... Mukesh Agarwal mukesh.n***@gmail.com Delhi India Ciaran O''Donnell wrote: Show quoteHide quote > The error you are getting is because the enterprise library wants to write > events to the event log and setting this up requires registry permissions. > You need to installutil the dlls for the enterprise library (this is covered > in the docs somewhere). The reason it is writing to the event log is because > the connection failed. If you setup the event log access correctly then you > will have an eventlog entry telling you why the connection failed. > > HTH > > Ciaran O'Donnell > > "Mukesh" wrote: > >> Hi >> >> I have Microsoft Enterprise Library 2005 installed on my local system. >> I m also using ASp.net 1.1 And C3 as coding language , I have MS Sql >> Server 2000. >> >> I am developing a web application in which i am using data Access >> Application Block for data access. >> >> I have a remote web n data server with asp.net 1.1 support >> >> the application is working fine here on the local server(web & data). >> >> when i change the data server path to the remote server it also working >> fine but >> When I uploaded the application on the remote server n tested there it >> gives me the following err >> >> >> ex.message was >> >> >> >>>>>The type initializer for >> >>>>>"Microsoft.Practices.EnterpriseLibrary.Data.Instrumentation.DataConnectionFailedEvent" >> >>>>>threw an exception. >> >> ex.Source was >> >> .............Microsoft.Practices.EnterpriseLibrary.Data >> >> ex.trace was >> >> at >> Microsoft.Practices.EnterpriseLibrary.Data.Instrumentation.DataConnectionFailedEvent.Fire(String >> connectionString) at >> Microsoft.Practices.EnterpriseLibrary.Data.Instrumentation.DataInstrumentationFacade.ConnectionFailed(String >> connectionString) at >> Microsoft.Practices.EnterpriseLibrary.Data.Database.OpenConnection() at >> Microsoft.Practices.EnterpriseLibrary.Data.Database.ExecuteReader(DBCommandWrapper >> command) at property.m4.Button2_Click(Object sender, EventArgs e) >> >> >> Plz help me why this is happening........... >> >> Mukesh Kumar agarwal >> Delhi >> India >> >> >> >> >> >>
Generating RSA key with different public exponent
Encrypt/Decrypt Username Password using Public Key RSACryptoServiceProvider Accessing certificate services with .net security problem with xp_cmdshell AzAuthorizationStore.Initialize on ADAM Url throws FileNotFoundException Code Access Security - Evidence What User/Security Principal Is Needed to Access Network Via Serv what about LDAP? IOPermission while saving configuration file |
|||||||||||||||||||||||