Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / October 2007

Tip: Looking for answers? Try searching our database.

errors open a file

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
julio - 23 Oct 2007 18:16 GMT
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
Peter Bromberg [C# MVP] - 23 Oct 2007 19:10 GMT
Julio,
'could not find a part of the path'  means that your path has an error in
it; it's not a permissions issue. Can you post a "short but complete" code
sample?
-- Peter
Recursion: see Recursion
site:  http://www.eggheadcafe.com
unBlog:  http://petesbloggerama.blogspot.com
BlogMetaFinder:    http://www.blogmetafinder.com

> Hi,
> I have a problem when I try to open a file on a second domain in our neetwork.
[quoted text clipped - 13 lines]
> TIA
> Julio
julio - 23 Oct 2007 20:12 GMT
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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.