473,395 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Error.. "The process cannot access the file...

I have a .dat file on a remote server that seems to be locked. I have tried
to FTP to it and delete it, rename it, copy over it and I get the error.
"Could not copy temporary files to the output directory"

Anybody have any idea why this file is locked? What do I have to do to
release it? TIA ~jeff
Nov 19 '05 #1
3 3701
> "Could not copy temporary files to the output directory"

Does not indicate that a file is locked. However, your description of the
problem is inadequate as it stands to answer further. Perhaps you could
elaborate. For example, HOW did you "tried to FTP to it..." etc.? Pretend we
know nothing about what your app is doing. We don't.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"JeffM" <jm*********@comcast.net> wrote in message
news:eC**************@TK2MSFTNGP12.phx.gbl...
I have a .dat file on a remote server that seems to be locked. I have
tried to FTP to it and delete it, rename it, copy over it and I get the
error. "Could not copy temporary files to the output directory"

Anybody have any idea why this file is locked? What do I have to do to
release it? TIA ~jeff

Nov 19 '05 #2

I am very much a newbie to ASP programming. I am working on a project
that I retrieved from a Murach study guide.

The application works fine on my own local server under IIS. I have
attempted to copy it to an external server to test its functionallity
remotely. I used ws_FTPPro as an agent to transfer the application to
my remote site. The application uses a filestream to open a file of type
..dat . The first time I tried to access this file I received an error
message;

Unable to read beyond the end of the stream.

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.EndOfStreamException: Unable to read beyond
the end of the stream.

Source Error:

An unhandled exception was generated during the execution of the current
web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.

Stack Trace:

[EndOfStreamException: Unable to read beyond the end of the stream.]

System.IO.__Error.EndOfFile() +48

System.IO.BinaryReader.FillBuffer(Int32 numBytes) +99

System.IO.BinaryReader.ReadDecimal() +20

HalloweenStore.ProductIO.GetProducts()

HalloweenStore.Order.GetProducts()

HalloweenStore.Order.Page_Load(Object sender, EventArgs e)

System.Web.UI.Control.OnLoad(EventArgs e) +67

System.Web.UI.Control.LoadRecursive() +35

System.Web.UI.Page.ProcessRequestMain() +750

I am not sure but I might have copied the file that it is attempting to
open as an ascii type. I FTP'ed back to the remote site and tried to
transfer the file from my local directory to the remote directory and
that is when I receive the error;

550 Catagories.dat: The process cannot access the file because it is
being used by another process. ! Delete of Categories.dat failed.


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #3
The exception indicates that your app is attempting to read past the end of
the file stream. If this exception occurred, and you didn't use a "finally"
block to close the stream, that could ostensibly cause the file to remain
opened/locked.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"Jeff Mitchell" <jm*********@comcast.net> wrote in message
news:ek**************@TK2MSFTNGP10.phx.gbl...

I am very much a newbie to ASP programming. I am working on a project
that I retrieved from a Murach study guide.

The application works fine on my own local server under IIS. I have
attempted to copy it to an external server to test its functionallity
remotely. I used ws_FTPPro as an agent to transfer the application to
my remote site. The application uses a filestream to open a file of type
dat . The first time I tried to access this file I received an error
message;

Unable to read beyond the end of the stream.

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.EndOfStreamException: Unable to read beyond
the end of the stream.

Source Error:

An unhandled exception was generated during the execution of the current
web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.

Stack Trace:

[EndOfStreamException: Unable to read beyond the end of the stream.]

System.IO.__Error.EndOfFile() +48

System.IO.BinaryReader.FillBuffer(Int32 numBytes) +99

System.IO.BinaryReader.ReadDecimal() +20

HalloweenStore.ProductIO.GetProducts()

HalloweenStore.Order.GetProducts()

HalloweenStore.Order.Page_Load(Object sender, EventArgs e)

System.Web.UI.Control.OnLoad(EventArgs e) +67

System.Web.UI.Control.LoadRecursive() +35

System.Web.UI.Page.ProcessRequestMain() +750

I am not sure but I might have copied the file that it is attempting to
open as an ascii type. I FTP'ed back to the remote site and tried to
transfer the file from my local directory to the remote directory and
that is when I receive the error;

550 Catagories.dat: The process cannot access the file because it is
being used by another process. ! Delete of Categories.dat failed.


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Kevin | last post by:
Help, I am running a pass through query to oracle from SQL server 2000 as follows; select * from openquery(nbsp, 'select * from FND_FLEX_VALUES') I have run this query through both DTS and...
1
by: Rob R. Ainscough | last post by:
I keep getting this error message when I build my solution: Error: The dependency 'xxx.xx.xx, Version=1.0.2067.27633, Culture=neutral' in project 'xxx.xx.xx' cannot be copied to the run directory...
0
by: antsays | last post by:
I am trying to serialize a collection to disk using the code provided. This works just fine but when I try do copy and past the xml file to another location or sometimes even just click on the...
2
by: Andreas Poller | last post by:
Hello, I have the following problem: I have a class deriving from ICustomTypeDescriptor: public __gc class TPropertyBag : public ICustomTypeDescriptor { private: ...
0
by: lpinho | last post by:
Hi There, I've generated a C# file from a wsdl file using wsdl.exe utility. Then I created a console application and made a call to the method generated, first I got the error: "The request...
1
by: Adrian Turner | last post by:
I am just starting developing with .Net(Have used asp for years). I have created a very simple upload page which once uploaded opens the file(excel) and displays the data. If I Attempt to re-run...
1
by: BillAtWork | last post by:
Hi, I'm trying to validate an XML document against an XSD schema and I receive the following error: ---------- MyCode.CreateValidRequest : System.Web.Services.Protocols.SoapException :...
0
by: =?Utf-8?B?R2VvcmdlIFNodWk=?= | last post by:
I have a folder structure such like this. A ---A1 -----a1.aspx ---A2 A1 and A2 are the subfolder of A. And under the A1 folder, it contains one aspx file named a1.aspx. I set the IIS virtual...
0
by: Curious | last post by:
Hi, I'm not sure if this is the right place to post such command issues. If you know a better forum where people respond to messages fairly often, please let me know! Anyway, would appreciate...
1
Tarantulus
by: Tarantulus | last post by:
Hi Guys, I'll keep this short and sweet: class connection{ public $database; public $username; public $password;
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.