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?
 
É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
 
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
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

 
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
 
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
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.