v
Not logged inv
SearchAsk a QuestionReport an IssueMake a SuggestionMy Questions and Issues
Issue Details
Find By ID

Length cannot be less than zero parameter name: Length

Issue Details

Log in to Track Changes or Edit
B131164
Bug Report
George Voulgaris
Yes
Processed
Won't Fix
Yes
.NET
XtraEditors Library
8.2.6.0
Windows Vista x64
Microsoft Visual Studio 2008
11/7/2008 1:36:10 PM
-> Created by George Voulgaris 11/4/2008 10:49:55 AM
Description
Steps to Reproduce
Actual Results
Expected Results

when i try to drop a textedit control or memoedit on a windows form or dxform it throws
"Length cannot be less than zero parameter name: Length" error and fails to create the control on the form

<- Reviewed by DevExpress Team 11/4/2008 11:02:24 AM
<- Processed (Can't Reproduce) by DevExpress Team 11/4/2008 1:18:38 PM

Hi,

I'm afraid we can't reproduce this problem (Properties failed less than zero). Please try to install last updates to your workstation and turn UAC off (Control Panel>User Accounts).

Thank you, Marina

-> Reactivated by George Voulgaris 11/4/2008 7:21:30 PM

version 8.2.4.0 worked fine
the problem showed after upgraded to 8.2.6.0...
after my workstation the same thing happened to my laptop (vs2008 sp1, vista 32 business,silverlight tools instaled)
so it has to be more than a random fault..

please check again...
I cant work no more

-> Updated by George Voulgaris 11/4/2008 10:46:28 PM

after many hours of researching this issue found that there is a conflict with the popular
xaml power tools...
from here
http://karlshifflett.wordpress.com/xaml-power-toys/#Downloads

xm maybe you should check it because your components are the only ones from all that i have that dont work...

<- Updated by DevExpress Team 11/5/2008 9:56:57 AM

Hi,

Our developers need additional time to research this issue. We'll post an answer ASAP.

Thank you

<- Reproduced by DevExpress Team 11/5/2008 11:55:27 AM

Hi,

Thank you for your report. We've reproduced this problem.

Thank you, Marina

<- Processed (Won't Fix) by DevExpress Team 11/7/2008 1:36:10 PM

Hi,

Let me explain how the XAML Toys add-in works. You drop a control onto the Form, and assemblies are added to your project. The XAML Toys add-in parses the assembly name. Our design-time assemblies have short names, i.e. DevExpress.XtraEditors.v8.3.Design. However, the XAML Toys parses an assembly name as if it is a full name:

[VB.NET]

Private Shared Function CurrentDomain_AssemblyResolve(ByVal sender As Object, ByVal args As ResolveEventArgs) As
Assembly

        Dim strFileName As String = String.Empty

        If args.Name.Contains("\") Then
            strFileName = args.Name

        Else
            strFileName =
System.IO.Path.Combine(System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly.Location),
args.Name.Substring(0, args.Name.IndexOf(","c)) + ".dll")'<-------------Error!
        End If

        If System.IO.File.Exists(strFileName) Then
            Return Assembly.LoadFrom(strFileName)

        ElseIf Assembly.GetExecutingAssembly().FullName = args.Name Then
            Return Assembly.GetExecutingAssembly

        Else
            Return Nothing
        End If

    End Function

Marked line is the cause of the exception. It's necessary to check whether the assembly name is full or short, for example:

[VB.NET]

If args.Name.IndexOf(',') = -1 Then
    strFileName = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly.Location), args.Name +
".dll");
Else
   strFileName = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly.Location),
args.Name.Substring(0, args.Name.IndexOf(',')) + ".dll");
End If

Thank you, Marina

Log in to Track Changes or Edit

Peer-to-Peer Discussion in DevExpress Forums

No discussion on this article has been started yet.

Please login to start discussion.

v
v
Search
Searching Tips