-------------------------------------------------------------------------------------------------------------------------------------------------------
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.