errors open a file

G

Guest

Hi,
I have a problem when I try to open a file on a second domain in our neetwork.
The program represent an status for all process runned at night
Intend to be an Control Pannel to show exits or troubles for the proccess
thar are running in our network at night.
Whe I execute this page using the development site, there isn´t any problem
but when I publish the same program in the same machine, and I invoke it
using the network, the program answer me this:
'could not find a part of the path' and the name of the file.
I know thats this is a authentication permission troubles, then I add at the
web.config the identy impersonate = true with user and password.
Then the program respond thats are configuration error.
Also I update the framework configuration for local intranet to full trust,
and the problem remains.
Can any give any step to solve this problem?
TIA
Julio
 
G

Guest

Peter,
This is the eroor showed

Server Error in '/Control' Application.
--------------------------------------------------------------------------------

Could not find a part of the path
'W:\siapublicacionfinal\LOG\SIAPublicacionFinal_10_23_07.log'.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.

Exception Details: System.IO.DirectoryNotFoundException: Could not find a
part of the path
'W:\siapublicacionfinal\LOG\SIAPublicacionFinal_10_23_07.log'.

Source Error:

private string sPathFile = @"W:\siapublicacionfinal\LOG\";
TextReader reader;
sPathFile = sPAthFile + "SIAPublicacionFinal_10_23_07" + ".log";

Line 68: private void BuscoLog()
Line 69: {
Line 70: ReaderPubliFinal = new StreamReader(LogSiaPublicacionFinal,
Encoding.GetEncoding(1252));
Line 71: ReaderSiaUpdate = new StreamReader(LogSiaUpdate,
Encoding.GetEncoding(1252));
Line 72: obj_PubliFinal = ultimasLineas(ReaderPubliFinal,
obj_PubliFinal);


Source File: d:\Shared\PanelControl\Default.aspx.cs Line: 70

Stack Trace:


[DirectoryNotFoundException: Could not find a part of the path
'W:\siapublicacionfinal\LOG\SIAPublicacionFinal_10_23_07.log'.]
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
+1971376
System.IO.FileStream.Init(String path, FileMode mode, FileAccess access,
Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize,
FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean
bFromProxy) +998
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access,
FileShare share, Int32 bufferSize, FileOptions options) +115
System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean
detectEncodingFromByteOrderMarks, Int32 bufferSize) +85
System.IO.StreamReader..ctor(String path, Encoding encoding) +16
_Default.BuscoLog() in d:\Shared\PanelControl\Default.aspx.cs:70
_Default.Page_Load(Object sender, EventArgs e) in
d:\Shared\PanelControl\Default.aspx.cs:49
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o,
Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender,
EventArgs e) +34
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
 

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.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top