Questions tagged [argumentexception]

An ArgumentException is a specific exception in the .NET framework thrown when one of the arguments provided to a method is not valid.

From MSDN:

ArgumentException is thrown when a method is invoked and at least one of the passed arguments does not meet the parameter specification of the called method.

232 questions
-1
votes
1 answer

Form closes error: ArgumentException was unhandled when using Strings in VB.net

There is a weird error when I try to close my Windows Form... I am trying to do a string manipulation of this string: ABEL, SCOTT - 1472 (COL) when the ComboBox Selected Item changed. It is able to work as you can see from the debugger below, but…
iamhx
  • 472
  • 6
  • 24
-1
votes
1 answer

There seems to be an ArgumentException when I'm creating a Bitmap object using the

I'm trying to re-size my sprites to make them the proper size so they get drawn correctly, but I cant seem to find why I'm getting an unhandled ArgumentExepction when I'm making the new Bitmap object. public static Image prepareImage(Image original,…
-1
votes
1 answer

Microsoft Exchange Web service :GetUserAvailability exception :System.ArgumentException: An item with the same key has already been added

try { results = this.exchangeService.GetUserAvailability(attendees, new TimeWindow(startTime, endTime), AvailabilityData.FreeBusy); } catch (Exception ex) { …
-1
votes
1 answer

org.apache.openjpa.persistence.ArgumentException

I m using Hibernate and EJB... I got EntityManager from Container, When i try to persist, I m hitting with below error.. Could some one help? [1/25/14 23:12:46:832 CST] 00000056 SystemOut O 2014-01-25 23:12:46 ERROR XXXXXXXService:114 - XXXXX…
Shankar
  • 175
  • 2
  • 7
  • 17
-1
votes
1 answer

how to generate vCard All Properties into Regex?

I want to generate regex for vCard Properties. For Ex: VERSION: Regex regex = new Regex(@"(?(VERSION)) (:(?[^\n\r]*))", options); Match m = regex.Match(s); how to write other vcard proparty like…
Tulsi
  • 151
  • 3
  • 15
-1
votes
1 answer

ImageButton event giving Invalid Postback in GridView

Gridview postback Issues: After much time and frustration, I'm posting the solution for others struggling with the same scenario... On pageLoad I was binding the gridview for an initial display of the data. One column had an imagebutton…
puddleglum
  • 1,020
  • 14
  • 19
-5
votes
1 answer

[ask]Visual Studio 2012 Error_System.ArgumentException_

what is this error? I was writing a new program but I saw an error bur I don't know what is it! !http://rozup.ir/up/salardesigner/Pictures/eror.png
1 2 3
15
16