•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the VB.NET section within the Software Development category of DaniWeb, a massive community of 391,133 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,171 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our VB.NET advertiser:
Views: 2000 | Replies: 0
![]() |
•
•
Join Date: Apr 2007
Posts: 10
Reputation:
Rep Power: 2
Solved Threads: 0
Hi, I receive this error "No default member found for type 'Guid'." when I run my application.
The highlighted line is the statement where the error occured at. I've tested my SQL statements, it really contains a single record.
Can someone please kindly explain to me why am I getting this error here? Thanks alot.
db = New SqlConnection(GetConnectionString())
db.Open()
Dim strSQL As String
strSQL = "SELECT GUID FROM MyLog WHERE MyID = '" & strID & "'"
strGUIDTracker = GetSingleData(strSQL)
..................
Function GetSingleData(ByVal sqlText As String) As String
Dim sd As String
Dim oConn As SqlConnection
oConn = New SqlConnection(GetConnectionString())
Dim strSQLCmd As SqlCommand = New SqlCommand(sqlText, oConn)
strSQLCmd.Connection.Open()
sd = strSQLCmd.ExecuteScalar(System.Data.CommandBehavior.CloseConnection)
Return sd
End FunctionThe highlighted line is the statement where the error occured at. I've tested my SQL statements, it really contains a single record.
Can someone please kindly explain to me why am I getting this error here? Thanks alot.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb VB.NET Marketplace
•
•
•
•
.net .net framework 3.0 access algos asp breach broadband code combo crime custom daniweb data data protection data transfer database drive dropdownlist forensics fortitude government hard hardware hitachi hope internet linux microsoft module net news reuse security skin storage struggle terabyte theme trial-and-error victory web wikipedia windows workflow
- Error trying to perform single word searches in address bar. (Viruses, Spyware and other Nasties)
- memory management in wndows 2000 (Windows NT / 2000 / XP / 2003)
- Error: uncaught exception: Permission denied to call method XMLHttpRequest.open (HTML and CSS)
- data adapter update method won't work (VB.NET)
- ExecuteRedear vs ExecuteScalar (ASP.NET)
- Login and retrieve user data from database (ASP.NET)
- retrieving "Data" from Listbox (VB.NET)
- Get data from Access instead of Notepad (URGENT) (C#)
Other Threads in the VB.NET Forum
- Previous Thread: Windows Mobile & Datagrid
- Next Thread: Index was out of range. Must be non-negative and less than the size of the collection


Linear Mode