Reputation: 31
When I am trying to create a new directory in my WPF application i am getting the following error.
" 'The invocation of the constructor on type 'NetworkApplication.Login' that matches the specified binding constraints threw an exception.' Line number '3' and line position '9'."
this is my line of code
DirectoryInfo di = Directory.CreateDirectory(@"C:\\Windows\\Newfolder1");
Upvotes: 1
Views: 4186
Reputation: 86
Besides the security issues, you're trying to escape a string that has the @ in front of it. Either remove the @ or un-escape the slashes.
Upvotes: 3