.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

How to use BigInteger Library in .NET 2.0 Application?

Posted By:      Posted Date: October 14, 2010    Points: 0   Category :.NET Framework

Using - VS 2005, WinForms Application, Visual J# Library - vjslib.dll

I m developing a cryptography project as a winforms app. I m using .net 2.0 and VJ# library vjslib.dll so as to use java.math.Biginteger class.

The Miler-Rabin Algorithm for prime generation takes lot of time in .net(using VJ#) than in pure Java.

I need to generate a 1024 bit prime in around 1-2 minutes.

.NET 4.0 includes a Biginteger class.

Can i use Biginteger from .NET 4.0  in any way (trick or tweak) in my .net 2.0 application.

If yes HOW?

Vibhor Agarwal

View Complete Post

More Related Resource Links

Enterprise Library: Take Exception To Critical Errors With Custom Application Blocks


Enterprise Library is a collection of application functionality blocks that you can re-use in your application for common functionality you'd otherwise have to write again and again. Here Jay Hilyard explains how to use them.

Jay Hilyard

MSDN Magazine September 2006

Data Points: The Enterprise Library Data Access Application Block, Part 3


E nterprise applications can have a wide variety of data update requirements. Sometimes you need to save multiple rows of changes at once within a single transaction. Other times, the user must be allowed to enter multiple rows of data, send them to the database in a batch; and if a row or two fails, only the rows that succeeded should be committed and remain committed.

John Papa

MSDN Magazine October 2005

Data Points: The Enterprise Library Data Access Application Block, Part 2


Last month I explored the foundation of the Enterprise Library Data Access Application Block (DAAB) including how it all fits into an architecture (see Data Points: The Enterprise Library Data Access Application Block, Part 1).

John Papa

MSDN Magazine August 2005

Data Points: The Enterprise Library Data Access Application Block, Part 1


A solid data access later (DAL) can benefit an application by hiding redundant tasks, helping handle exceptions more gracefully, helping clean up resources more efficiently, and providing a layer of abstraction from the database.

John Papa

MSDN Magazine July 2005

Question on Microsoft Enterprise Library 5.0 for a mobile web application



Our company is in the process of building a new website dedicated for mobile devices.

Since we are starting from scratch, I would like to consider implementing the Microsoft Patterns & Practices Enterprise Library 5.0 on the site.

I would like to ask others what they think

1) Is this too much overhead where speed is mission critical?

2) Have you implemented this library for a mobile site? If so, why? Please describe your experience.

3) Given time and resources, would you implement this library?

I appreciate all feedback



hosting a WPF control library in a WF application


When I try to integrate a WPF control library in a WF code activity object I get the exception "The calling thread must be STA, because many UI components require this."  Here is a snippet:


private void OpenGUI()


           //Load GUI

           mainGUI = new WPFControlLibrary.UserControl_GUI();



When the mainGUI = line is executed, I get the error.

Please excuse my ignorance, I am a novice in WF and WPF.


Thanks in advance for any help.

How to move or migrate document library with all data from one web application to another web applic



We have created one document library in a web application and also added some documents in it.

Now we want to copy same document library to another web application with all content.

We have tried list template option but it is not working as document library is exceeding size quota(greater than 50 MB)

Please help.

Thanks in advance.



Windows Application Log Event Errors writing back to SharePoint Library fields


Hi has anyone done anything like this?

My Library workflow is writing to an External List (MS SQL backended).  If an exception is thrown in MSSQL (Stored Procedure, Trigger, etc) I would like to create a mechanism for writing something back to my Library besides the workflow column saying "Error Occured".

I could create a text field to provide some error feedback, anybody ever did something like this?


Microsoft Enterprise Library 5.0 - Logging Application Block Activation Error


Hi folks,

I've been writing a class where I wanted to write the errors off to the OS EventLog. I was pointed towards the Logging Application Block. I used LogWriter successfully in a web page and transfer the code to the class so that I could have the functionality there.

