[Mono-dev] Problem with google calendar authentication using embedded mono in app

Chenthill pchen at gnome.org
Fri Mar 20 05:45:28 EDT 2009


Am trying to access the google calendar using the c# apis by embedding mono
inside my application. I have imported the trusted certificates using
mozroots tool and able to access the google calendar contents using a
standalone mono program. But unable to access the same using the embedded
mono app, getting the following exception,

 System.TypeInitializationException: An exception was thrown by the type
initializer for System.Net.WebRequest --->
System.Configuration.ConfigurationErrorsException: Error Initializing the
configuration system. ---> System.NullReferenceException: Object reference
not set to an instance of an object
  at System.Configuration.ConfigurationManager.OpenExeConfigurationInternal
(ConfigurationUserLevel userLevel, System.Reflection.Assembly
calling_assembly, System.String exePath) [0x00063] in
/usr/src/packages/BUILD/mono-2.0.1/mcs/class/System.Configuration/System.Configuration/ConfigurationManager.cs:101 
  at System.Configuration.ClientConfigurationSystem.get_Configuration ()
[0x00011] in
/usr/src/packages/BUILD/mono-2.0.1/mcs/class/System.Configuration/System.Configuration/ClientConfigurationSystem.cs:51 
  --- End of inner exception stack trace ---
  at System.Configuration.ClientConfigurationSystem.get_Configuration ()
[0x00025] in
/usr/src/packages/BUILD/mono-2.0.1/mcs/class/System.Configuration/System.Configuration/ClientConfigurationSystem.cs:54 
  at
System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection
(System.String configKey) [0x00000] in
/usr/src/packages/BUILD/mono-2.0.1/mcs/class/System.Configuration/System.Configuration/ClientConfigurationSystem.cs:63 
  at System.Configuration.ConfigurationManager.GetSection (System.String
sectionName) [0x00000] in
/usr/src/packages/BUILD/mono-2.0.1/mcs/class/System.Configuration/System.Configuration/ConfigurationManager.cs:166 
  at System.Net.WebRequest..cctor () [0x00014] in
/usr/src/packages/BUILD/mono-2.0.1/mcs/class/System/System.Net/WebRequest.cs:59 
  --- End of inner exception stack trace ---
  at Google.GData.Client.GDataRequest.EnsureWebRequest () [0x00000] 
  at Google.GData.Client.GDataGAuthRequest.EnsureWebRequest () [0x00000] 
  at Google.GData.Client.GDataRequest.Execute () [0x00000] 
  at Google.GData.Client.GDataGAuthRequest.Execute (Int32 retryCounter)
[0x00000] 

Any idea what am missing ?
-- 
View this message in context: http://www.nabble.com/Problem-with-google-calendar-authentication-using-embedded-mono-in-app-tp22617142p22617142.html
Sent from the Mono - Dev mailing list archive at Nabble.com.



More information about the Mono-devel-list mailing list