The given key was not present in the dictionary - InfoPath Dev
in

InfoPath Dev

The given key was not present in the dictionary

Last post 01-03-2007 05:05 AM by STVince. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 12-29-2006 03:57 AM

    The given key was not present in the dictionary

    Hi,

    I hope someone can help me and understand my badly English.
    I try to publish a form template to a SharePoint server.

    I use the publish wizard from VisualStudio 2005 and type for example the following InfoPath Forms Service Site "http://SERVERNAME/personal/USER". The Form must be compatible to fill out by a browser. I saved it local to upload it in SPS2007 by the administrator. The Security Level is "Full Trust".
    On the “Central Administration“ I try to upload the form template but I get the following error “The given key was not present in the dictionary.”

    The InfoPath has C# Code behind and use a web service in code an as data connection.

    Thx
    Vince
  • 01-02-2007 11:06 PM In reply to

    Re: The given key was not present in the dictionary

    Hi Vince and welcome to the forums,

    Check this link,
    http://support.microsoft.com/?kbid=926813

    Hope this helps you!
    Shilpa
    INFOPATHDEV India
  • 01-03-2007 04:37 AM In reply to

    Re: The given key was not present in the dictionary

    thx for the Info.
    I found last night my problem and solved it. I bind a *.xsd file into the "data source". I declare new types like this in it:

    	
    <xs:simpleType name="VARCHAR_50">
    <xs:restriction base="xs:string">
    <xs:maxLength value="50"/>
    </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="FLOAT">
    <xs:restriction base="xs:float">
    <xs:minExclusive value="-3.402823e+038"/>
    <xs:maxExclusive value="3.402823e+038"/>
    </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="SMALLINT">
    <xs:restriction base="xs:unsignedByte">
    <xs:minInclusive value="0"/>
    <xs:maxInclusive value="255"/>
    </xs:restriction>
    </xs:simpleType>


    I delete it and now use only types like "integer" and "string" and it works.

    But now I can verify the form but not upload it correctly.
    I have a new error
    quote:

    - This operation is not allowed at this time.
    - There is an error in the InternalStartup method of form code.



    When I delete the following code-line in "FormCode.Designer.cs"

    this.InternalStartup();


    I can upload the form, but the managed code has no effect. The "Intranet-Zone" is "Full-Trusted" and the form itself too.

    Can someone please help me - it is very important!
    thx very much
    STVince
  • 01-03-2007 05:05 AM In reply to

    Re: The given key was not present in the dictionary

    I found the problem. It was in FormCode.cs!
    I try to set my "_memberVariable" in the "InternalStartup()".
    Now it works - but how can I made a initialisation on sturtup?
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.