Why do I get the error that the file cannot be found in
C:\WINNT\SYSTEM32? I am writing a web application in ASP.NET and I
thought that the default path was that of my web app (i.e.
C:\INETPUB\WWWROOT etc?
Mike,
Mayble that is where the ASP.NET hook into IIS dll is? Sorry I'm not
particulary knowledgeable about ASP.NET. Try looking at
Application.ExecutablePath? I think there is a static member on one of the
IO classes called GetCurrentDirectory or something, although I can't check
at the moment as I'm at work and quite busy! Have a search in the MSDN for
it.
Use Server.MapPath(<your filename>) in ASP.NET to get the correct path.
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.