index > Visual Studio Tools for Office > "The project cannot be created" error trying to...

"The project cannot be created" error trying to...


Hi,

I am getting the exact same errors in VSTO trying to create a word project as Yaroslav. It works fine with eXcel.

A new word project creates VSTO error "The project cannot be created". An existing word document produces a ...document may be corrupted" error. Has there been any updates to this thread offering a potential solution? My installation of Office 2003 are all fine according to the troubleshooter tool.

beegee

Hi beegee

Search your system (including hidden folder and files) for the Normal.dot template. Rename it to NormalOLD.dot. Start Word normally. Quit Word. This will generate a "clean" copy of Normal.dot.

Now see if you can create a Word project in VSTO?




-- Cindy Meister (Word MVP)
Cindy Meister

Cindy,

I did this and got rid of all Normal.dot templates. Re-ran word and it created a new Normal.dot template in my documents and settings folder. However, I am still getting the same "Project cannot be created error" out of VSTO. I noticed that it creates a set of folders for WordDocument1 .....bin, myproj, obj and the sln file. I need to delete them otherwise the next create will be WordDocument2 and so on. I was part of the beta test for the new office 12, would it be affecting Office 2003 in any way?

beegee

Cindy,

some additional information on this. I had created a word project out of VSTO some time ago before getting this error. I opened it in Visual Studio 2005. I was able to view the code, I tried to view it in designer and got the ...."word document is corrupted message". I ran a build on this project and it failed with 1 error. It used to build successfully. The error was the following:

"An error occurred while attempting to persist the data. The message returned is: Failed to start Word. Exception from HRESULT: 0x80040403. "

beegee

Hi BeeGee

I'm going to split your question off into a new thread to make sure it gets better visibility. If we'd had a "quick fix", I wouldn't take the trouble, but it looks like this may take more heads than just mine :-)

I have one more idea you can try: Open Word, then run Detect and Repair from the Help menu. If something in Word is broken (corrupted *.exe file, for example) this should fix it.

And yes, you could conceivably be running into issues if you had Office 2007 installed "over" Office 2003. The current version of VSTO can't work with 2007 (although projects you develop with it should work with Office 2007, you can't develop with 2007 in the current Designer). This may, indeed, be the problem. If Detect and Repair doesn't rectify it, try uninstalling first Office 2007, then Office 2003, then VSTO. Then reinstall Office 2003, followed by VSTO.




-- Cindy Meister (Word MVP)
Cindy Meister
reply 5

You can use google to search for other answers

 

More Articles

Drag and Drop with VSTO2
Intellisense not showing Enumerator List If ParamArray is used
VSTO "v3" - Compatibility, Security and deployment
Remove Applications Distributed with Access 2003 Developer Extens...
Macros in Excel for Exporting Tables to Excel
WORDML xslt does not transform data
compare text columns
Drawing XY Scatter Graph With OWC11
Visual Studio Packaging utility problem
Workaround need to open a customized Word2003 document in a new w...
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

VSTO WORD delete selected table
Oh Happy Day!
Excel.PivotTable.SourceData
Word, copying parts... -- beginner
Need Help Urgently Please
inserting page breaks
Sort a table of adress'
VSTO 2007 Data Architecture Question
Calendar Control Issue in Excel
XMLNode, AfterInsert not fired
Merged Word Menus are not accessible aft…
How to find whether there is a blank pag…
VSTO project "Attempted to read or …
Trying to convert a Word document to Web
Insert an Excel Worksheet into Word

Hot Articles

How to edit the Oultlook default folders…
Excel 2007 file saving
User with PIA gets the message "PIA…
Is it not possible to update tables with…
Problem making a new folder in Outlook
Using a template to add toolbar
Implement Drag & Drop from taskpane …
Automated Sending of Signed E-mail
Cant open or create VSTO projects after …
I cann't publish the metadata IBF
Combo Box on the Actions Pane Control wi…
auto_close addin unload
Display office documents in my windows f…
Grouping columns in Pivot Table
VSTO2005-Word. Only want the code-behind…

Recommend Articles

How to minimize time in opening,saving a…
VSTO MSDN Library
DataNavigator does not show up in toolbox
Undo in Excel
Word 2007 customized ribbon deployment
is there a "link pressed" even…
VSTO 2005 SE Deployment Problem
Hosting Word 2003 Doc within a WinForm
ASP.NET & MICROSOFT OFFICE WEB COMPO…
Edit box on toolbar
Visio Enterprise 2000
Excel File Deployed to WSS?
Save cached fields in a Word application
API request; Drag & Drop
building solution containing VSTO on Cru…