Bug 1018 - System exception is occurred when user rename the project name and then double click on .xib file.
Summary: System exception is occurred when user rename the project name and then doubl...
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: 2.8 Beta 2
Hardware: Macintosh Mac OS
: --- major
Target Milestone: ---
Assignee: Mike Krüger
Depends on:
Reported: 2011-09-23 12:37 UTC by Nischal
Modified: 2011-12-22 03:54 UTC (History)
5 users (show)

Is this bug a regression?: ---
Last known good build:

Image for the bug (240.01 KB, image/jpeg)
2011-09-23 12:37 UTC, Nischal
Validation Message after clicking on .xib file of a renamed project (288.64 KB, image/tiff)
2011-10-10 09:29 UTC, Saurabh

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Nischal 2011-09-23 12:37:21 UTC
Created attachment 481 [details]
Image for the bug

Steps to Reproduce:
1. Launch the application.
2. Create a solution for single view iPad application.
3. Right Click on project name and select Rename.
4. Rename the project name.
5. Now double click on .xib file.
6. See system error.

Actual result:
System exception is occurring when user tried to launch xcode after changing the project name.Refer the screenshot.

Expected result:
Xcode should be launched successfully.

OS:  Snow Leopard 10.6
MonoTouch 4.9
MonoDevelop 2.8 beta 2
Mono Framework for MAC OS X Intel Runtime
Xcode 4
Comment 1 Alan McGovern 2011-09-27 10:38:20 UTC

*** This bug has been marked as a duplicate of bug 933 ***
Comment 2 Saurabh 2011-10-10 09:24:52 UTC
Verified this issue,this is happening  when user rename solution project name without space and special character and clicks on .xib file .Please view attached screenshot

Steps to reproduce:
1.Create project with name(e.g test)
2.Rename project (e.g tests)
3.Click on .xib file.
4.Look for validation error.
Comment 3 Saurabh 2011-10-10 09:29:55 UTC
Created attachment 657 [details]
Validation Message after clicking on .xib file of a renamed project
Comment 4 Alan McGovern 2011-10-25 11:01:35 UTC
The cause of this is that ProjectDomService.GetProjectDom(Project) relies on the filename in order to retrieve the DOM. If you rename a project the dom is not regenerated nor does the ProjectDomService track the change and fix it's cache. The workaround is simply to close and reopen the solution

Mike, what's the best way of handling this properly so we dont have to close/reopen the solution? Are there other places which might rely on this?
Comment 5 Mike Krüger 2011-10-26 11:18:23 UTC
Comment 6 Jatin 2011-12-22 03:00:01 UTC
This issue is fixed for the latest installers, i.e.

MonoDevelop 2.8.5
MonoTouch 5.0.4

Hence, closing this issue dated 22nd December, 2011.