Solved

invalid file error in C# application

Posted on 2015-01-05
6
468 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
ID: 40531443
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
ID: 40531446
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 63

Accepted Solution

by:
Fernando Soto earned 125 total points
ID: 40531458
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
MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

 
LVL 33

Assisted Solution

by:sarabande
sarabande earned 125 total points
ID: 40531883
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
ID: 40532276
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
ID: 40535541
Thank you so much for trying to help...
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Add a Condition in ASP Repeater 6 34
Open a link in vb.net 2 16
linq, c# 8 25
I need help setting tabindex to textboxes in my MVC.Net application 3 13
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…

820 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