Microsoft xna framework content contentloadexception error loading

So I had Terraria for some years now and wanted to play again with the new update and all but when I try to lunch it via steam it gives me this error . Microsoft.Xna.Framework.Content.ContentLoadException: Error loading "ImagesTileCracks". File not found. ---> System.IO.FileNotFoundException...

Terraria Community Forums

  • Thread starter
    Alibaba

  • Start date
    Jul 7, 2015

  • Forums

  • Terraria on PC

  • PC Support

  • PC Technical Support

  • #1

So I had Terraria for some years now and wanted to play again with the new update and all but when I try to lunch it via steam it gives me this error .
Microsoft.Xna.Framework.Content.ContentLoadException: Error loading «ImagesTileCracks». File not found. —> System.IO.FileNotFoundException: Error loading «ContentImagesTileCracks.xnb». File not found.
at Microsoft.Xna.Framework.TitleContainer.OpenStream(String name)
at Microsoft.Xna.Framework.Content.ContentManager.OpenStream(String assetName)
— End of inner exception stack trace —
at Microsoft.Xna.Framework.Content.ContentManager.OpenStream(String assetName)
at Microsoft.Xna.Framework.Content.ContentManager.ReadAsset[T](String assetName, Action`1 recordDisposableObject)
at Microsoft.Xna.Framework.Content.ContentManager.Load[T](String assetName)
at Terraria.Main.LoadContent()
at Microsoft.Xna.Framework.Game.Initialize()
at Terraria.Main.Initialize()
at Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun)
at Terraria.Program.InternalMain(String[] args)

I tried everything from removing and installing Terraria ,ori netframework but nothing works .
Can someone help me ? I never had a problem like this..I’m using windows 7 64 bit

  • #2

take a look at the thread wich is linked in my Sig.

  • #3

take a look at the thread wich is linked in my Sig.

Well Thanks , I tried to change the compatability to work for windows 7 but whenever i click apply and exit it never saves . I tried everything else , my drivers are updated and don’t have any other problems on that thread . Do you know why I can’t change the comp ?

  • #4

It does not save? hmm.

Try a Clean Reboot, also shown in that Thread.

  • Forums

  • Terraria on PC

  • PC Support

  • PC Technical Support

  • This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.

I’ve been trying load a texture in MonoGame using Xamarin Studio. My code is set up as below :

#region Using Statements
using System;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Storage;
using Microsoft.Xna.Framework.Input;

#endregion

namespace TestGame
{
    /// <summary>
    /// This is the main type for your game
    /// </summary>
    public class Game1 : Game
    {
        GraphicsDeviceManager graphics;
        SpriteBatch spriteBatch;

        //Game World
        Texture2D texture;
        Vector2 position = new Vector2(0,0);

        public Game1 ()
        {
            graphics = new GraphicsDeviceManager (this);
            Content.RootDirectory = "Content";              
            graphics.IsFullScreen = false;      
        }

        /// <summary>
        /// Allows the game to perform any initialization it needs to before starting to run.
        /// This is where it can query for any required services and load any non-graphic
        /// related content.  Calling base.Initialize will enumerate through any components
        /// and initialize them as well.
        /// </summary>
        protected override void Initialize ()
        {
            // TODO: Add your initialization logic here
            base.Initialize ();

        }

        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent ()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch (GraphicsDevice);

            //Content
            texture = Content.Load<Texture2D>("player");
        }

        /// <summary>
        /// Allows the game to run logic such as updating the world,
        /// checking for collisions, gathering input, and playing audio.
        /// </summary>
        /// <param name="gameTime">Provides a snapshot of timing values.</param>
        protected override void Update (GameTime gameTime)
        {
            // For Mobile devices, this logic will close the Game when the Back button is pressed
            if (GamePad.GetState (PlayerIndex.One).Buttons.Back == ButtonState.Pressed) {
                Exit ();
            }
            // TODO: Add your update logic here         
            base.Update (gameTime);
        }

        /// <summary>
        /// This is called when the game should draw itself.
        /// </summary>
        /// <param name="gameTime">Provides a snapshot of timing values.</param>
        protected override void Draw (GameTime gameTime)
        {
            graphics.GraphicsDevice.Clear (Color.CornflowerBlue);

            //Draw

            spriteBatch.Begin ();
            spriteBatch.Draw (texture, position, Color.White);
            spriteBatch.End ();

            base.Draw (gameTime);
        }
    }
}

When I debug it it gives me the error :

Microsoft.Xna.Framework.Content.ContentLoadException: Could not load
player asset as a non-content file! —>
Microsoft.Xna.Framework.Content.ContentLoadException: The directory
was not found. —> System.IO.DirectoryNotFoundException: Could not
find a part of the path
‘C:UsersFlameDocumentsProjectsTestGameTestGamebinDebugContentplayer.xnb’.
—> System.Exception:

— End of inner exception stack trace —

at at System.IO.__Error.WinIOError(Int32 errorCode, String
maybeFullPath)

at at System.IO.FileStream.Init(String path, FileMode mode,
FileAccess access, Int32 rights, Boolean useRights, FileShare share,
Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs,
String msgPath, Boolean bFromProxy, Boolean useLongPath)

at at System.IO.FileStream..ctor(String path, FileMode mode,
FileAccess access, FileShare share, Int32 bufferSize, FileOptions
options, String msgPath, Boolean bFromProxy)

at at System.IO.FileStream..ctor(String path, FileMode mode,
FileAccess access, FileShare share)

at at System.IO.File.OpenRead(String path)

at at Microsoft.Xna.Framework.TitleContainer.OpenStream(String name)

at at
Microsoft.Xna.Framework.Content.ContentManager.OpenStream(String
assetName)

— End of inner exception stack trace —

at at
Microsoft.Xna.Framework.Content.ContentManager.OpenStream(String
assetName)

at at
Microsoft.Xna.Framework.Content.ContentManager.ReadAsset[T](String
assetName, Action`1 recordDisposableObject)

