Menu

FormatException of uri

Help
Stéphane
2009-02-19
2013-04-24
  • Stéphane

    Stéphane - 2009-02-19

    Hi,

    This tools looks great, it fits some needs  I have to integrate an internal wiki and my application.

    Unfortunately, I have an exception when trying to create a new Wiki object (see above).
    Can you help me ?
    More generally, are there any code examples of how to use this library ?

    Thanks.

    System.FormatException was unhandled
      Message="Le format de la chaîne d'entrée est incorrect."
      Source="mscorlib"
      StackTrace:
           à System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
           à System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
           à System.Int32.Parse(String s)
           à WikiTools.Access.Wiki.LoadCapabilities()
           à WikiTools.Access.Wiki..ctor(String uri, String cachedir)
           à WikiTools.Access.Wiki..ctor(String uri)
           à ConsoleApplication.Program.Main(String[] args) dans D:\steph\projects\ConsoleApplication\ConsoleApplication\Program.cs:ligne 14
           à System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
           à System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
           à System.Runtime.Hosting.ManifestRunner.Run(Boolean checkAptModel)
           à System.Runtime.Hosting.ManifestRunner.ExecuteAsAssembly()
           à System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)
           à System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext)
           à System.Activator.CreateInstance(ActivationContext activationContext)
           à Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()
           à System.Threading.ThreadHelper.ThreadStart_Context(Object state)
           à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
           à System.Threading.ThreadHelper.ThreadStart()
      InnerException:

     
    • Alexander Zaytsev

      can you post your code, where you create Wiki object?

       
      • Stéphane

        Stéphane - 2009-05-16

        in fact, I workaround this by hardcoding the version in the WikiTools.Access.Wiki.LoadCapabilities() methods.
        I did that on the release 0.3 but, I discovered that you did not release for a while even if the source code as changed a lot.
        so maybe this issue has been fixed agin recent version of mediawiki.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.