File locations

  • Thread starter Thread starter PeteZ
  • Start date Start date
P

PeteZ

If I write a C# routine and compile it as a DLL then place a reference to in
in my Web App (called: myapplication) it gets deployed onto the location:
[web root]\myapplication\bin\mydll.dll

If this C# routine opens a file called: abcd.txt (note there is NO PATH
INFO - just the file name)

Where does it attempt to load it from ? I would have thought: [web
root]\myapplication\bin\

But it doesnt seem to find the file there. Should I be giving it some path
info ?


- peteZ
 
Hi,

It should load it from c:\winnt\system32\ as this is the running directory
of the application
you have to give it the complete path

Hope this help,
 
Back
Top