From: Bhatnagar, A. <Ami...@gd...> - 2005-02-28 19:50:20
|
Thanks Kevin, your explaination and solution was excellent. amit. > -----Original Message----- > From: ndo...@li... > [mailto:ndo...@li...]On Behalf Of=20 > Kevin Downs > Sent: Friday, February 25, 2005 2:14 AM > To: ndo...@li...; Bhatnagar, Amit > Subject: [SPAM] - RE: [Ndoc-users] Crash when opening Visual Studio > Solution - Found word(s) remove list in the Text body. >=20 >=20 > OK, I know what is causing this... >=20 > Each VS Project file has a property called ProjectGUID. As it's name > suggests, this is a standard windows GUID which is generated when the > project is created, and is supposed to be unique for every=20 > project. The > solution file uses this identifier to associate build=20 > configurations with > each project. >=20 > Now imagine the following scenario. A programmer creates a=20 > project and then > wants to make another, similar, one. To do this they simply=20 > do a file copy > of the project directory, and rename the project file. When=20 > they add the > project to the original solution, there are now two projects=20 > with identical > GUIDs. Note that while everything appears to work fine, this=20 > situation can > cause some subtle problems as the VS configuration manager=20 > can no longer > uniquely identify every project. >=20 > Anyway, enough of the background; How can you fix it so NDoc=20 > works? It > isn't too difficult. In fact, it will probably take less=20 > time than it takes > to read and understand these instructions... >=20 > 1. Open the solution in a text editor such as Notepad. > 2. look at the GUID for each project and identify any=20 > duplicates. The GUID > you are interested in is the *second* one in each project=20 > definition (the > first identifies the project type) >=20 > for each problem project, > 1. open the project file in a text editor. > 2. create a new GUID (there should be a tool to do this in=20 > the VS tools > menu. if not, look in the VS.NET installation folder for > \Common7\Tools\guidgen.exe) > 3. Paste the new GUID in place of the existing one, and save=20 > the project > file. > 4. Remove the project from the solution. > 5. Use 'Add Existing' to re-add the project into the solution. >=20 > Hope this helps... >=20 >=20 > regards, > Kevin >=20 > =20 >=20 > > -----Original Message----- > > From: ndo...@li...=20 > > [mailto:ndo...@li...] On Behalf Of=20 > > Bhatnagar, Amit > > Sent: Friday, 25 February 2005 2:42 AM > > To: ndo...@li... > > Subject: [Ndoc-users] Crash when opening Visual Studio Solution > >=20 > > Hi All. > >=20 > > I just downloaded the latest NDoc stable release (1.3.1) and=20 > > when I try to open new from a visual studio solution, I=20 > > immediately get an unhandled exception. Can anyone help me=20 > > out? Thanks very much and here are the details: > >=20 > > ::::::::::: > >=20 > > See the end of this message for details on invoking=20 > > just-in-time (JIT) debugging instead of this dialog box. > >=20 > > ************** Exception Text ************** > > System.ArgumentException: Item has already been added. Key=20 > > in dictionary: "7bc5c5a1-62f5-4492-8ee0-0522ca8ec9a4" Key=20 > > being added: "7bc5c5a1-62f5-4492-8ee0-0522ca8ec9a4" > > at System.Collections.Hashtable.Insert(Object key, Object=20 > > nvalue, Boolean add) > > at System.Collections.Hashtable.Add(Object key, Object value) > > at NDoc.VisualStudio.Solution.AddProject(String projectLine) > > at NDoc.VisualStudio.Solution.Read(String path) > > at NDoc.VisualStudio.Solution..ctor(String slnPath) > > at NDoc.Gui.MainForm.menuFileOpenSolution_Click(Object=20 > > sender, EventArgs e) > > at NDoc.Gui.MainForm.toolBarButton_Click(Object sender,=20 > > ToolBarButtonClickEventArgs e) > > at=20 > > System.Windows.Forms.ToolBar.OnButtonClick(ToolBarButtonClickE > > ventArgs e) > > at System.Windows.Forms.ToolBar.WmReflectCommand(Message& m) > > at System.Windows.Forms.ToolBar.WndProc(Message& m) > > at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m) > > at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m) > > at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd,=20 > > Int32 msg, IntPtr wparam, IntPtr lparam) > >=20 > >=20 > > ************** Loaded Assemblies ************** mscorlib > > Assembly Version: 1.0.5000.0 > > Win32 Version: 1.1.4322.2032 > > CodeBase:=20 > > file:///c:/winnt/microsoft.net/framework/v1.1.4322/mscorlib.dll > > ---------------------------------------- > > NDocGui > > Assembly Version: 1.3.1851.0 > > Win32 Version: 1.3.1851.0 > > CodeBase:=20 > > file:///C:/Program%20Files/NDoc%201.3/bin/net/1.1/NDocGui.exe > > ---------------------------------------- > > System.Windows.Forms > > Assembly Version: 1.0.5000.0 > > Win32 Version: 1.1.4322.2032 > > CodeBase:=20 > > file:///c:/winnt/assembly/gac/system.windows.forms/1.0.5000.0_ > > _b77a5c561934e089/system.windows.forms.dll > > ---------------------------------------- > > System > > Assembly Version: 1.0.5000.0 > > Win32 Version: 1.1.4322.2032 > > CodeBase:=20 > > file:///c:/winnt/assembly/gac/system/1.0.5000.0__b77a5c561934e > > 089/system.dll > > ---------------------------------------- > > System.Drawing > > Assembly Version: 1.0.5000.0 > > Win32 Version: 1.1.4322.2032 > > CodeBase:=20 > > file:///c:/winnt/assembly/gac/system.drawing/1.0.5000.0__b03f5 > > f7f11d50a3a/system.drawing.dll > > ---------------------------------------- > > NDoc.Core > > Assembly Version: 1.3.1851.0 > > Win32 Version: 1.3.1851.0 > > CodeBase:=20 > > file:///C:/Program%20Files/NDoc%201.3/bin/net/1.1/NDoc.Core.DLL > > ---------------------------------------- > > NDoc.Documenter.JavaDoc > > Assembly Version: 1.3.1851.0 > > Win32 Version: 1.3.1851.0 > > CodeBase:=20 > > file:///C:/Program%20Files/NDoc%201.3/bin/net/1.1/NDoc.Documen > > ter.JavaDoc.DLL > > ---------------------------------------- > > System.Xml > > Assembly Version: 1.0.5000.0 > > Win32 Version: 1.1.4322.2032 > > CodeBase:=20 > > file:///c:/winnt/assembly/gac/system.xml/1.0.5000.0__b77a5c561 > > 934e089/system.xml.dll > > ---------------------------------------- > > NDoc.Documenter.Latex > > Assembly Version: 1.3.1851.0 > > Win32 Version: 1.3.1851.0 > > CodeBase:=20 > > file:///C:/Program%20Files/NDoc%201.3/bin/net/1.1/NDoc.Documen > > ter.Latex.DLL > > ---------------------------------------- > > NDoc.Documenter.LinearHtml > > Assembly Version: 1.3.1851.0 > > Win32 Version: 1.3.1851.0 > > CodeBase:=20 > > file:///C:/Program%20Files/NDoc%201.3/bin/net/1.1/NDoc.Documen > > ter.LinearHtml.DLL > > ---------------------------------------- > > NDoc.Documenter.Msdn > > Assembly Version: 1.3.1851.0 > > Win32 Version: 1.3.1851.0 > > CodeBase:=20 > > file:///C:/Program%20Files/NDoc%201.3/bin/net/1.1/NDoc.Documen > > ter.Msdn.DLL > > ---------------------------------------- > > NDoc.Documenter.Msdn2 > > Assembly Version: 1.3.1851.0 > > Win32 Version: 1.3.1851.0 > > CodeBase:=20 > > file:///C:/Program%20Files/NDoc%201.3/bin/net/1.1/NDoc.Documen > > ter.Msdn2.DLL > > ---------------------------------------- > > NDoc.Documenter.NativeHtmlHelp2 > > Assembly Version: 1.3.1851.0 > > Win32 Version: 1.3.1851.0 > > CodeBase:=20 > > file:///C:/Program%20Files/NDoc%201.3/bin/net/1.1/NDoc.Documen > > ter.NativeHtmlHelp2.DLL > > ---------------------------------------- > > Interop.MSHelpCompiler > > Assembly Version: 1.0.0.0 > > Win32 Version: 1.0.0.0 > > CodeBase:=20 > > file:///C:/Program%20Files/NDoc%201.3/bin/net/1.1/Interop.MSHe > > lpCompiler.DLL > > ---------------------------------------- > > NDoc.Documenter.Xml > > Assembly Version: 1.3.1851.0 > > Win32 Version: 1.3.1851.0 > > CodeBase:=20 > > file:///C:/Program%20Files/NDoc%201.3/bin/net/1.1/NDoc.Documen > > ter.Xml.DLL > > ---------------------------------------- > > System.Design > > Assembly Version: 1.0.5000.0 > > Win32 Version: 1.1.4322.2032 > > CodeBase:=20 > > file:///c:/winnt/assembly/gac/system.design/1.0.5000.0__b03f5f > > 7f11d50a3a/system.design.dll > > ---------------------------------------- > > NDoc.VisualStudio > > Assembly Version: 1.3.1851.0 > > Win32 Version: 1.3.1851.0 > > CodeBase:=20 > > file:///C:/Program%20Files/NDoc%201.3/bin/net/1.1/NDoc.VisualS > > tudio.DLL > > ---------------------------------------- > >=20 > > ************** JIT Debugging ************** To enable just in=20 > > time (JIT) debugging, the config file for this application or=20 > > machine (machine.config) must have the jitDebugging value set=20 > > in the system.windows.forms section. > > The application must also be compiled with debugging enabled. > >=20 > > For example: > >=20 > > <configuration> > > <system.windows.forms jitDebugging=3D"true" /> </configuration> > >=20 > > The information contained in this e-mail message is PRIVATE.=20 > > It may contain confidential information and may be legally=20 > > privileged. It is intended for the exclusive use of the=20 > > addressee(s). If you are not the intended recipient, you are=20 > > hereby notified that any dissemination, distribution or=20 > > reproduction of this communication is strictly prohibited. If=20 > > the intended recipient(s) cannot be reached or if a=20 > > transmission problem has occurred, please notify the sender=20 > > immediately by return e-mail and destroy all copies of this=20 > message.=20 > > Thank you.=20 > >=20 > >=20 > >=20 > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide Read honest &=20 > > candid reviews on hundreds of IT Products from real users. > > Discover which products truly live up to the hype. Start=20 > reading now. > > http://ads.osdn.com/?ad_ide95&alloc_id=14396&op=CCk > > _______________________________________________ > > Ndoc-users mailing list > > Ndo...@li... > > https://lists.sourceforge.net/lists/listinfo/ndoc-users > >=20 >=20 >=20 >=20 > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from=20 > real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id=14396&op=3Dick > _______________________________________________ > Ndoc-users mailing list > Ndo...@li... > https://lists.sourceforge.net/lists/listinfo/ndoc-users >=20 |