How do I set resources without hardcoding the file path in ASP.NET?

Q: I am having trouble finding where is the best place to put the
resources file on a web server so the code can find it easily without
hardcoding a file path.

Using this example code:
// Search for PDFNet resource file (i.e. 'pdfnet.res').
string resource_path = "resources";
bool found = false;
for (int i = 0; !found && i < 7; ++i) {
found = PDFNet.SetResourcesPath(resource_path);
if (!found) resource_path = "../" + resource_path;

Where should I place the resources file? Putting it in the bin of the
web site doesn't find it.
A: You could use a more dynamic approach as described in the following

PDFNet.SetResourcesPath( Path.Combine(Application.StartupPath,

or as follows:

PDFNet.SetResourcesPath( Path.GetDirectoryName( Assembly.GetExecutingAssembly().Location));

There are probably many other options.