Cannot access .config from COM enabled .NET class

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?SlJNYWxoZXJiZQ==?=

    #1

    Cannot access .config from COM enabled .NET class

    I have written a .NET component and enabled it to be used from a com component.

    The following test method returns the anticipated results from a .vbs file:
    public string Test(string testValue)
    {
    string retValue = "Your value is: ";
    retValue = retValue + testValue;
    return retValue;
    }

    Some of my methods has to read some settings from a config file.

    The problem seems to revolve around the following code (null):
    ConfigurationMa nager.AppSettin gs[[Config Value Label]]

    I tried to copy the .config file to the directory where the vbs is located
    and to the system32 directory

    Can anybody shed some light onto this matter?

Working...