Free Support Forum - aspose.com

Support for C# 2.0?

We are interested in buying Aspose.pdf, Aspose.pdf.kit and Aspose.pdf.form, in order to use them in a project we are developing.
The only issue we have now is the fact that the project is being developed in c# 2.0, and it seems that even the setup for these components will not run unless you have the .net framework 1.1.
My question is: is the framework 2.0 supported? If not, are there plans to be?

Thanks in advance!

Dear sebastiaop,

Thank you for considering Aspose.

I have tested Aspose.Pdf in .NET 2.0 and have not found any error. Some of our customers are now using Aspose.Pdf in .Net 2.0. We will soon test other product in .Net 2.0.

The current product can’t be installed in .Net 2.0. You can download the hotfix and use it directly. I will provide a installer for .Net 2.0 later.

Thank you very much for the quick answer.
I’m glad to know that there are no problems using your components in .net 2.0. This is, for sure, a decisive point in our buying decision.
I will download the hotfix for the components I need, and test them in our .net 2.0 environmnet.
Again, thank you very much!

hi, i downloaded and tried out your hotfix and i get a strange error message! im using .net 2.0 beta 1 and this is the code and exception details, if you know how to fix it that would be great. we are currently evaluating whether to use your component, or the component available from cete.

cheers

gareth jones

code:



using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using NUnit.Framework;
using Aspose.Pdf;

namespace PdfTest {

[TestFixture]
public class PdfGeneratorFixture {

[Test]
public void TestGenerate() {
Pdf doc = new Pdf();
Paragraph p = new Text(“This is a paragraph”);
Section s1 = doc.Sections.Add();
s1.Paragraphs.Add§;
doc.Save(“c:\test1.pdf”);
}

}
}



exception:

TestCase ‘PdfTest.PdfGeneratorFixture.TestGenerate’ failed: System.TypeInitializationException : The type initializer for ‘x0b7ad6e52a73357d.x9ee491ab5579b9fc’ threw an exception.
----> System.OutOfMemoryException : Exception of type ‘System.OutOfMemoryException’ was thrown.
at x0b7ad6e52a73357d.x9ee491ab5579b9fc.x663613753919b50a(Int32 xc0c4c459c6ccbd00)
at xc702d65bb6160b84.x53db190913fbf159.x2e0db4f9f181a13e(x5a81fde529e1115c x6db9c3d7ab3266a4)
at xc702d65bb6160b84.x53db190913fbf159.x43d795979f8fdcc3(x5a81fde529e1115c x6db9c3d7ab3266a4)
at xc702d65bb6160b84.x5a81fde529e1115c.xe410125f7519de90(String xafe2f3653ee64ebc)
at x3f91538e8c0de749.xaa36f84dba9d652f.x5ec1518f85fc1bbf(xb912e9429339cb81 x80010f902a1f736e, Pdf x6beba47238e0ade6)
at Aspose.Pdf.Pdf.Save(String pdfFile)
c:\dev\pdftest\pdfgeneratorfixture.cs(19,0): at PdfTest.PdfGeneratorFixture.TestGenerate()
--TypeInitializationException

Dear Gareth,

Thank you for considering Aspose.

It seems this error is caused by obfuscator. I will check this problem and reply to you soon.