Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 325193
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T09:11:38+00:00 2026-05-12T09:11:38+00:00

Ok i created a .net assembly and it works fine from my asp.net website.

  • 0

Ok i created a .net assembly and it works fine from my asp.net website. I now want to host it as COM, so i can use it on an old legacy asp website. It kinda works, except it won’t read the appsettings from the configuration file.

I would think it should read it from the same folder where i registered my assembly with regasm and where the .dll resides. I tried copying the config file to two extra files (in case it read from a different named file besides “assembly-file-name”+.config
The two files are app.config and application.config – it doesn’t seem to read from any of them.

Where does my .net assembly read its configuration from when hosted as COM?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T09:11:38+00:00Added an answer on May 12, 2026 at 9:11 am

    If by COM you mean a COM application, then you should put your configuration in a file named after the EXE.
    YourApp.Exe -> YourApp.exe.config

    If by COM you mean COM+, then take a look at http://blogs.msdn.com/heikkiri/archive/2005/11/10/491568.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a .NET assembly DLL that is created on-the-fly from pre-compiled code in
Created .NET WCF service, tested it - works. Generated schemas from Data and service
I created an ASP.NET MVC 2.0 Application. It ran fine at first test and
I'm trying to use CreateApplicationHost to create an Asp.Net application host for a simple
I have a website created in .NET where users are required to register/login to
I created MVC ASP.Net Web application and tried insert Thai language data to SQL
I'm trying to rebuild zlib.net and create an assembly I can reference in future
I have created a strongly signed assembly in Visual Studio 2008 against the .NET
I recently upgraded an ASP.Net 2.0 website to ASP.Net 4.0 using VS2010 upgrade option.
I'm having trouble with a .NET Assembly that is com visible, and calling certain

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.