Solved

invalid file error in C# application

Posted on 2015-01-05
6
412 Views
Last Modified: 2015-01-07
Good morning experts,

I just copied a small C# application which is still being developed from my hard drive at home to the one at work.
In both environments I use MS Visual Studio 2010.
When I tried to run the application at work I get the following error:


Error      1      Invalid Resx file. The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.  Line 315, position 5.      C:\Users\helpdesk2\Documents\Visual Studio 2010\Projects\Helpdesk2\Helpdesk2\frmDataEntry.resx      315      5      Helpdesk2


I am not familiar with XML and have no idea how to go about fixing error.

Please help if you can.

Thanks

Adam
0
Comment
Question by:adamtrask
6 Comments
 
LVL 11

Assisted Solution

by:Radek Baranowski
Radek Baranowski earned 125 total points
Comment Utility
Hey, I'm not sure what method you used to copy the file. but maybe try to move it using binary transfer. That way the content of the fiule would remain intact.
0
 
LVL 22

Assisted Solution

by:plusone3055
plusone3055 earned 125 total points
Comment Utility
A lot of us have experienced this error. if you haven't changed the code at all its just one of Microsofts little kinks.  I have a feeling that's its still working just fine on your original machine.  If that's the case then create a new project / form and copy all the code into that and re-build. It should solve the issue. I know its a pain, but this happens sometimes when you take code from one environment and load it to another one.
0
 
LVL 62

Accepted Solution

by:
Fernando Soto earned 125 total points
Comment Utility
It may be that this file frmDataEntry.resx got corrupted when you copied the project over to the work machine. Try and make a new copy of the original file and replace it on the work machine.
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 32

Assisted Solution

by:sarabande
sarabande earned 125 total points
Comment Utility
is there a file at 'C:\Users\helpdesk2\Documents\Visual Studio 2010\Projects\Helpdesk2\Helpdesk2\frmDataEntry.resx' and if yes, could you try to open it and check if it has line 315 and post the contents around?

Sara
0
 

Author Comment

by:adamtrask
Comment Utility
I apologize to everyone... this is the first day at our  school following the holidays and we are completely swamped.
I will look more carefully into the file once the day is over and will upload whatever details i  find.

Thank you for your help
0
 

Author Closing Comment

by:adamtrask
Comment Utility
Thank you so much for trying to help...
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now