Missing something please help -(what file is it looking for?)

Can anyone help. All my code was working. I think this error is a simple wrong path type error. but i didnt change anything. I copied a backup over my the code (a backup that I know was working) but I get this same error. I am so frustrated! what does this error mean?

Did I move a file by mistake?

Now i get this error:

<<

'Set property 'System.Windows.ResourceDictionary.Source' threw an exception.' Line number '6' and line position '4'.

the inner message is:

Could not load file or assembly 'ICSharpCode.AvalonEdit, Culture=neutral' or one of its dependencies. The system cannot find the file specified.

(what file is it looking for?)

My code looks like this

public partial class F_Ide : Form

{

CompletionWindow completionWindow;

IList<ICompletionData> data;

bool docIsdirty = false;

OmegaB thegame;

private ElementHost host;

ICSharpCode.AvalonEdit.TextEditor textedit;

public F_Ide(OmegaB game)

{

this.thegame = game;

InitializeComponent();

host = new ElementHost();

host.Dock = DockStyle.Fill;

idepanel.Controls.Add(host);

textedit = new ICSharpCode.AvalonEdit.TextEditor();

textedit.Height = idepanel.Height;

textedit.Width = idepanel.Width;

textedit.ShowLineNumbers = true;

host.Child = textedit;

I am at my wits end. I restored what I though was working code, (the build's exe runs) now I am stuck

Re: Missing something please help -(what file is it looking for?)

Yes, I added a project ref. All the code complies. Its a runtime error, like it cant find texteditor.xaml, which resides in the projects main directory. I see the file it wants, its there, I am new to WPF.. where does the texteditor control think (or is controled by) where the xaml file is?

Thanks for taking the time to help , I am way into this project and this control really fits well.

Re: Missing something please help -(what file is it looking for?)

You mention that texteditor.xaml is in your projects main directory - so you copied the AvalonEdit source code into your project? That's not possible, as the component resource references point to ICSharpCode.AvalonEdit.dll (e.g. those in generic.xaml). And it also comes with huge complications in the licensing (read the LGPL for details), so please keep AvalonEdit as a separate library.

Re: Missing something please help -(what file is it looking for?)

No, I have it in a seperate project. Class Lib. and my main project has a ref to the project. is it looking for it in my main project directory?

I had the project just refrencing the DLL. all worked. but then I deleted the refrence to the dll and added the source as class lib project, then added a ref to my main program. when all the problems started, I removed all ref. to avalonedit and projects from my main project. and copied the avalon source from the zip file again. added the project to my solution and made the ref. poof the runtime errors.

combing the web (again I am new to WPF) whats the URI stuff pack vs paths? I played with them in the generic.xaml and the error lines changed. Is there a file that controls where Avalon looks ? or is Visual studio not updating something. I really didnt change any code. I basicly just swaped out the hard dll for the source....

Re: Missing something please help -(what file is it looking for?)

the code completion window is inserting the "." plus the user selection. I dont want the "." I want just a space and the user selection. The language(text) in my app is a custom script language. its not OOP its just function based so it has no classes.