— End of inner exception stack trace —

at at
Microsoft.Xna.Framework.Content.ContentManager.ReadAsset[T](String
assetName, Action`1 recordDisposableObject)

at at Microsoft.Xna.Framework.Content.ContentManager.Load[T](String
assetName)

at TestGame.Game1.LoadContent() in
c:UsersFlameDocumentsProjectsTestGameTestGameGame1.cs:0

at at Microsoft.Xna.Framework.Game.Initialize()

at TestGame.Game1.Initialize() in
c:UsersFlameDocumentsProjectsTestGameTestGameGame1.cs:0

at at Microsoft.Xna.Framework.Game.DoInitialize()

at at Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior)

at at Microsoft.Xna.Framework.Game.Run()

at TestGame.Program.Main() in
c:UsersFlameDocumentsProjectsTestGameTestGameProgram.cs:0

So what am I doing wrong?

Содержание

  1. PC XNA Frameworks error
  2. Momohime
  3. Marcus101RR
  4. Momohime
  5. Momohime
  6. Momohime
  7. Marcus101RR
  8. Momohime
  9. Marcus101RR
  10. Terraria ошибка microsoft xna framework
  11. 1- Очистите мусорные файлы, чтобы исправить microsoft.xna.framework.dll, которое перестало работать из-за ошибки.
  12. 2- Очистите реестр, чтобы исправить microsoft.xna.framework.dll, которое перестало работать из-за ошибки.
  13. 3- Настройка Windows для исправления критических ошибок microsoft.xna.framework.dll:
  14. Как вы поступите с файлом microsoft.xna.framework.dll?
  15. Некоторые сообщения об ошибках, которые вы можете получить в связи с microsoft.xna.framework.dll файлом
  16. MICROSOFT.XNA.FRAMEWORK.DLL
  17. процессов:

PC XNA Frameworks error

Momohime

Terrarian

So I started to get this error from like 3-4 months ago and I did some searching on the Internets and didn’t find out whats happening. What I did so far is: re-installing Terraria, checking for local file content, Run repair XNA frameworks.

Here is a picture of what the error looks like: http://imgur.com/iljMlus

Thanks for the help.

Marcus101RR

Master of Ravens

Momohime

Terrarian

Witch

Momohime

Terrarian

Momohime

Terrarian

Marcus101RR

Master of Ravens

Momohime

Terrarian

Marcus101RR

Master of Ravens

Welcome to PC Support Section.

In order to further assist you, please verify the following information below before proceeding. Please, we remind you that Terraria has certain requirements in order to function properly on your system. If you fail to check these requirements you may encounter errors or issues.

To avoid errors or mistakes, please consider posting your System Specifications. You can obtain this information by Right-Clicking My Computer on your system. You will get basic information about your Processor and RAM. If you wish to get a full detailed list, you can use third party software to determine your specifications or salvage the information from the Device Manager (Advanced Users). You may also use the available and recommended Third Party Software to gain your full system specifications for our technicians.

How to improve your support thread

    Post screenshots of errors

      You can use the

    key on your keyboard to paste your current monitor to the clipboard.

    • Click the window that you want to copy.
    • Press ALT+PRINT SCREEN. Important The text you see on your keyboard might be PrtSc, PrtScn, or PrntScrn. The other text on the Print Screen key is usually SysRq.
    • Paste (CTRL+V) the image into a Microsoft Office program or other application.
  • Provide your system specifications
  • Provide your current mandatory dependencies versions (XNA & .NET)
  • Be reminded this post is intended to simplify your next reply and ease our troubleshooting. If you fail to provide detailed information, it becomes a tedious task to determine what caused your problem. Please be kind enough to follow these simple steps and helpful tips!

    NOTE: If you are using an illegal copy of the game, you will receive no support, this process determines if you are using a legal copy.

    Before you ask, check in these threads to solve your issues:

    Obtaining Logs via Terraria (New)
    There is now a new way to obtain logs of Terraria and try to identify the issue at hand. This little method requires a bit more work, however, we provide you with some instructions on step by step on how to get this working. Please make sure that you check which version of Terraria you have before doing this. Note that the Steam version is slightly easier than the other one.
    Log Location: C:Users DocumentsMy GamesTerrariaLogs

    Steam Version
    There is no special requirement with steam as it is one simple platform.

    1. Open Steam Library .
    2. Right-Click Terraria on the Library and select Properties .
    3. Select General Tab , if not already selected.
    4. Click Set Launch Options .
    5. In the text box insert -logerrors -logfile

    GOG Version
    There are different procedures for the operating system you are using, we will try to get them for all.

    1. Create a shortcut of Terraria Executable .
    2. Right-Click the Shortcut and select Properties .
    3. In Target Box, add at the end the parameters -logerrors -logfile

    Troubleshooting Your Problem with TerrariaServer.exe
    In order to figure out what your problem is with the game, we require that you run the Terraria Server Client (TerrariaServer.exe). This will display any errors or successes on launch. Should there be any errors from the program itself, use the command prompt and copy the error to display it here.

    1. Right click within the Command Prompt.
    2. In the drop-down menu, select Mark.
    3. Once you made a selection, Right Click or Press Enter to copy.
    4. Paste your results in your thread.

    If you have trouble with the above instructions, your system might be showing «Not Responding» or your System may need to be rebooted to start clean.

    Deleting the JSON files to clear Terraria Settings
    Before proceeding any further, please delete the config.json file located in your Terraria Folder under My Documents/My Games. Then start Terraria again, this may fix some unexplained issues, but we wish to make sure you are running a nice and clean installation:

    1. Locate My Documents Folder.
    2. Open My Games Folder.
    3. Open Terraria Folder.
    4. Delete Config.json file from this location.
      • You can also delete the Favorites/Profile files as well, just in case.

    Frequently Asked Questions

    Q: My world has corrupted somehow and will not load properly, what can I do?
    A: You may have corrupted the world by using modded clients, computer shutdown before the world could complete the save, or system failure within Terraria that caused the problem. You can try attempting to load your world using TEdit (Download).

    Q: My game is not launching, or I get errors regarding XNA/.NET Framework!
    A: You can attempt to make sure you have all Game Dependencies first, then try attempting this solution:

    If you don’t feel like sifting through all that, it’s basically to do with the framework permissions.

    This is how you change the right to use Framework/XNA:

    1. Right-Click the specific directory (Listed Below).
    2. Select Properties.
    3. Select the Security Tab
    4. Click on Advanced Option
    5. Select the Owner Tab
    6. Click on the bottom button to Edit.
    7. On this window select the Administrator in the row and make sure to select the Checkboxes below.
    8. Hit Apply and close all the windows.
    9. Try running the game again.

    Do the above for all of the following FOLDERS:

    C:WindowsMicrosoft.NETassemblyGAC_32:
    Microsoft.Xna.Frameworkv4.0_4.0.0.0__842cf8be1de50553
    Microsoft.Xna.Framework.Gamev4.0_4.0.0.0__842cf8be1de50553
    Microsoft.Xna.Framework.Graphicsv4.0_4.0.0.0__842cf8be1de50553
    Microsoft.Xna.Framework.Xactv4.0_4.0.0.0__842cf8be1de50553

    C:WindowsMicrosoft.NETassemblyGAC_MSIL:
    Microsoft.Xna.Framework.Avatarv4.0_4.0.0.0__842cf8be1de50553
    Microsoft.Xna.Framework.GamerServicesv4.0_4.0.0.0__842cf8be1de50553
    Microsoft.Xna.Framework.Input.Touchv4.0_4.0.0.0__842cf8be1de50553
    Microsoft.Xna.Framework.Netv4.0_4.0.0.0__842cf8be1de50553
    Microsoft.Xna.Framework.Storagev4.0_4.0.0.0__842cf8be1de50553
    Microsoft.Xna.Framework.Videov4.0_4.0.0.0__842cf8be1de50553

    Q: Steam has reported that one (1) file has failed verification and was downloaded?
    A: This file is known as the serverconfig.txt file. Originally this file shouldn’t be packed with the game as Terraria should create this file automatically on launch if it is missing or out of date. Due to it being changed and updated by server owners, the file will constantly fail the verification process. This has no effect on playing the game, and can be ignored.

    Q: I am experiencing low frame rate for Terraria, but the machine passes as recommended?
    A: If you are using nVidia Control Panel, you can select Terraria.exe process and change the specifications on how your graphic card handles the game. Follow these instructions:

    1. Open nVidia Control Panel.
    2. Select Manage 3D Settings.
    3. Choose Program Settings Tab.
    4. Select Terraria as current program.
    5. Turn Triple buffering and Vertical sync to On .
    6. Run Terraria and turn Frame Skip to Off .
    7. The application should be running better than your current setup.

    Alternate Solution (The Aero Mode Bug)

    1. Goto your Desktop.
    2. Right Click and Select Personalize.
    3. Enable Aero Mode by selecting an Aero Background Option.
    4. You can also go Fullscreen Mode while Disabled Aero Mode .

    Q: Experiencing an XAudio Driver Issue?
    A: Check this out about the error: http://forums.terraria.org/index.ph. out-due-to-xaudio2_6-dll-on-windows-10.32894/

    Q: Missing XInput Driver for the game?
    A: You can download Microsoft DirectX Web Installer and fix this issue properly. We do not recommend searching for the driver (DLL) manually. Download it here.

    Q: Where can I find my world and player files?
    A: You can find your world and character files based on your system here:

    • Windows: DocumentsMy GamesTerrariaPlayers
    • Mac:

    /Library/Application Support/Terraria/Players
    Linux:

    /.local/share/Terraria/Players

    However, if you’re using Steam Cloud Sync, the files will be in a different location.

    • /userdata/ /105600/remote/players

    Q: Users with Windows 10 and Terraria Crashing (The Encryption Fix)
    A: Apparently Terraria uses a specific encryption method, some OS types do not allow this like Windows 10. This can be fixed!

    Terraria uses the RijndaelManaged class for player encryption, which isn’t FIPS (Federal Information Processing Standard) compliant. There’s a flag in the registry that tells Windows whether it should allow non-compliant encryption methods to be used. The registry key is:

    If the value fipsalgorithmpolicy is present and set to 1, non-compliant algorithms will be blocked and will throw exceptions if you try to use them (like you got). Setting it to 0 should fix the error.

    You might also want to check: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlLsaFipsAlgorithmPolicy

    In case you don’t understand the above text, I’ll explain it by step:

    • Press the Windows Key (Button) and search for REGEDIT .
    • Browse to the location: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlLsa
    • Locate the fipsalgorithmpolicy key and edit it by set its value to 0, or find the map with that name and disable it.

    If done, I think the error wouldn’t appear anymore.

    Q: Framerate dips down to 20 FPS or lower, and then comes back?
    A: This sounds like an issue with the CPU Affinity, you can set your affinity and see if the issue resolves.

    Источник

    Terraria ошибка microsoft xna framework

    что за ошибка я установил TerrariaEdit и такая ошибка

    —————————
    Terraria: Error
    —————————
    Microsoft.Xna.Framework.Content.ContentLoadException: Error loading «ImagesGhost». File not found. —> System.IO.FileNotFoundException: Error loading «ContentImagesGhost.xnb». File not found.

    в Microsoft.Xna.Framework.TitleContainer.OpenStream(String name)

    в Microsoft.Xna.Framework.Content.ContentManager.OpenStream(String assetName)

    —Конец трассировки внутреннего стека исключений —

    By Изя Лайф
    Post date

    Application: Terraria.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: Microsoft.Xna.Framework.Content.ContentLoadExcepti on
    Stack:
    at Microsoft.Xna.Framework.Content.ContentReader.Prep areStream(System.IO.Stream, System.String, Int32 ByRef)
    at Microsoft.Xna.Framework.Content.ContentReader.Crea te(Microsoft.Xna.Framework.Content.ContentManager, System.IO.Stream, System.String, System.Action`1 )
    at Microsoft.Xna.Framework.Content.ContentManager.Rea dAsset[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.String, System.Action`1 )
    at Microsoft.Xna.Framework.Content.ContentManager.Loa d[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.String)
    at Terraria.Main.LoadContent()
    at Microsoft.Xna.Framework.Game.Initialize()
    at Terraria.Main.Initialize()
    at Microsoft.Xna.Framework.Game.RunGame(Boolean)
    at Terraria.Program.Main(System.String[])

    Ну сама Terraria поставляется с Microsoft XNA 4.0, поэтому можно просто попробовать скачать этот пакет с сайта Microsoft и переустановить, после чего перезагрузить компьютер. Если не помогает, можно попробовать удалить XNA 4.0 через удаление программ Windows и вместо него скачать XNA 3.1, установить, перезагрузить и попробовать. Если игра по-прежнему не работает, то это может быть из-за звуковой карты. Скажем если есть звуковуха Creative X-Fi, то нужно ее отключить в диспетчере устройств или устройствах воспроизведения, и попробовать поиграть на встроенной звуковухе. Если игра все еще не запускается, то там же в стиме проверяем ее кеш. Ну и если ничего не помогает, то как обычно переустанавливаем Windows.

    Файл microsoft.xna.framework.dll из Microsoft Corporation является частью Microsoft XNA Game Studio 4 0. microsoft.xna.framework.dll, расположенный в e:WINDOWSMicrosoft.NETassemblyGAC_32Microsoft.Xna.Frameworkv4.0_4.0.0.0__842cf8be1de50553 с размером файла 679424.00 байт, версия файла 4.0.30901.0, подпись 79B5641E2F83838EB35C66379B02DFAD.

    В вашей системе запущено много процессов, которые потребляют ресурсы процессора и памяти. Некоторые из этих процессов, кажется, являются вредоносными файлами, атакующими ваш компьютер.
    Чтобы исправить критические ошибки microsoft.xna.framework.dll,скачайте программу Asmwsoft PC Optimizer и установите ее на своем компьютере

    1- Очистите мусорные файлы, чтобы исправить microsoft.xna.framework.dll, которое перестало работать из-за ошибки.

    1. Запустите приложение Asmwsoft Pc Optimizer.
    2. Потом из главного окна выберите пункт «Clean Junk Files».
    3. Когда появится новое окно, нажмите на кнопку «start» и дождитесь окончания поиска.
    4. потом нажмите на кнопку «Select All».
    5. нажмите на кнопку «start cleaning».

    2- Очистите реестр, чтобы исправить microsoft.xna.framework.dll, которое перестало работать из-за ошибки.

    3- Настройка Windows для исправления критических ошибок microsoft.xna.framework.dll:

    1. Нажмите правой кнопкой мыши на «Мой компьютер» на рабочем столе и выберите пункт «Свойства».
    2. В меню слева выберите » Advanced system settings».
    3. В разделе «Быстродействие» нажмите на кнопку «Параметры».
    4. Нажмите на вкладку «data Execution prevention».
    5. Выберите опцию » Turn on DEP for all programs and services . » .
    6. Нажмите на кнопку «add» и выберите файл microsoft.xna.framework.dll, а затем нажмите на кнопку «open».
    7. Нажмите на кнопку «ok» и перезагрузите свой компьютер.

    Всего голосов ( 20 ), 5 говорят, что не будут удалять, а 15 говорят, что удалят его с компьютера.

    Как вы поступите с файлом microsoft.xna.framework.dll?

    Некоторые сообщения об ошибках, которые вы можете получить в связи с microsoft.xna.framework.dll файлом

    (microsoft.xna.framework.dll) столкнулся с проблемой и должен быть закрыт. Просим прощения за неудобство.

    (microsoft.xna.framework.dll) перестал работать.

    microsoft.xna.framework.dll. Эта программа не отвечает.

    (microsoft.xna.framework.dll) — Ошибка приложения: the instruction at 0xXXXXXX referenced memory error, the memory could not be read. Нажмитие OK, чтобы завершить программу.

    (microsoft.xna.framework.dll) не является ошибкой действительного windows-приложения.

    (microsoft.xna.framework.dll) отсутствует или не обнаружен.

    MICROSOFT.XNA.FRAMEWORK.DLL

    Проверьте процессы, запущенные на вашем ПК, используя базу данных онлайн-безопасности. Можно использовать любой тип сканирования для проверки вашего ПК на вирусы, трояны, шпионские и другие вредоносные программы.

    процессов:

    Cookies help us deliver our services. By using our services, you agree to our use of cookies.

    Источник

    • Remove From My Forums
    • Question

    • This error keeps on coming up when i try to run my program.

      player.Initialize(Content.Load<

      Texture2D>(«player»),
      playerPosition);

      Error loading »Player».file not found

      What can i do to fix this?

    Answers

    • Sorry, I’ve only messed with XNA a few times a long time ago.

      From what I understand you need to add a graphic file to your project.  Do you have a graphic file called «player».  View your «Solution Explorer» and see if you see a graphic file called «player».  Also, see if you have a folder that
      might have the «player» image graphic file.  Make a note of the name of that folder include that when you do the «Load()» command. 

      If you don’t have a graphic file called player, do you have one somewhere on your computer?  In that case you can add it to your project by right clicking on your project, and doing «Add Existing Item» and browsing to your «player» image file. 
      Then, it will be added to your project.


      Tom Overton

      • Marked as answer by

        Monday, September 26, 2011 6:20 AM

      • Edited by
        Tom_Overton
        Thursday, September 15, 2011 7:52 PM
        added updated link
      • Marked as answer by
        Jackie-SunModerator
        Monday, September 26, 2011 6:20 AM

    Понравилась статья? Поделить с друзьями:
  • Microsoft word произошла ошибка 0xc004c060
  • Microsoft visual c runtime error this application has requested the runtime to terminate
  • Microsoft visual c runtime error atibtmon exe
  • Microsoft word ошибка при попытке открытия файла
  • Microsoft word ошибка при направлении команды приложению