TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
yash patel
1.5k
282
20.9k
getting network error
Oct 15 2020 11:44 PM
I m getting network error
unable to understand what is the error
public
class
UserModel
{
public
int
UserId {
get
;
set
; }
public
String FullName {
get
;
set
; }
public
String UserEmail {
get
;
set
; }
public
String Password {
get
;
set
; }
static
string
ConnectionString =
"Data Source=DESKTOP-O00000/SQL2017;Initial Catalog=nsroute;Integrated Security=True"
;
public
static
IEnumerable<UserModel> GetUserDetails()
{
List<UserModel> userdetailslist =
new
List<UserModel>();
using
(IDbConnection con =
new
SqlConnection(ConnectionString))
{
if
(con.State == ConnectionState.Closed)
con.Open();
userdetailslist = con.Query<UserModel>(
"GetUserDetails"
).ToList();
}
return
userdetailslist;
}
}
Reply
Answers (
2
)
Troubleshooting errors ClickOnce deployments
The parameters dictionary contains a null entry for parameter 'id'