XNA Creators Club Online
Page 1 of 1 (3 items)
Sort Posts: Previous Next

Error during debug/build the project's solution!

Last post 4/4/2009 6:42 AM by eyong. 2 replies.
  • 4/3/2009 8:05 PM

    Error during debug/build the project's solution!

    As title above, when I try to build the solution in this project. It's appear the error below:
    -------------------------------------------------------------------------------------------------------------------------------------------------------
    Error 1 Building content threw NotSupportedException: This importer can only read Ply file in Ascii Format. The file "big_porsche.ply" is in  ascii 1.0 format.
       at PlyImporter.PlyImporter.AnalizeHeader(StreamReader sr, FileInfo info) in C:\Documents and Settings\user\My Documents\Visual Studio 2008\Projects\ContentPipelineShower\PlyImporter\PlyImporter.cs:line 144
       at PlyImporter.PlyImporter.Import(String filename, ContentImporterContext context) in C:\Documents and Settings\user\My Documents\Visual Studio 2008\Projects\ContentPipelineShower\PlyImporter\PlyImporter.cs:line 70
       at Microsoft.Xna.Framework.Content.Pipeline.ContentImporter`1.Microsoft.Xna.Framework.Content.Pipeline.IContentImporter.Import(String filename, ContentImporterContext context)
       at Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.ImportAssetDirectly(BuildItem item, String importerName)
       at Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.ImportAsset(BuildItem item)
       at Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.BuildAssetWorker(BuildItem item)
       at Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.BuildAsset(BuildItem item)
       at Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.BuildAndLoadAsset(BuildItem item, BuildItem requestingItem)
       at Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.ImportAssetViaCache(BuildItem item, String importerName)
       at Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.ImportAsset(BuildItem item)
       at Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.BuildAssetWorker(BuildItem item)
       at Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.BuildAsset(BuildItem item)
       at Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.RunTheBuild()
       at Microsoft.Xna.Framework.Content.Pipeline.Tasks.BuildContent.RemoteProxy.RunTheBuild(BuildCoordinatorSettings settings, TimestampCache timestampCache, ITaskItem[] sourceAssets, String[]& outputContent, String[]& rebuiltContent, String[]& intermediates, Dictionary`2& dependencyTimestamps, KeyValuePair`2[]& warnings) C:\Documents and Settings\user\My Documents\Visual Studio 2008\Projects\ContentPipelineShower\ContentPipelineShower\Content\big_porsche.ply ContentPipelineShower
    -------------------------------------------------------------------------------------------------------------------------------------------------------
    Let me explain what I'm doing. I'm doing the Importer that can read .ply extension file. I want to draw the image from the file and the source of the code is from my friend. But I can't build the solution for that file! What's wrong? I already found many reference from internet but I still do not understand where the problem is. By the way, I try to figure out but seem the only way I can fix this problem is by comment the line where trigger this function. 

    The second question. When I comment out the line I mention just now, I can build the solution but when I try to run it. It stop at the draw() function that I define and pop out a box said "ArgumentoutOfRangeException was unhandled. I also do many effort to fix the solution but still do not have any idea.

    I had attach the whole file. Can anyone help or any suggestion? Thank.

    Below is the link for the archive of the whole file.
  • 4/3/2009 9:21 PM In reply to

    Re: Error during debug/build the project's solution!

    Properties.Resources.Space is defined as empty in the Resource file, that's your issue. It needs to be a single space.

    eyong:
    PlyImporter.PlyImporter.AnalizeHeader


    Surely, you mis-speak :)
  • 4/4/2009 6:42 AM In reply to

    Re: Error during debug/build the project's solution!

    Oh! I do really miss it! Thank dadoo, you really help me lot in this case.
    I have updated the file already so it can run well now and I would like share it. Once again, thank to dadoo help.
Page 1 of 1 (3 items) Previous Next