InfoPath & Webservice C# - InfoPath Dev
in

InfoPath Dev

InfoPath & Webservice C#

Last post 01-04-2006 08:48 AM by Matt Faus. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 01-04-2006 07:34 AM

    InfoPath & Webservice C#

    Hello,

    I created an infoPath application in C#.

    When I call my webservice I have this message :


    System.Configuration.ConfigurationException
    Configuration file C:\Program Files\Microsoft Office\OFFICE11\INFOPATH.EXE.config does not have root <configuration> tag (C:\Program Files\Microsoft Office\OFFICE11\INFOPATH.EXE.config line 1)
    at System.Configuration.ConfigurationRecord.ScanFactoriesRecursive(XmlTextReader reader)
    at System.Configuration.ConfigurationRecord.Load(String filename)
    at System.Configuration.DefaultConfigurationSystem.System.Configuration.IConfigurationSystem.Init()
    at System.Configuration.ConfigurationSettings.SetConfigurationSystem(IConfigurationSystem configSystem)
    at System.Configuration.ConfigurationSettings.GetConfig(String sectionName)
    at System.Web.Services.Configuration.WebServicesConfiguration.get_Current()
    at System.Web.Services.Protocols.SoapClientType..ctor(Type type)
    at System.Web.Services.Protocols.SoapHttpClientProtocol..ctor()
    at InfoPathProjectAxone_V2.ws_Axone.WebService..ctor() in D:\Mes Documents\Visual Studio Projects\InfoPathProjectAxone_V2\Web References\ws_Axone\Reference.cs:line 30
    at InfoPathProjectAxone_V2.InfoPathProjectAxone_V2.buttonWSS_OnClick(DocActionEvent e) in d:\mes documents\visual studio projects\infopathprojectaxone_v2\formcode.cs:line 43
    at Microsoft.Office.Interop.InfoPath.SemiTrust._ButtonEventSink_SinkHelper.OnClick(DocActionEvent pEvent)


    Michel DEGREMONT.
  • 01-04-2006 07:37 AM In reply to

    Re: InfoPath &amp; Webservice C#

    It's Ok,

    In my file INFOPATH.EXE.Config

    C:\Program Files\Microsoft Office\OFFICE11

    I have
    <startup>
    <requiredRuntime imageVersion="v1.1.4322" version="v1.1.4322" />
    <supportedRuntime version="v1.1.4322" />
    </startup>



    Now I add : <configuration>

    <configuration>
    <startup>
    <requiredRuntime imageVersion="v1.1.4322" version="v1.1.4322" />
    <supportedRuntime version="v1.1.4322" />
    </startup>
    </configuration>

    And It's work

    Michel DEGREMONT.
  • 01-04-2006 08:48 AM In reply to

    Re: InfoPath &amp; Webservice C#

    Well, congratulations on figuring out your own question! 3 minutes, I think that's a record.

    Let us know if you have any other questions.

    ---------------
    Matt Faus
    InfoPath Dev Texas
    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.