Posted on: 6/20/2014 11:05:39 PM | Views : 425


Class1.vb
Imports Microsoft.VisualBasic Namespace CustomControls Public Class UserIpParameter Inherits System.Web.UI.WebControls.Parameter Protected Overloads Overrides Function Evaluate(ByVal context As HttpContext, ByVal control As System.Web.UI.Control) As Object Return HttpContext.Current.Request.UserHostAddress End Function End Class End Namespace code behind Default.aspx
Imports CustomControls Dim _IpAdd As UserIpParameter = New UserIpParameter myCommand2.Parameters.AddWithValue("@IPAddress", _IpAdd) I can't figure out why I'm getting the floowing exception.  What am I missing?
Exception Details: System.ArgumentException: No mapping exists from object type CustomControls.UserIpParameter to a known managed provider native type.

Go to the complete details ...