Bug Report B130771
Visible to All Users

Properties failed less than zero

created 16 years ago

When upgrading to Windows Server 2008 as my development environment I am experiencing some very odd behavior. First when trying to add a ButtonEdit to a from, I get the following error "Length cannot be less than zero. Parameter name: length". I believe that this also occurs with other controls. Additionally for already added controls (before upgrading to the new environment), the Properties (list of properties which can be set) in the Property window does not allow the list of parameters to be expanded.
Steps to Reproduce:
Add a control to a form.
Actual Results:
Error message pops up.
"Length cannot be less than zero. Parameter name: length".

Show previous comments (1)
?
Unknown 16 years ago

    I was not able to get the call stack when adding the control to the form (VS did not break as described); however below is the call stack from the form when loading the form for the first time (from the exisiting project):
    at System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName)
    at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
    at System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
    at System.Type.GetType(String typeName)
    at System.ComponentModel.TypeDescriptor.CreateDesigner(IComponent component, Type designerBaseType)
    at DevExpress.XtraEditors.Repository.RepositoryItem.CreateDesigner()
    at DevExpress.XtraEditors.Repository.RepositoryItem.FilterProperties(PropertyDescriptorCollection collection)
    at DevExpress.XtraEditors.Repository.RepositoryItem.System.ComponentModel.ICustomTypeDescriptor.GetProperties(Attribute[] attributes)
    at System.ComponentModel.TypeDescriptor.MergedTypeDescriptor.System.ComponentModel.ICustomTypeDescriptor.GetProperties(Attribute[] attributes)
    at System.ComponentModel.TypeDescriptor.GetPropertiesImpl(Object component, Attribute[] attributes, Boolean noCustomTypeDesc, Boolean noAttributes)
    at System.ComponentModel.TypeDescriptor.GetProperties(Object component, Attribute[] attributes)
    at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializePropertyAssignStatement(IDesignerSerializationManager manager, CodeAssignStatement statement, CodePropertyReferenceExpression propertyReferenceEx, Boolean reportError)
    at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeAssignStatement(IDesignerSerializationManager manager, CodeAssignStatement statement)
    at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement)
    Additionally I think I may have figured out the cause and am hoping you can help guide me to a solution. When I logged off my user account (has admin privileges) and logged in with the actual Administrator, everything seemed to work fine. Is it possible that Server 2008 is blocking some of the libraries in the GAC? Your help would be greatly appreciated, this is very frustrating.
    Thank You

    DevExpress Support Team 16 years ago

      Hello Chad,
      Thank you for the additional information. Yes, it looks like a security issue. We'll try to find a solution. Please bear with us.
      Thanks,
      Nick

      Stan (DevExpress Support) 16 years ago

        Hello Chad,
        Thank you for your patience. Our developers have tried to reproduce this issue on our side and unfortunately, failed to replicate this problem. Most probably the problem is cause by the fact that the Visual Studio doesn't have administrative rights and cannot access design-time assemblies. Please try to disable UAC on your machine. Hope this will help you resolve the problem.
        Thanks,
        Stan.

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.