473,659 Members | 2,685 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Different execution behavior between .Net1.1 and .Net2.0

I have a library that reads PDF file and manipilates its content. And I use
SharpZip library to decompress the streams included in PDF file. All well
and good. I have 3 lines of my test code that takes a PDF file and spits out
the required content from the file. It all works fine in .Net.1.
environment.

Now I wrote the same 3 lines of code in .Net2.0 console test application and
use the assemblies for PDF library and SharpZip compiled with .Net.1.1. The
application will throw exceptions in the deflate algorithm "Index out of
bound". Then I tried to replace the SharpZip decompression code with
DelateStream class in .Net2.0 framework, recompiled pdf library and sharpzip
assemblies with .Net2.0. But still no luck.

Is there something I am missing in this whole equation of using my 1.1
libraries with .Net2.0 application?

Thanks
Mar 21 '06 #1
1 1687
Only one CLR can run at one time for an application. If you run 1.1 code in
the 2.0 envirionment, there are about 400 breaking changes between the two
Frameworks. I'm betting you've run into at least one of the 400.

1.0 --> 1.1 was back-ward compatible.

1.1 --> 2.0 is not.

Good luck!
--
Mike McAllister
"Winista" wrote:
I have a library that reads PDF file and manipilates its content. And I use
SharpZip library to decompress the streams included in PDF file. All well
and good. I have 3 lines of my test code that takes a PDF file and spits out
the required content from the file. It all works fine in .Net.1.
environment.

Now I wrote the same 3 lines of code in .Net2.0 console test application and
use the assemblies for PDF library and SharpZip compiled with .Net.1.1. The
application will throw exceptions in the deflate algorithm "Index out of
bound". Then I tried to replace the SharpZip decompression code with
DelateStream class in .Net2.0 framework, recompiled pdf library and sharpzip
assemblies with .Net2.0. But still no luck.

Is there something I am missing in this whole equation of using my 1.1
libraries with .Net2.0 application?

Thanks

May 12 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
1134
by: David Thielen | last post by:
Hi; The ASP .NET book I have only talks about putting everything in a single aspx and aspx.cs file. However, it seems to me you want to redirect to a different page/class for each logical page. Which brings up 2 questions: 1) When the user presses submit, is best practice to immediately redirect to the new page and have that read the controls from the first page. Or do you read the values from the controls and then redirect with the...
2
1269
by: bb | last post by:
i use the losformatter to serialise a hashtable and the store in the database. (i save some urls so they can be reconstructed) we have moved the project from asp.net1 to asp.net2 now whenever i try and deserialize a token that was saved to the db before the move to asp.net2 it fails with error 'unable to deserialise' i am also noticing that the serialised values look completely different.
17
5066
by: romixnews | last post by:
Hi, I'm facing the problem of analyzing a memory allocation dynamic and object creation dynamics of a very big C++ application with a goal of optimizing its performance and eventually also identifying memory leaks. The application in question is the Mozilla Web Browser. I also have had similar tasks before in the compiler construction area. And it is easy to come up with many more examples, where such kind of statistics can be very...
4
2514
by: hvj | last post by:
I need to run a .NET1.1 program in a .NET2.0 CLR. The .NET1.1 exe starts correctly in .NET2.0. Now I want to debug in Visual Studio 2005. But when I try to open the .NET1.1 project, Visual Studio wants to convert it to .NET2.0 what I don't want. How can I make Visual Studio open a .NET1.1 project for me in order to attach to a .NET2.0 process in which it runs to debug it? Or is there a better way to reach my goal: debugging a .NET1.1...
4
1932
by: dreamamit2001 | last post by:
Hi, I would like to know the ASP.NET2.0's(Controls, Menubar, Validations, Object Data Souce Controls, Treeview Control) compatibility with IE5.0 browser on Mac OS. If I don't use Client side Vbscript and Activex control, will the site developed in Asp.net2.0 work fine on IE5.0 Mac Os? Any body who has viewed the working of ASP.NET2.0 with rich controls
3
1412
by: Marcus | last post by:
Hi, I converted my .Net1.1 application (written in VS2003) to a .Net2.0 application. I let VS2005 do the job as it suggested when trying to load my VS2003 project in VS2005. I then included the output exe from this project into my VS2005 setup project. I used it as a custom action. I then built the whole thing and installed it.
1
1335
by: prathiba.p | last post by:
We are having a ASP.NET2.0 web application which has been migrated from .NET 1.0 . This web application refers .net 1.0 interop dll . Is there any way to debug the .net 1.0 interop dll from the ASP.NET web application. Thanks and Regards,
14
2742
by: Jack | last post by:
Hi, I meet a question with it , I did not get clear the different betteen them, for example: #include <iostream>
2
1544
by: shashidcs2007 | last post by:
Hi, I have two web applicaitons developed in asp.net 1.1 and asp.net2.0, the user will login to the application developed in asp.net 1.1 and will go to application developed in asp.net 2.0 (this is basically a search page) when the user is thorough with his task he will click on the link on this asp.net 2.0 application . this link should open a page back in the asp.net1.1 application and continue with the same session with which the user had...
0
8330
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8523
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8626
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7355
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6178
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4334
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2749
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1975
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.