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:

  1. check msdn should exist - done

  2. check have system.net in references - done

  3. remove , re-add system.net references - done

  4. 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

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -