Bill,
Not sure of your setup and why you get those errors.
I can tell you the way I use resources - see whether it works for you.
- In your dll set BuildAction for the files to "Embedded Resource"
- inside your dll define a function that would return the resource,
something similar to the following:
using System;
using System.IO;
using System.Reflection;
...
public class MyDllClass{
...
private static Assembly _asm = Assembly.GetExecutingAssembly();
private static Type _localType = typeof(MyDllClass);
...
public static Stream GetResource(string location, string name)
{
return _asm.GetManifestResourceStream(_localType, location + "." + name);
}
if your resource files are grouped in a folder - you would specify the
folder name in location parameter, otherwise pass empty string. Note that
resource name is case-sensitive.
If you program in VB, I believe that you do not specify the location - it
does not create a namespace for folders.
To get a string from your Stream, use
new StreamReader(stream).ReadToEnd();
Hope this helps
> I would like to use compiled resource files in my web application that are
> not related to localization.
[quoted text clipped - 15 lines]
> Thanks,
> Bill Mell