[Mono-bugs] [Bug 691755] New: Working project fails after being packaged with mmp
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed May 4 13:36:58 EDT 2011
https://bugzilla.novell.com/show_bug.cgi?id=691755
https://bugzilla.novell.com/show_bug.cgi?id=691755#c0
Summary: Working project fails after being packaged with mmp
Classification: Mono
Product: MonoMac
Version: GIT
Platform: x86
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Bindings
AssignedTo: gnorton at novell.com
ReportedBy: joel.edstrom at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_7)
AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.50 Safari/534.24
I've been working on a MonoMac based project that makes use of the Google GData
net apis(http://code.google.com/p/google-gdata) and it works fine when being
run straight from MonoDevelop, but crashes with a NullReferenceException when
being run after its been packaged(no assembly linking).
After testing a bit I noticed that all it takes to trigger the bug is basically
to make use of their AtomFeedParser (which someway down the line uses
System.Web.Util.HttpEncoder.GetCustomEncoderFromConfig) so I then created a
simple project with as little code as possible to trigger it. (description of
how its created below (i will also try to upload a copy of the project as an
attachment if its possible))
Reproducible: Always
Steps to Reproduce:
1. Create a new solution based on the "MonoMac Project" template
2. Add References: Google.GData.Spreadsheets.dll, Google.GData.Client.dll
3. Add this code to for example FinishedLaunching(..) in AppDelegate.cs (fill
in working gmail username and pass):
SpreadsheetsService myService = new
SpreadsheetsService("exampleCo-exampleApp-1");
myService.setUserCredentials("foo at gmail.com", "<password>");
var feed = myService.Query(new SpreadsheetQuery());
foreach (SpreadsheetEntry entry in feed.Entries) {
Console.WriteLine(entry.Title.Text);
}
4. Run from MonoDevelop -> Result: Works great, and prints out the names of all
your spreadsheets in gdocs.
5. Package with the MonoMac Packager.
6. Run the resulting .app -> CRASH!
Actual Results:
Crashes with exception [attachment: crash_output.txt]
Expected Results:
Working app
At first i thought it was some assemblies missing in the app bundle, and after
looking at Application Output [attachment: loaded_assemblies.txt] in
MonoDevelop i noticed it loads System.Web, Mono.Web, System.Configuration etc.
Then I explicitly added those to References -> No difference tho. Still
crashes.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list