c# - Suddenly lots of compliation errors - visual studio -
been developing code last few months, morning got 319 errors on code compiled fine yesterday. (known) change made has been include folder in solutions explorer includes data accessed program when runs.
i hope if can crack first of 319 errors show has snapped - e.g. i've leant on keyboard, or file has been corrupted.
i've tried clean , rebuild - same problem.
1st error: "the type or namespace name smtpclient not exist in namespace system.net.mail (are missing assembly reference?)
tried:
check msdn should exist - done
check have system.net in references - done
remove , re-add system.net references - done
try typing system.net.mail. , see intellisense offers - 'mailaddress', happy point, no offer of 'smtpclient'
can advise try next?
close , restart visual studio. if problem persist, read error list line line. in cases, visual studio point out error is, file , line number. thing ranging unclosed/unmatched braces, semi-colon , parenthesis
Comments
Post a Comment