Help with locating error

Hi

When attempting to run my project I receive the error message below, how do I locate the error? when i click on the row it does not take me to location of the error.

Error      8      Files has invalid value "#�h�J�����". Illegal characters in path.      TestProj
Thanks,
Victor
vcharlesAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Naitik GamitSoftware DeveloperCommented:
Delete the obj folder within your project and it will fix the issue.

The obj folders are hidden in Visual Studio. You can see them with help of file explorer
0
Fernando SotoRetiredCommented:
Hi Victor;

Without seeing more of the code it is difficult to say. But from the error message it sounds like you are trying to open a file and the file path has an invalid character. Are you building a file path to a file that you want to open? If you are I would place a breakpoint before that statement and look at the file path variable to see what is in there.
0
Jacques Bourgeois (James Burger)PresidentCommented:
You first need to know if the error happens when the application is compiling or while it is running.

When the debugger cannot lead you to the line that causes the error, this is usually the case. But to make sure, try the Rebuild option in the Build menu. If you get the error when doing that, it is a compilation error.

In such a case, you can use the Clean Solution option in the build menu. Deleting the obj folder directly is not recommended because there is more than that at stake during compilation.

If you do not get any error when calling Rebuild, then this is more probably a run-time error and Fernando provides a good lead. Some characters, such ? or ' cannot be used in a file name. You will find a complete list at https://support.microsoft.com/en-us/kb/905231?wa=wsignin1.0.
0
CompTIA Network+

Prepare for the CompTIA Network+ exam by learning how to troubleshoot, configure, and manage both wired and wireless networks.

vcharlesAuthor Commented:
Hi,

I am able to run the app, the error  occurs  when compiling the app, same error  occurs when trying to clean or rebuild the solution. Looking at comments to folliw other steps to solve issue. Thanks.
0
Éric MoreauSenior .Net ConsultantCommented:
before starting/testing your application from the IDE debugger, click the Debug menu and then "Exceptions settings". Check all the checkboxes you see. Your application should now stop where the error really is no matter the Try..Catch already in place.
0
Éric MoreauSenior .Net ConsultantCommented:
you are not able to compile?

Have you tried copying your project into another folder without any special characters? and with a very short path (like c:\temp\yourproject)?
0
vcharlesAuthor Commented:
I tried all options given, but now, not able to run the project unless I choose last successful build. When I try to compile the App, now receiving  error message: The "ResolvekeySource task failed unexpectedly. System.Security.CryptographyException: Cannot find thr requested object.
0
Éric MoreauSenior .Net ConsultantCommented:
the checkboxes won't help if you cannot compile. They are only effective when you are debugging and you don't seem to be there yet!
0
Éric MoreauSenior .Net ConsultantCommented:
was that project created by you or somebody else? it looks like you are missing a key: http://www.edsquared.com/2007/07/18/Team+Build+And+Strong+Naming+Or+ClickOnce.aspx
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
vcharlesAuthor Commented:
I think something is wrong with my computer, obj folder and debug folders all contain 4 Help_Decrypt files of different types. Apparently, my files were encrypted. Will run it from another PC next week. THANK YOU for all the comments.
0
Fernando SotoRetiredCommented:
Hi Victor;

If this is no longer an issue please close the question.

Thanks
0
vcharlesAuthor Commented:
Thank You.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.