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

Top 5 Contributors of the Month
Melody Anderson
Post New Web Links

ConfigurationErrorsException - Migrating from 3.5 to 4.0

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

I have a console application that consumes a dll, this dll needs some configuration data stored in the config file which obviously has to be at in the config file for the exe (console).

The dll is attempting to execute a ConfigurationManager.GetSection(string) command, it seems like the new security model is causing issues to my process. The console executable is been launched from the network which usually required the CAS policies to be adjusted and they are for the 2.0, in 4.0 they have been removed and I should not be having this issue but apparently that is not the case. What I'm doing wrong?

 The inner exception points to a SecurityException reading the config file or something along those lines. Below is the full exception. Same code built in 3.5 does not cause issues.

System.Configuration.ConfigurationErrorsException: An error occurred creating the configu
ration section handler for overrideConfigurations: Request failed. (R:\Development\Junk\n
ewConsole\TestConsoleApp.exe.Config line 5) ---> System.Security.SecurityException: Reque
st failed.
   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boole
an noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecuri
   at System.RuntimeType.CreateInstanceSlo

View Complete Post

More Related Resource Links

SharePoint document migration challenges when migrating files and folders

There are several challenges when migrating documents to Microsoft SharePoint. While these challenges can be overcome, they are a real pain if the migration source, content and file systems are not SharePoint friendly.

PollLockedSessionCallback error after migrating to 2.0


We have an applicaiton that was converted to the new framework using the wizard in Visual Studio 2008.  When we install the applicaiton in production and change the iis settings to use the 2.0 framework we start to see these errors in the event viewer on the web servers.

We are using SQL Server Session State and have 3 web servers in a load balancer.


Object reference not set to an instance of an object.</Message><StackTrace>   at

Not sure what is causing this - anyone have an ideas?

Migrating ASP to ASPX.... where to set 301 redirects


Hello, I'm updating around 15 pages from .asp to .aspx (.net 2.0)

My question is, do I have to put a header redirect 301 (permanent redirect) on each old file, or can I put it in global.asax file with a case checking for any of the 15 files?

I some tries to go to old.asp will it execute global.asax anyway?

What would the best aproach be?



Warning migrating 1.1 to 2.0


Hello Evreyone,

We have web application migrated from Asp.Net 1.1 to 2.0. Everyhting works and runs application fine except following compilation warning. Does anybody know the solution?

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Csc.exe /noconfig /unsafe- /nowarn:1701,1702 /platform:AnyCPU /errorreport:prompt /warn:0 /define:DEBUG;TRACE /reference:"C:\Program Files\ComponentArt\Web.UI 2007.2 for ASP.NET 1.0\live_demos\bin\ComponentArt.Web.UI.dll" /reference:bin\DayPilot.dll /reference:

"C:\Program Files\Developer Express .NET 2005 v6.3\Sources\DevExpress.DLL\DevExpress.Data.v6.3.dll" /reference:"C:\Program Files\Developer Express .NET 2005 v6.3\Sources\DevExpress.DLL\DevExpress.Utils.v6.3.dll" /reference:"C:\Program Files\Developer Express .NET 2005 v6.3\Sources\DevExpress.DLL\DevExpress.XtraEditors.v6.3.dll"
/reference:"C:\Program Files\Developer Express .NET 2005 v6.3\Sources\DevExpress.DLL\DevExpress.XtraPrinting.v6.3.dll"
/reference:"C:\Program Files\Developer Express .NET 2005 v6.3\Sources\DevExpress.DLL\DevExpress.XtraReports.v6.3.dll" /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Configuration.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.DirectoryServices.dll

Windows Azure: Tips for Migrating Your Applications to the Cloud


Windows Azure is already helping many companies move their apps into the cloud. We'll share some of the tips and tricks that we discovered working with customers on real-world migrations.

George Huey, Wade Wegner

MSDN Magazine August 2010

CLR Inside Out: Migrating an APTCA Assembly to the .NET Framework 4


The CLR security model in the Microsoft .NET Framework 4 has undergone some substantial changes, including the adoption of "Level2" transparency, similar to the Silverlight security model. Mike Rousos provides an in-depth explanation of how that will likely impact authors of AllowPartiallyTrustedCallers (APTCA) libraries.

Mike Rousos

MSDN Magazine March 2010

Service Station: Migrating to WSE 3.0


You've probably heard that the new version of Web Services Enhancements (WSE) for the Microsoft® . NET Framework simplifies the process of building secure Web services. What you may not know is that most of these improvements derive from some core architectural changes made in WSE 3.

Aaron Skonnard

MSDN Magazine April 2006

Data Points: Migrating from ADO to ADO.NET, Part 2


As you move forward with your use of ADO. NET, you'll need to know how to approach situations that you previously learned to handle in ADO and now have to tackle with ADO. NET. Just as n-tiered solutions developed using Visual Basic®, C++, and ASP often rely on ADO for their data access needs, Windows® Forms, Web Forms, and Web services rely on ADO.

