Click here to Skip to main content
15,900,511 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Ok firstly i will explain you the project. Its in C# and .net 4. It is in WPF. Now there are multiple wpf windows 1 of which is InvoiceAssist.xaml which is the startup window ie: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" StartupUri="InvoiceAssist.xaml">

Then there is another window called InvoiceFormat.xaml. Now i will explain the flow.This is how thw project is supposed to run:

First run the window InvoiceAssist.xaml then the user sets some values on this page and then when i press the print button all these values are given to InvoiceFormat.xaml window and the entire window which has the invoice format is printed.

The code used to run smoothly earlier...... but recently when i debug the program its executes the InvoiceFormat.xaml page instead of InvoiceAssist.xaml...... so the values arent set and then weird exceptions like divide by zero occur.

The places that i checked for errors are
1.App.xaml......StartupUri="InvoiceAssist.xaml"> it is proper
2.Checked if i had written any constructor for the InvoiceAssist.xaml page that redirects me to the InvoiceFormat.xaml......... still no there is no such code.


Can You Visual studio 2010 geniuses please help me figure out where i am going wrong.? Thanking you guys in advance .:)
Posted
Comments
[no name] 21-Apr-12 10:16am    
Just so I understand this... you want us to debug your program for you without seeing the code?
KD Soft 22-Apr-12 6:49am    
its a huge code. what part of the code am i supposed to show?
Sergey Alexandrovich Kryukov 22-Apr-12 15:41pm    
This is something you should know. Rather, you should make a short code sample showing the problem, for the sole purpose of addressing this problem and asking the question. If you cannot do it, nobody can help, I'm afraid to say.

Also, can you get back to your development step where the right XAML was used? Then you could compare with the recent code. If you cannot do it, it means that you don't use proper Revision Control System. If you don't use Revision Control System, you are not developing anything, you just wasting your time on writing some code you can get lost in any time (well, maybe not wasting time but rather getting useful experience; I would like to hope). If so, you should pause doing what you are doing and start using some Revision Control System first.

--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900