There was an error opening the document...The file is damaged and could not be opened

If you have used ASP.NET to upload documents into a database and got the error "There was an error opening this document. The file is damaged and could not be opened."

If you are using a DataSet and TableAdapter check the parameter on the stored procedure (if you used a stored proc) the size probably defaulted to 65336. Change it to -1 and you will be all set.

 

After (type is -1 and tab to the next field) 

Represent Folder Tree Structure in a Database

Check out this ASP.NET example over at Dev Fusion. Very simple, very elegant.

Sample download included here for reference.

 treeviewv2article.zip (152.45 kb)

Reboot Windows 7, Windows 2008 Automatically

1.   Launch Task Scheduler.

2.   Click Action and select Create Basic task.

3.   Type AutoRestart (or others you want) in the Name box and click Next.

4.   Select Daily and click Next

5.   Type the time you want to restart the computer and click Next.

6.   Select Start a program and click Next.

7.   Click Brower and navigate to %SystemRoot%\System32 and select Shutdown.exe and click Open. Type /F /R in the Add arguments (optional) box and click Next.

8.   Click Finish.