SQLHelper Error

  • Thread starter Thread starter larzeb
  • Start date Start date
L

larzeb

I don't understand the following error message. Why is there no
accessible arguments when Intellisense allowed it?

An unhandled exception of type
System.Reflection.AmbiguousMatchException occurred in
Microsoft.visualbasic.dll

No accessible overloaded 'SqlHelp.ExecuteNonQuery' is most specific
for these arguments:

Dim params() As SqlParameter = New SqlParameter(52) {}
....
Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.CacheParameterSet(ConnectionSettings.cnString,
"Site_Ins", params)
Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(ConnectionSettings.cnString,
CommandType.StoredProcedure, "Site_Ins", params)
 
Hi larzeb,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you're getting an
AmbiguousMatchException when trying to ExecuteNonQuery using SQLHelper
class. If there is any misunderstanding, please feel free to let me know.

Based on the error message, I'm still not quite sure how this happens.
Could you please please post some code snippets here? So I can get to know
how the method was called. It will help me to deliver my assistance more
quickly. Thanks!

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
Hi larzeb,

It seems that the null reference for the connection string might be the
cause of the problem.

Thanks for sharing your experience with all the people here. If you have
any questions, please feel free to post them in the community.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
Back
Top