Monday, September 29, 2008

Sharepoint Designer 'Error reading file' on opening default.apsx file

Opened default.aspx to edit it and got 'error reading file', could only open in text mode or notepad.
Did some reseach on google and found this ..

http://msdevelopers.blogspot.com/2007/04/error-reading-file-with-sharepoint.html.

I look in the file and was a massive blank area between the two sections of code, 70,000 lines.
Solution I found was to cut the bottom bit of code and paste so all the code is together, just highlight and cut the combined code and past it into a newly created aspx file. Rename old file and name new file default.apsx.

Also did this
BACKUP LOG SharePoint_Config WITH TRUNCATE_ONLY
USE SharePoint_ConfigGODBCC SHRINKFILE (SharePoint_Config_Log, EMPTYFILE)GO

afterwards as might have been contributing to the problem.

No comments: