• Sign In
 
  • MSDN Blogs
  • Microsoft Blog Images
  • More ...
Common Tasks
  • Blog Home
  • Email Blog Author
  • RSS for comments
  • RSS for posts
Search
  • Advanced search options...
Tags
  • .NET Framewor
  • .NET Framework
  • Ajax/Javascript
  • ASP.NET
  • CLR
  • Cool stuff
  • DataAccess
  • Debugging/Windbg
  • Hotfix/Service Pack
  • IDEVDataCollector
  • IIS
  • Internet Explorer
  • Italian techs
  • LogParser
  • OT
  • Personal
  • Productivity
  • Random
  • Scripting/ASP
  • Security
  • Technology
  • Tools
  • Troubleshooting
  • Vista/Longhorn
  • Visual Studio
Archives
Archives
  • November 2010 (1)
  • October 2010 (1)
  • July 2010 (2)
  • April 2010 (1)
  • March 2010 (2)
  • February 2010 (2)
  • January 2010 (1)
  • October 2009 (2)
  • September 2009 (2)
  • August 2009 (1)
  • July 2009 (5)
  • June 2009 (1)
  • May 2009 (1)
  • April 2009 (3)
  • March 2009 (3)
  • February 2009 (5)
  • January 2009 (3)
  • December 2008 (5)
  • November 2008 (3)
  • October 2008 (2)
  • September 2008 (3)
  • August 2008 (3)
  • July 2008 (3)
  • June 2008 (5)
  • May 2008 (4)
  • April 2008 (8)
  • March 2008 (4)
  • February 2008 (5)
  • January 2008 (2)
  • December 2007 (4)
  • November 2007 (6)
  • October 2007 (6)
  • September 2007 (8)
  • August 2007 (6)
  • July 2007 (7)
  • June 2007 (10)
  • May 2007 (9)
  • April 2007 (12)
  • March 2007 (8)
  • February 2007 (5)
  • January 2007 (3)
  • December 2006 (1)
  • November 2006 (4)
  • October 2006 (2)
  • September 2006 (9)
  • August 2006 (2)
  • July 2006 (1)

Visual Studio 2008 crashes in “split view”

MSDN Blogs > Never doubt thy debugger > Visual Studio 2008 crashes in “split view”

Visual Studio 2008 crashes in “split view”

Carlo Cardella
10 Jul 2008 3:07 AM
  • Comments 14

