473,396 Members | 1,833 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,396 software developers and data experts.

FileInfo Object Crashing??

I have an application that would send a file to browser using
Response.writefile.

Every thing seems to work fine, but some times during testing, something
goes wrong and I can not capture it. I have to restart the IIS in order to
get the application working again.

Any help???
Nov 19 '05 #1
2 786
You should look into adding an Application_Error event in global.asax to
log all unhandled exceptions in your application. Once you're capturing this
error information then you should be able to approach the problem.

-Brock
DevelopMentor
http://staff.develop.com/ballen
I have an application that would send a file to browser using
Response.writefile.

Every thing seems to work fine, but some times during testing,
something goes wrong and I can not capture it. I have to restart the
IIS in order to get the application working again.

Any help???


Nov 19 '05 #2
Thanks for your response.
Some how its not breaking now and I'm unable to recreate or trace what was
going wrong..
I'l keep the debugging suggestion for use in future.

"Brock Allen" wrote:
You should look into adding an Application_Error event in global.asax to
log all unhandled exceptions in your application. Once you're capturing this
error information then you should be able to approach the problem.

-Brock
DevelopMentor
http://staff.develop.com/ballen
I have an application that would send a file to browser using
Response.writefile.

Every thing seems to work fine, but some times during testing,
something goes wrong and I can not capture it. I have to restart the
IIS in order to get the application working again.

Any help???


Nov 19 '05 #3

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

Similar topics

1
by: ShikariShambu | last post by:
Hi All, I have a component that is used to do all file access operations. I have this component hosted in COM+ as a server application and runs under a specific id. One of the methods on this...
5
by: jman | last post by:
I have an urgent question. I have written a .Net C# windows services that has only one key purpose: to move files from the machine that is running the service to a network download server for...
1
by: RK | last post by:
private const string appdir = "http://localhost/myApp"; string strPath = appdir + "/xml/test.log"; FileInfo f = new FileInfo(strPath); the above code throwing error, like URI formats are not...
1
by: Antonio | last post by:
Good morning, I've the following file system : C: -> HTML -> Aziende -> Azienda_1 -> a.jpg -> Azienda_2 -> a.jpg ... -> Azienda_N -> a.jpg my desire is to create an array of fileinfo...
5
by: Lance | last post by:
I want to expose properties of a class to a user via a PropertyGrid class. Some of the properties are of type System.IO.FileInfo. Ideally, an OpenFileDialog window would appear when the user...
0
by: Jeff Ulrich | last post by:
I have two files: C:\ThisIsReal.txt which is a real text document, and C:\ThisIsAShortcut, which is set up via the Windows Explorer to be a shortcut to the real text document. How Can I...
5
by: mike | last post by:
Hi, I have been playing with VB.NET/C# for getting some general properties of a fileinfo object. However, FileInfo object does not seem to expose some of the basic properties like TYPE that used...
3
by: rn5a | last post by:
To work with files, when should one use the File class & when should one use the FileInfo class? Similarly, to work with directories, when should one use the Directory class & when should one...
5
by: Tom P. | last post by:
I am having the following problem: I create a FileSystemWatcher and wait for events. When the event does happen I refresh a FileSystemInfo list and set properties accordingly (IsFile, IsDir,...
6
by: tshad | last post by:
Can't use FileInfo in using statement? I have the following statement: using (FileInfo fInfo = new FileInfo(fromImagePath + "\\" + (string)dr)) and I get the following error: ...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.