Share via


Compile Error Code 9009

Question

Monday, January 26, 2009 6:49 PM

I did some research into my error code and traced it down to my project file->Properties->Build Events

 

For a post-build event, I have the following:

 

"$(TargetPath)" -exportschema "$(ProjectDir)myschema.txschema"

 

As I understand it, that path is invalid.  Problem is, I don't know how to make it valid...

 

I am running:

Visual C# 2005 SP1

XNA Game Studio 2.0

TorqueX 2.0

Windows Vista Ultimate 64

 

Keep in mind that this is a shared project and once I have it working, I need to commit it to an SVN and it must be able to work on other versions of Windows. ;)

All replies (13)

Friday, January 30, 2009 3:56 PM âś…Answered

We may end up creating a new project and just copy/pasting all our code in... IDK yet, it's up to the project lead...


Tuesday, January 27, 2009 3:35 PM

Here is full error message from output:

 

C:\Windows\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(3109,13): error MSB3073: The command """ -exportschema "myschema.txschema"" exited with code 9009.

 

When I right click and choose 'go to', this is what I see:

<Exec WorkingDirectory="$(OutDir)" Command="$(PostBuildEvent)" />

 

When I go to solution properties and look at the $(PostBuildEvent), it looks fine and gives the error even if i delete it, I STILL get the error message!


Tuesday, January 27, 2009 4:22 PM

Perhaps you're looking at post-build events for a different configuration?


Tuesday, January 27, 2009 4:31 PM

Could you explain that in detail?

 I only have 1 project in the solution.  I don't see any build events anywhere else.  I did a "Find in files" search for "exportschema" and didn't find it anywhere...


Tuesday, January 27, 2009 5:07 PM

Well, configurations are something that every project can have, by default there are two - Debug and Release. You can set different build events for different configurations and you can compile your project in different configurations. So perhaps the build event you're looking at is for debug configuration and you're compiling your project under release configuration?

 

At least, that's what I thought. But now that I checked this, you're actually not allowed to have different build events for different configurations. Oh well, at least we're sure this is not the problem :D.

 

So anyway, what is the value of your TargetPath variable? (You should be able to see it when you click Edit Post-build -> Macros >>


Tuesday, January 27, 2009 5:13 PM

 TargetPath   C:\Fowl Prowl\Fowl Prowl\Fowl Prowl\bin\x86\Release\FowlProwl.exe


Tuesday, January 27, 2009 5:16 PM

What I don't understand is, if I completely delete the entire post-build event, it still gives me the exact same error:

 

 C:\Windows\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(3109,13): error MSB3073: The command """ -exportschema "myschema.txschema"" exited with code 9009.

 

 When I right click and choose 'go to', this is what I see:

<Exec WorkingDirectory="$(OutDir)" Command="$(PostBuildEvent)" />

 

 

So it is definitely a problem with the post-build, but even when I remove the event?  How is this even possible?

 


Tuesday, January 27, 2009 5:21 PM

Also, does it matter that the Release platform is x86 and I am running 64bit Windows?


Tuesday, January 27, 2009 7:22 PM

Do you have the PostBuildEvent section in the project file? Does it contain an empty command e.g.:

  <PropertyGroup>
    <PostBuildEvent>"" "$(TargetPath)"</PostBuildEvent>
  </PropertyGroup>


Tuesday, January 27, 2009 8:21 PM

This is what I set it to:

 

<PropertyGroup>
    <PostBuildEvent></PostBuildEvent>
  </PropertyGroup>

 

 

Empty!  And still getting the error!


Tuesday, January 27, 2009 8:30 PM

What happens if you remove the Command="$(PostBuildEvent)" or the whole line?


Wednesday, January 28, 2009 12:30 AM

Can't. That part is in a .NET dll file called Microsoft.common.targets or something like that. It's hard coded


Wednesday, January 28, 2009 12:11 PM

Could you just create a new project file and see if this happens again?