“Split view” is one of the new features in Visual Studio 2008 web designer: this is the possibility to have Design View and Source View of your page at the same time (see What's New in ASP.NET and Web Development, “Visual Web Developer Enhancements” paragraph). A few days ago a customer called in to report a problem with his Visual Studio and split view: when trying to view a file (even a new one) in split view or design view the IDE either crashed or frozen.

As you can imagine we took a crash dump with adplus, but a first look at the threads, stack, exceptions etc… (the usual stuff) did not show anything interesting. Then I thought to some external process (like an antivirus, third parties add-ons etc…) that might meddle in and had a look at the list of modules loaded within the process with lmf (list loaded modules with full path). There where only a couple of odd dlls loaded, from Office 2003:

33f20000 34118000   FPCUTL     (deferred)             
    Image path: C:\Program Files\Microsoft Office\OFFICE11\FPCUTL.DLL 
    Image name: FPCUTL.DLL 
    Timestamp:        Wed Jun 06 19:44:55 2007 (4666F297) 
    CheckSum:         001EC356 
    ImageSize:        001F8000 
    File version:     11.0.8170.0 
    Product version:  11.0.8170.0 
    File flags:       0 (Mask 3F) 
    File OS:          40004 NT Win32 
    File type:        2.0 Dll 
    File date:        00000000.00000000 
    Translations:     0409.04e4 
    CompanyName:      Microsoft Corporation 
    ProductName:      Microsoft Office 2003 
    InternalName:     FP40CUTL 
    OriginalFilename: FP40CUTL.DLL 
    ProductVersion:   11.0.8170 
    FileVersion:      11.0.8170 
    FileDescription:  Microsoft Office FrontPage Client Utility Library 
    LegalCopyright:   Copyright © 1995-2003 Microsoft Corporation.  All rights reserved. 


37050000 37157000   OMFC       (deferred)             
    Image path: C:\Program Files\Microsoft Office\OFFICE11\OMFC.DLL 
    Image name: OMFC.DLL 
    Timestamp:        Fri Apr 13 21:43:21 2007 (461FDD59) 
    CheckSum:         0010A869 
    ImageSize:        00107000 
    File version:     11.0.8164.0 
    Product version:  11.0.8164.0 
    File flags:       0 (Mask 3F) 
    File OS:          40004 NT Win32 
    File type:        2.0 Dll 
    File date:        00000000.00000000 
    Translations:     0000.04e4 
    CompanyName:      Microsoft Corporation 
    ProductName:      Microsoft Office 2003 
    InternalName:     OMFC.DLL 
    OriginalFilename: OMFC.DLL 
    ProductVersion:   11.0.8164 
    FileVersion:      11.0.8164 
    FileDescription:  Microsoft Office MFC 
    LegalCopyright:   Copyright © 1993-2003 Microsoft Corporation.  All rights reserved. 

That rang a bell, especially about fpcutl.dll… This dll comes with both Visual Studio and Office 2003 but the two versions are incompatible: Visual Studio in this case was loading the wrong one. Why?

Well, it happens that Visual Studio looks at the system PATH to load this (and other) component, while Office doesn’t… Here is the PATH value from the dump (use !procinfo and then check the path value):

C:\WINDOWS\system32;
C:\WINDOWS;
C:\WINDOWS\System32\Wbem;
C:\Program Files\Microsoft SQL Server\90\Tools\binn\;
C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;
C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;
C:\PROGRA~1\MICROS~2\OFFICE11

The Office 11 entry is the last one… but there is something wrong anyway, who spots it? smile_regular

We have an entry for Visual Studio 8 (Visual Studio 2005), but where is the entry for Visual Studio 9 (VS 2008)? smile_nerd

For some reason the PATH value has not been updated (or maybe it has modified after the setup) and we don’t know exactly why; the point is that we need to fix it. A quick search on the machine found three copies of fpcutl.dll:

fpcutl paths

system PATH

We added the missing folders at the beginning of the PATH string which now reads as:

C:\Program Files\Microsoft Web Designer Tools\VWD;
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;
C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN;
C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools;
C:\Windows\Microsoft.NET\Framework\v3.5;
C:\Windows\Microsoft.NET\Framework\v2.0.50727;
C:\Program Files\Microsoft Visual Studio 9.0\VC\VCPackages;
C:\WINDOWS\system32;
C:\WINDOWS;
C:\WINDOWS\System32\Wbem;
C:\Program Files\Microsoft SQL Server\90\Tools\binn\;
C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;
C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;
C:\PROGRA~1\MICROS~2\OFFICE11

The most important one on this case is “C:\Program Files\Microsoft Web Designer Tools\VWD”: Visual Studio will look into this folder to load the right version of fpcutl.dll (PATH is a first in – first serve list of folders, the first match will be the one we use) and Office continues working happily anyway. smile_nerd

Carlo

 

Quote of the day:
Any sufficiently advanced technology is indistinguishable from magic. - Arthur C. Clarke
  • 14 Comments
Debugging/Windbg, Visual Studio
Leave a Comment
  • Please add 5 and 8 and type the answer here:
  • Post
Comments
  • Stamati
    18 Oct 2008 7:56 AM

    Thank you so much for posting this. I have reinstalled VS 2008 two time and updated SP1 and .NET 3.5 and rebooted and copied so many projects to and from VS 2005 because of this problem and you have fixed it for me. Thanks for taking the trouble to post this message. You have helped me a lot. Best wishes.

  • visualbasicjon
    5 Nov 2008 2:48 PM

    Thanks for this. I have been spending hours trying to figure it out and you handed me the solution on a plate. Thanks so so much.

  • Curly Joe
    11 Mar 2009 1:02 PM

    Very cool!  This fixed my problem completely.  Now I can rewrite the convoluted code the other developers wrote.

  • AB
    22 Mar 2009 4:24 PM

    Thanks, this was a time saver.

  • Simon
    23 Aug 2009 7:34 AM

    Just have to say, considering this was written OVER a year ago and it is STILL the only solution to this problem. Which incidentally worked for me like a charm, design and split view now work rediculously fast (about normal for other programs!) AND doesnt crash. We were about to give up on .net becuase of Visual Studio. Yes I know know 'coders' shouldnt need design view, but it sure as hell helps for the designers who work with them. I NEVER post but in this instance, I have to say thank you. You literllay saved our team from moving away from .net (which I prefer). THANKS!

  • Chris
    1 Oct 2009 12:11 PM

    Hello,

    I've changed the Path as you show, but Visual Studio Web Design still freezes!  I've un-installed Office completely from machine.  The only FPCUTL.DLL on the machine is located in "Microsoft Web Designer Tools."  Is there a dump I can send you?

    Chris

  • Chris
    1 Oct 2009 12:37 PM

    Hello again,

    Is there a way to contact you?

    Many thanks,

    Chris :)

  • Carlo Cardella
    1 Oct 2009 1:27 PM

    Hello Chris,

    If you need assistance on this matter you can open a Support Call with us (http://support.microsoft.com for details) and if you are based in EMEA there are chances that I'll be able to work with you; otherwise, my colleagues in other Region will contact you :-)

    HTH

  • Chris
    1 Oct 2009 7:00 PM

    Hello,

    Thanks for that.  Will first get authorize from company to go ahead on the Support Fee.

    Thanks,

    Chris.

    P.S.  In the meantime...have re-installed VS2005, and able to Design web pages no problems!  

  • Carlo Cardella
    2 Oct 2009 3:13 AM

    Well, if you have an MSDN subscription (or have bought some MS product in a store) you have a few free Incidents (4 with MSDN subscription, 2 with the box bought in a store), no fee needed.... :-)

  • Wan Wong
    10 Oct 2009 12:24 PM

    I have same problem, but I don't have MS Office. I fixed the problem by using repair option on the Web Designer.

  • TomG
    15 Jun 2010 7:27 AM

    You wouldn't by any chance have information about a similar problem after upgrading from Office 2007 to Office 2010? Doing that upgrade is the only thing I changed since yesterday, and all of a sudden I cannot open the design or split view for web pages anymore.

  • Carlo Cardella
    21 Jun 2010 2:15 AM

    Hello Tom,

    Not that I am aware of but if that is the case then give this fix a try, at least it will not do any harm

    HTH

  • Don G
    28 Jun 2010 7:23 AM

    Thanks a million, this was a life saver for me.

Page 1 of 1 (14 items)
  • © 2012 Microsoft Corporation.
  • Terms of Use
  • Trademarks
  • Privacy Statement
  • Report Abuse
  • 5.6.402.223