Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Re: Invalid File Format. V16 Full/registered
Started by pocketzz at 11-14-2008 12:05. Topic has 4 replies.

Print Search « Previous Thread Next Thread »
  11-14-2008, 12:05
pocketzz is not online. Last active: 10/27/2008 3:48:44 PM pocketzz

Top 150 Posts
Joined on 10-27-2008
Posts 17
Invalid File Format. V16 Full/registered
Reply Quote
This is driving me nuts...

I have a test app, and my "real" app. The test app works fine, but when I run it in the real app, I get and "Invalid File Format" exception.

//begin
Leadtools.Codecs.RasterCodecs.Startup();
Leadtools.Codecs.RasterCodecs codecs = new Leadtools.Codecs.RasterCodecs();
RasterImage image = codecs.Load(inPath);
//end
the code is identical as well as the file.
I have gone line by line in both references.. and the /bin/debug folders to make sure that they match. They do.

The only think I can think of is that I did not add all the references at once in the "real" app. To try to correct this, I removed all the references and re-added them.

Right now I am useing every leadtools assembly in the list. Still bombing. Any ideas?

Thanks, Dan


   Report 
  11-14-2008, 12:38
pocketzz is not online. Last active: 10/27/2008 3:48:44 PM pocketzz

Top 150 Posts
Joined on 10-27-2008
Posts 17
Re: Invalid File Format. V16 Full/registered
Reply Quote
While doing more research, I was trying to look at the "RasterCodecs.CodecsPath" that I saw mentioned. But I cannot find it. Is that implemented in v16?
   Report 
  11-14-2008, 15:01
pocketzz is not online. Last active: 10/27/2008 3:48:44 PM pocketzz

Top 150 Posts
Joined on 10-27-2008
Posts 17
Re: Invalid File Format. V16 Full/registered
Reply Quote
I realized that the codecspath issue does not affect me.. so I don't need an answer to that part.

I have also tried opening and saving the file as various other file types with the gdi+ object with no luck on the rasterimage.load method. this is starting to get frustrating.
   Report 
  11-15-2008, 18:00
pocketzz is not online. Last active: 10/27/2008 3:48:44 PM pocketzz

Top 150 Posts
Joined on 10-27-2008
Posts 17
Re: Invalid File Format. V16 Full/registered
Reply Quote
I have not reinstalled the library, removed the references from the application, cleaned the build, and then re-added the references.. all of them.

Still having trouble, does anyone have any suggestions?
   Report 
  11-15-2008, 20:04
pocketzz is not online. Last active: 10/27/2008 3:48:44 PM pocketzz

Top 150 Posts
Joined on 10-27-2008
Posts 17
Re: Invalid File Format. V16 Full/registered
Reply Quote
Out of frustration, I completely rebuilt my solution and readded all of the projects and classes back in one at a time.

It all works now. I can only think that I ran across something weird with studio 2008 that got confused about references.


   Report 
Post
LEAD Support Fo... » Developer » DotNet » Re: Invalid File Format. V16 Full/registered

Powered by Community Server, by Telligent Systems