John Papa

MSDN Magazine August 2004

Data Points: Migrating from ADO to ADO.NET


In recent years ADO has taken the lead as the preferred method for implementing data access in Windows®-based applications. Huge numbers of ADO applications are in use today and many developers are well versed in ADO development.

John Papa

MSDN Magazine July 2004

Pocket PC: Migrating a GPS App from the Desktop to eMbedded Visual Basic 3.0


A Global Positioning System (GPS) device captures lots of interesting information that can be used in many ways. This article presents a custom application built with Visual Basic that collects data from a GPS satellite and charts the course of a user relative to the satellite. Such an application is obviously well suited for use on a handheld PC and porting the original application to eMbedded Visual Basic for Windows CE is described. The differences between Visual Basic and eMbedded Visual Basic, such as support for specific control and data types, are explained. Tips for dealing with reduced screen real estate on a handheld PC, debugging, and running in an emulator are also discussed.

Joshua Trupin

MSDN Magazine January 2001

Shelley Powers: Migrating Your ASP Apps from Windows NT 4.0 to Windows 2000


In order to take advantage of new features in Windows 2000 and IIS 5.0, you must first migrate your Windows NT 4.0-based ASP applications to Windows 2000. This article provides a multi-step migration plan. It discusses how to install and configure IIS 5.0, set up security, migrate MTS packages to COM+ applications, and handle differences in the ASP object models. Also included are guidelines for setting up Visual Basic and Visual C++ for development in Windows 2000 and information on what to expect when moving ASP components to the new OS.

Shelley Powers

MSDN Magazine August 2000

Migrating aspnet tables to dev server - having issues



We're trying to migrate a one of our apps to our dev server for testing and development, but we're having problems with the membership functionality. We can add users, but there seems to be a disconnect with roles. We can query the aspnet_users table and find the new user in there, but when we query the aspnet_usersinroles table, that user id is not present.

We're also unable to run the Roles.GetUsersInRole("somerole") method. It returns 0 records. When I run Roles.ApplicationName, it returns the correct name, so .NET should be passing the correct app name.

We're just a little baffled. If anyone could shed some light on what could be the issue, we would appreciate it.

Thanks! :)

Best Practice on Migrating SP Solutions?


I am trying to migrate from my moss 2007 installation from server 2003 r2 servers to server 2008 r2 servers, in order to get ready for the migration to sharepoint. I have everything installed and have restored backups of my content databases to the new servers as well as brought over the 12 hive.

When I go to install a solution, it tells me the feature as already been installed (Im guessing because it sees its folder in the 12 hive that I brought over), but when I try to use the feature it bombs out, because I believe its not really installed.

Whats the best way to go about this? I have tons of pages, images, resource files in my 12 hive, and believe the only realistic way to get all that stuff over to the new farm is to copy over the whole 12 hive.

Any ideas?


Migrating from PHP mail to ASP.net mail



In the past when I want to make a Contact page I made a normal form with Text fields and validation controls using Dreamweaver and Spry and for the form action control I set it the action to post to mail.php which looked something like this:

<title>Sending Email...</title><?php
echo "<HTML>Please wait while loading...
      $to = example@example.com';

if ($_SERVER['REQUEST_METHOD'] != "POST"){exit;}
while(list($key,$value) = each($_POST)){if(!(empty($value))){$set=1;}$message = $message . "$key: $value\n\n";} if($set!==1){header("location: $_SERVER[HTTP_REFERER]");exit;}
$SpamErrorMessage ="No Websites URLs permitted";
if (preg_match("/http/i","$YourName")) {echo "$SpamErrorMessage"; exit ();}
if (preg_match("/http/i","$YourEmail")) {echo "$SpamErrorMessage"; exit ();}
if (preg_match("/http/i","$YourMessage")) {echo "$SpamErrorMessage"; exit ();}
$message = stripslashes($message);
$subject = "Subject of Message";
$headers = "From: You". $_POST['email'] . "\n";
$success = mail($to,$subject,$message,$headers);
            if ($success){echo '<meta http-equiv="refr

Migrating from CF 5 to ASP.net


Hey everyone,

The company I work for has been using CF for some internal Web-Apps (about 20 in total) and I've been tasked with researching the possibility to upgrade/change/etc. The rest of the company primarily uses ASP.net so this is why I am targetting it first.

Anyways, I was just wondering, from people who are knowledgeable, how difficult is it to migrate from CF 5? Would it be easier to upgrade first to CF MX and then change? Or does it make much of a difference? Most of the information I come across is for ColdFusion MX -> ASP Net, so sorry if this has been repeated!

The company is pretty large (50k+ employees), and we're looking to extend our services which are primarily used in the UK to being used globally. (we're looking at going from about 300 users to about 5000 users over the next year). If you need any more information please let me know. :)


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