Using .NET Components in ASP via Interophttp://forums.asp.net/t/316993.aspx/1?Using+NET+Components+in+ASP+via+InteropSat, 23 Aug 2003 01:01:30 -0400316993316993http://forums.asp.net/p/316993/316993.aspx/1?Using+NET+Components+in+ASP+via+InteropUsing .NET Components in ASP via Interop I have successfully started using some .NET components inside some legacy ASP code. My question has to do with the use of values from the Web.Config file. Part of the site I'm working on is now in .NET and I am migrating the code over to .NET. I have used the Web.Config to store the ConnectionString and broken up the code into tiers. The ASP / ASP.NET code is the presentation layer, the .NET Components and COM Interop interfaces provide the Business Layer and Stored Procedures house most of the Data layer. When I call a .NET Component from ASP to update a database table, the business layer usually extracts the ConnectionString from the Web.Config and processes the request. How, if possible, can a .NET Component used as a COM object in ASP still retrieve this ConnectionString from the Web.Config? If it is not possible to do what I am asking, what is the next best approach from an object oriented perspective? Thanks 2003-08-22T17:23:07-04:00317411http://forums.asp.net/p/316993/317411.aspx/1?Re+Using+NET+Components+in+ASP+via+InteropRe: Using .NET Components in ASP via Interop We expose our connection strings through a web service that is only available to internal servers (i.e. there is no way you could access the web service from the internet). We did this because we have a Windows service that calls our class library, and the classes need connection strings. 2003-08-23T00:57:37-04:00