This project is read-only.

DebugFont.spritefont needs to be added to your content directory - Error - Unsolved

Sep 7, 2011 at 8:19 AM
Edited Sep 7, 2011 at 9:46 AM

SOLVED: This error only occurs in Visual Studio 2010, it doesn't appear in Visual Studio 2008, probably because the Content Pipeline is differently loaded in both. Though the error I've been having with MSVCR90.dll, is the next problem.

You need to add 'DebugFont.spritefont' file to your content directory before you can display debug information


When I Debug CameraCalibration.sln I get the above error, does anyone know how to solve this?

Thanks in advance!


-- EDIT: This error shows up in the Event Viewer:

Faulting application name: CameraCalibration.exe, version:, time stamp: 0x4e67259c

Faulting module name: MSVCR90.dll, version: 9.0.30729.4974, time stamp: 0x4b7a226f

Exception code: 0xc0000417

Fault offset: 0x0006ccb5

Faulting process id: 0xdc0

Faulting application start time: 0x01cc6d34cfa769a0

Faulting application path: D:\My Documents\user\AR-Demo\GoblinXNAv3.6\tools\CameraCalibration\bin\x86\Release\CameraCalibration.exe

Faulting module path: C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4974_none_50940634bcb759cb\MSVCR90.dll

Report Id: 1296c1c0-d928-11e0-8928-fa12135e51e5

Oct 11, 2011 at 9:34 AM

i am using visual studio 2008. and i have this problem too. i starting building a menu for my game. and this error started appearing. any help. i have the file in the directory.

Oct 14, 2011 at 1:52 AM

Do you have DebugFont.spritefont in the root of your Content directory or under a subdirectory called "Fonts/"?  I think Goblin has a default layout for organizing the content files (Fonts, Models, Shaders, Sounds, Textures), maybe it's looking under Fonts and that why it can't find the right file.