Error while uploading and edit properties of Document in DL in Sharepoint 2007 - sharepoint-2007

I receive an Error Stating
An unexpected error has occurred whenevr I try to Upload a Single Document or Edit Properties of the Document.
I have used Custom Master Page on this site.

Related

Downloading files redirects to an Error Page or Server Error

Downloading files redirects to an Error Page or Server Error for old files but still there in the database, but newly uploaded files is accessible. Like I upload new files today, I can still download it but my uploaded files yesterday automatically redirect to Error Page which says,
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 and System.IO.FileNotFoundException: Could not find file.
if (doc != null)
                {
                    string uploadFolder = Server.MapPath("~/" + System.Configuration.ConfigurationManager.AppSettings["UploadPath"]);
                    string path = Path.Combine(uploadFolder, doc.file_path);
                    byte[] fileBytes = System.IO.File.ReadAllBytes(path); //error occurred here
                    return File(fileBytes, System.Net.Mime.MediaTypeNames.Application.Octet, doc.file_name);
                }
            }
the error occurred in declaring fileBytes. How to fix this?
The error is self containing. System.IO.File.ReadAllBytes(path) Couldn't find file.
Why?
The file is not there, where should be
The file is there where should be, but the path is bad, where you search.
The file is there, the path is good, but the permissions for file are not enough.
etc...
You have to check and fix what cause this issue.

Export to word document Nested tables using DocX library in c#, can't open document

I have created word document (.doc and .docx) using DocX library in .net c#. I have used nested tables in this word document. Now the problem is that, whenever I try to open this generated document, it gives warning message like this :
"We are sorry. We can;t open because we found a problem with its contents."
Getting this message if I click on Details button. :
"Ambiguous cell mapping encountered. Possible missing paragraph element. elements are required before every ".
If I do not use nested table and use single table then its working fine and not giving any warning message while opening that word document.
So, can anyone help me here to how avoid such warning problems if I have nested tables in generating word document using DocX library in .Net C#. ?
Thanks in advance.
Herin.

Can we include attachments to iCalendar invitations that are created from an MVC application

How can we send attachment along with an ics file that are created from MVC application.
We are creating the meeting invitations with data fetched from application in ics format and then downloading for the user to click on it and open in outlook.So can we add an attachment also along with the ics file so that users wen open in outlook will see the attachment along with other details.
Please somebody help.
As per https://www.rfc-editor.org/rfc/rfc5545#section-3.8.1.1 or https://icalendar.org/iCalendar-RFC-5545/3-8-1-1-attachment.html, one can ATTACH by referring to the URL of the attachment.
An example given is:
ATTACH;FMTTYPE=application/postscript:ftp://example.com/pub/
reports/r-960812.ps
Other examples elsewhere in the spec are:
ATTACH:http://example.com/public/quarterly-report.doc
or
"The following example specifies an "ATTACH" property with inline
binary encoded content information:
ATTACH;FMTTYPE=text/plain;ENCODING=BASE64;VALUE=BINARY:VGhlIH
F1aWNrIGJyb3duIGZveCBqdW1wcyBvdmVyIHRoZSBsYXp5IGRvZy4
"
or
ATTACH;FMTTYPE=application/msword:ftp://example.com/pub/docs/
agenda.doc

Facing problem in creating dynamic file upload control in asp.net mvc?

Im creatng dynamic control of file upload so user can upload more than one file. But when i add more than 5 file upload control and submit the form. Error occured and shows
The connection was reset
The connection to the server was reset while the page was loading.
what can be the issue?

MOSS Error Uploading File to Library and Custom Meta Data Not Being Updated

MOSS 2007 SP2 64 bit. Multi-server install.
How do I figure out the where to find the document library upload error I am getting?
I have document library with a custom workflow attached that will have a PDF document OCR'd during the upload. This library has some custom meta data fields from a content type that are exposed during the upload. As part of the workflow it OCR's the PDF doc and puts it back into the library and keeps it at version 1. During the upload I am getting an error for the PDF documents but it is uploading the document and the meta data fields are not getting updated with the user input. Below is the wonderful error message I get back. I have tried looking at the logs and I am not seeing anything pertaining to this error.
Go back to site
Error
The file 0746850076 Workers Compensation/a.pdf has been modified by DOMAIN\user on 14 Oct 2009 11:05:44 -0400.
Troubleshoot issues with Windows SharePoint Services.
Make sure the current user has proper rights and that you're not having an access collision with another user. Smells like a concurrency issue. Ensuring that you have proper locking in place should eliminate your woes
You probably is running into a concurrency issue; this message occurs when you do update some metadata and that document already has been modified by someone else (sometimes even you).
Before changing your metadata, try to reload your SPLIstItem/SPFile object to reflect your most actual metadata values.

Resources