I keep getting an {"Activation error occured while trying to get instance of type LogWriter, key \"\""} Error when I reach this line of code:

private LogWriter writer = EnterpriseLibraryContainer.Current.GetInstance<LogWriter>();

I had something similar with the daab getinstance call but I added the unity assemblies to the code and this resolved this. I thought this was the issue with this problem.

Could anyone tell me what I'm doing wrong?

Thanks in advance folks.

app.config code:


<?xml version="1.0" encoding="utf-8" ?>
        <section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="true" />

Application Blocks & Enterprise Library


Is there a difference between Microsoft's Application Blocks and Microsoft's Enterprise Library?  I am a complete nubie with a little classroom training and some success with writing and launching a website.

My site barely works.  I need to trash my website and start over using some sort of best practices.  Does anyone have suggestions?  Will Application Blocks help?  How about the EntLib?

Linking to Reports in Document Library from .net web application


I have a document library that contains some SQL Reports.  I have crearted a .net web application and I have a page that has links to the reports.  I got the following error message:

Reporting Services does not support anonymous user from a SharePoint site. To view Reporting Services reports, choose a SharePoint site that does not have Anonymous access enabled or sign in on an anonymous site.


So, I turned on Anonymous access for the site, and gave the document library view for anonymous access.  Now I can access the applications without an error message, but others are still getting this error message when they try to access from the link.  Does anyone know why this would happen?  Thanks.

Unable to add reference to Class Library from a Workflow Console Application (VS 10 beta 2)

I got a really strange problem. I am using the beta 2 version of Visual Studio 10.

I have a Class Library, Activity Library and a Workflow Console Application. From the Workflow Console Application I want to make a reference to the Class Library (I've made some BusinessEntities there..), but I get the following error: 'The type or namespace name '<namespace name>' does not exist in the namespace blabla..

I made the reference, added it by typing using etcetera, but still getting error, also get an error where I import the reference (in the using part)

Can anyone help me out with this ? Is this a bug in Visual Studio 10 beta 2, or am I doing something wrong ?

Scale Up Enterprise Library Caching Application Block


CAB from MS is a very famous tool for the developers as it saves a lot of valuable time of the developers. But anyone who has decided to use CAB, should also keep into mind its limitations as well. The cache in EnltLib is stand alone and in-process in nature that’s why it can ends up with some scalability and reliability issues when used in a multi-server environment. But there are some party integrations which can over come this issue. The most popular way to overcome these limitations of CAB is the use of a distributed cache. The article about the drawbacks of CAB and it solutions can be a very helpful read in this regard. 

Microsoft's Collaborative Application Markup Language (CAML) Loop

discovered an interesting error recently while working with Microsoft's Collaborative Application Markup Language (CAML) that, surprisingly, had received no ink. Partly what surprises me about this is that the error may require you to rewrite large sections of your code if you haven't previously considered this SharePoint limitation. I'll start with some context, but first of all the error is:

Integrating a Legacy Web Application in SharePoint

This month we will continue with the theme of deploying Microsoft's SharePoint as a company intranet by describing a method for integrating a legacy Web application inside a SharePoint site.

In many companies the intranet site is not just a home page with announcements. It houses Web applications used by many different departments. In last month's article, I built a page to search the employee table in Northwind (the sample database included in Microsoft's SQL Server). This month, I will move the Web pages used to add/remove records from the table into the SharePoint intranet.

MVC architecture in ASP.Net using C# and Microsoft Data Access Application block

The Model-View-Controller (MVC) pattern separates the modeling of the domain, the presentation, and the actions based on user input into three separate classes [Burbeck92]:

Model. The model manages the behavior and data of the application domain, responds to requests for information about its state (usually from the view), and responds to instructions to change state (usually from the controller).

View. The view manages the display of information.

Controller. The controller interprets the mouse and keyboard inputs from the user, informing the model and/or the view to change as appropriate.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend