473,394 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

COM wrapper around a asp.net business Logic DLL Problem

Hi,

I have created a asp.net online booking service for a client using n
tier logic producing the follwing dll's:

[Individual projects]
bookings_business.dll
bookings_config.dll
bookings_data.dll

[asp.net web project]
bookings.dll

The client requires a COM interface into the business methods, to allow
server sided programs to access the data.

I have wrapped the business calls via a interface class
(as shown here: http://www.csharphelp.com/archives/archive281.html ),
which is now a separate class in the bookings_business.dll.

bookings_business.dll was registered via using global assembly cache
util & regasm:
(gacutil -I BookingsBusiness.dll
Regasm BookingsBusiness.dll
/tlb:BookingsBusiness.tlb
)

The COM dll appears in windows/assembly directory & Oleview.exe can be
used to view the interface. (but NOT create the instance).

The problem is that the business logic cannot seem to successfully call
the methods in the data & config dll's. The config dll uses asp.net's
context.Cache to get a string out of the web.config file.

I have set web.config's <identity impersonate="true"/>.

When a new instance is created using the VC++ client or oleview a
exception is generated (IClassFactory: CreateInstance Failed). However
if I remove the call to a config or data dll call, the instance is good
in both VC++ client & oleview. This proves the only problem seems to be
accessing the referenced non COM enabled
dll's.

Can someone please explain how this scenario can be successfully
implemented. Can asp.net's runtime be made to operate as if a session
has been made to start from a web service or .aspx pageload, even
though it hasn't & does anyone have a worked example.
Thanyou in advance.

David Pendry.

Nov 16 '05 #1
0 1046

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Simon Harvey | last post by:
Hello Chaps, Me and a collegue have been talking about where the best place to put business logic is. I think that the best place is where Microsoft suggest - in a seperate business logic...
3
by: Simon Harvey | last post by:
Hi, In my application I get lots of different sorts of information from databases. As such, a lot of information is stored in DataSets and DataTable objects. Up until now, I have been passing...
2
by: SpotNet | last post by:
Hello Newsgroup, Started a job where an Access 2003 database is accessed with a custom assembly that wraps\encapsulates the relevant System.Data.OleDb classes needed for the application. Briefly...
25
by: Stuart Hilditch | last post by:
Hi all, I am hoping that someone with some experience developing nTier apps can give me some advice here. I am writing an nTier web app that began with a Data Access Layer (DAL), Business...
3
by: markww | last post by:
Hi, I have a wrapper around some 3rd party database library function. The pseudo code looks like the following - it is meant to open a table in a database, extract values from a table, then copy...
16
by: MS newsgroup | last post by:
I don't have clear reasons why we need business logic layer and data logic layer instead of having only data logic layer. Are there any good reasons for that?
2
by: Chris Zopers | last post by:
Hello, I would like to know what's the best way to implement a business logic layer between my user interface and my database. I would say I'd make a dll-project for the business logic layer...
9
by: SAL | last post by:
Hello, I have a Dataset that I have table adapters in I designed using the designer (DataLayer). I have a business logic layer that immulates the DataLayer which may/may not have additional logic...
5
by: =?Utf-8?B?TWFyaw==?= | last post by:
Hi... I've got a .Net client to a soap service that works for the most part, but there are a couple of things I'd like to improve: 1) the first request to the client wrapper always takes...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.