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

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

Do You Trust It?: Discover Techniques for Safely Hosting Untrusted Add-Ins with the .NET Framework 2

Posted By:      Posted Date: August 21, 2010    Points: 0   Category :ASP.Net

When you allow your application to run arbitrary code through an add-in, you may expose users to unknown code, running the risk that malicious code will use your application as an entry point into the user's data. There are several techniques you can use to reduce the attack surface of your application, which Shawn Farkas discusses here.

Shawn Farkas

MSDN Magazine November 2005

View Complete Post

More Related Resource Links

F# Primer: Use Functional Programming Techniques in the .NET Framework


Here we introduce you to some of the concepts behind the new F# language, which combines elements of functional and object-oriented .NET languages. We then help you get started writing some simple programs.

Ted Neward

MSDN Magazine Launch 2008

WCF Essentials: Discover Mighty Instance Management Techniques For Developing WCF Apps


Instance management refers to a set of techniques used by Windows Communication Foundation to bind a set of messages to a service instance. This article introduces the concept and shows you why you need instance management.

Juval Lowy

MSDN Magazine June 2006

Behind the Scenes: Discover the Design Patterns You're Already Using in the .NET Framework


In this article, the author presents a basic overview of several common design patterns and how they are used in the .NET Base Class Library and other areas of the .NET Framework. You'll discover some of the motivation for why the Framework is designed the way it is, and come away with a better understanding of the abstract concepts of the patterns themselves.

Rob Pierry

MSDN Magazine July 2005

CLR Types: Use Reflection to Discover and Assess the Most Common Types in the .NET Framework


The .NET Framework Class Library and the common language runtime (CLR) serve as the foundation for all .NET-based applications. But how much do you know about any of the thousands of CLR classes in the library and where do you begin to learn about them?In this article, the author uses the number of relationships with other types to determine which types are going to affect your programming most frequently and how often you'll encounter them. He programmatically surveys the CLR library using reflection to make that determination. Following that, an in-depth examination of the nine most important CLR types is provided.

Panos Kougiouris

MSDN Magazine October 2002

Mysql connector and medium trust shared hosting

Hi at all. I've a big problem with GoDaddy Shared Hosting. I've written an ASP.NET application with MySql Database, but my application can't run, with the "Security Exception" error. The problem is that mysql connector must be recompiled with some .... different option. But i can't recompile.. i got always error. So i'm asking you if someone have a link for a mysql connector version able to run in medium trust environment.Very Thanks in advance.Bye

.NET Framework 4 Installation error - Generic Trust Failure

I tried to install .NET Framework 4 on Windows Server 2003, but got this error message "Generic trust failure".Part of the log:Action: Downloading and/or Verifying ItemsC:\e005b9f00558a52d0c\Windows6.0-KB956250-v6001-x86.msu: Verifying signature for Windows6.0-KB956250-v6001-x86.msuC:\e005b9f00558a52d0c\Windows6.0-KB956250-v6001-x86.msu Signature verified successfully for Windows6.0-KB956250-v6001-x86.msuC:\e005b9f00558a52d0c\Windows6.1-KB958488-v6001-x86.msu: Verifying signature for Windows6.1-KB958488-v6001-x86.msuC:\e005b9f00558a52d0c\Windows6.1-KB958488-v6001-x86.msu Signature verified successfully for Windows6.1-KB958488-v6001-x86.msuC:\e005b9f00558a52d0c\netfx_Core.mzz: Verifying signature for netfx_Core.mzzC:\e005b9f00558a52d0c\netfx_Core.mzz Signature verified successfully for netfx_Core.mzzC:\e005b9f00558a52d0c\netfx_Core_x86.msi: Verifying signature for netfx_Core_x86.msiPossible transient lock. WinVerifyTrust failed with error: 2148204800Possible transient lock. WinVerifyTrust failed with error: 2148204800C:\e005b9f00558a52d0c\netfx_Core_x86.msi - Signature verification for file netfx_Core_x86.msi (C:\e005b9f00558a52d0c\netfx_Core_x86.msi) failed with error 0x800b0100 (No signature was present in the subject.)C:\e005b9f00558a52d0c\netfx_Core_x86.msi Signature could not be verified for netfx_Core_x86.msiNo FileHash provided. Cannot perform FileHash veri

.Net Framework 4 error: Generic trust failure


I'm having the same issue as a lot of other people.  I've downloaded the standalone installed for the .Net Framework 4 (dotNetFx40_Full_x86_x64.exe) and tried installing it both by simply double-clicking the executable and right clicking > Run as Administrator.  Neither are working, they both give the same error, "Generic trust failure."  I've gathered my logs and uploaded them to my personal site, they are located here:


I guess the installer chose my H: drive as the file xtraction drive, since it's the largest fixed drive (well, the most free space.)  Here are a few lines from dd_dotNetFx40_Full_x86_x64_decompression_log.txt:

[6/25/2010, 10:24:15] Drive 'H:\' has been selected as the largest fixed drive
[6/25/2010, 10:24:15] Directory 'H:\d1f8e660ffe46cc42cb6\' has been selected for file extraction
[6/25/2010, 10:24:15] Extracting files to: H:\d1f8e660ffe46cc42cb6\
[6/25/2010, 10:24:23] Extraction took 8.440 seconds
[6/25/2010, 10:24:23] Executing command line: 'H:\d1f8e660ffe46cc42cb6\\Setup.exe  /x86 /x64'

Then I took a look in the .net installer-generated HTML log file, and the lines of interest are at the very bottom:

[6/25/2010, 10:21:48]Verifying Digital Signatures: H:\844a21f445080c9a4dc3323

Installation Error of Microsoft .NET Framework 4.0 Error code: (0x800B010B), "Generic trust failure.



I having problems installing Microsoft .NET Framework 4.0. Here is my log file:

OS Version = 6.1.7600, Platform 2
OS Description = Windows 7 - x64 Ultimate Edition 
CommandLine = "C:\Program Files (x86)\MicrosoftNET\Setup.exe" /x86 /x64
TimeZone = W. Europe Daylight Time
Initial LCID = 1053
Using Simultaneous Download and Install mechanism

Get "Untrusted signature - the trust chain cannot be verified" while verifying digitally signed Info



Hi all,


I have browser-enabled InfoPath form that contains digital signature.

User can open this form in his browser, to fill it out and to sign it with his own key/certificate.

The signing process completes successfully,

but when this form is opened for verification, SP displays following message:


Untrusted signature - the trust chain cannot be verified.


The Root certificate of CA that issued user's certificate presents in Trusted Root Certification Authorities store on the SharePoint Server. When the same filled signed form is downloaded to the local file (on SharePoint server PC) and verified with InfoPath application, the signature is valid and verified successfully.


What am I missing and how SP-server verifies certifcation chain?


Thanks in advance,






Microsoft .Net Framework 4 Client Profile installation error: (0x800B010B), "Generic trust failure "


I'm currently using a window 7 64 bit operating system fujitsu laptop and I've been trying to install a update: 'Security Update for Microsoft .NET Framework 4 on Windows XP, Windows Server 2003, Windows Vista, Windows 7, Windows Server 2008, Windows Server 2008 R2 for x64-based Systems (KB2160841)'. However, upon many tries of installing the update, i still couldn't get it install. The error details for the update is Code 66A.

Therefore, after searching on Windows forum for solution for that error, i've tried to repair the Microsoft .Net Framework 4 Client Profile by following these steps:

A. Click on Start and click on Control panel.

B. Go to Program and Features.

C. Scroll down to Microsoft.Net Framework 4 Client Profile, right click it.

D. It will give you a choice of Uninstall/Change, click it.

E. Then, it will give a choice to repair.

After following the above steps, the repair did not succeed because: Generic trust failure.

Part of the log:

Action: Downloading and/or Verifying Items...

Multiple database support with Entity Framework

One of the features introduced in Entity Framework is being database independent. Which mean each database provider can support Entity Framework by implementing its provider.

This feature allows you build applications independent from the underplaying database provider. In this post I'm going to show how to build an application that support multiple databases using same conceptual model made by Entity Framework.

Creating a Generic Entity Framework 4.0 Repository

With .NET 4.0 right around the corner, I thought it would be cool to download Visual Studio 2010 beta 2 and start playing around with the next release of Entity Framework.

The initial release of Entity Framework came with a great deal of criticism. To make matters worse, there was a large uproar when it was rumored that Microsoft would be abandoning LINQ to SQL, in favor of Entity Framework. This was because, at the time, many developers felt Entity Framework was an inferior technology to LINQ to SQL. To set things right, Microsoft proactively moved forward with improving Entity Framework, in time for the 4.0 release of the .NET Framework. This is good news because my initial impressions, so far, have been nothing but positive.

ASP.NET 4.0 Dynamic Data and Many to Many Entity Framework Entities

I did not play much with Dynamic Data controls in VS2008 and just made a cool discovery in VS2010 Beta 2. This may not even be new, but as I'm sitting 30,000+ feet over the Atlantic ocean, I don't have access to VS2008 at the moment to check.

Best Coding Techniques To Improve Performance for SharePoint Applications

As more developers write custom code by using the SharePoint Object Model, they encounter common issues that can affect application performance.

The following areas reflect the main issues encountered by developers as they write custom code by using the SharePoint object model:

§ Disposing of SharePoint objects

§ Caching data and objects

§ Writing code that is scalable

Entity Framework 4 Tips for WinForms Development

I've been recently working on a smart client (WinForms) application backed by Entitiy Framework 4 (EF4) on Visual Studio 2010. In this blog post I will try to give you some tips regarding some limitations and points to be careful about EF4.

Bar Code Scanners with the .NET Compact Framework

Summary: Learn how to make your applications use bar code scanners in a generic way-ndependent of the specific bar code scanners that are used on different devices. Using the design patterns Façade and Factory, the implementation not only supports multiple bar code scanners, but it also makes it easy to add support for other bar code scanners. After a brief discussion about bar code scanners and the bar code scanner pattern, a download code sample, written in C#, demonstrates the use of the pattern and technologies.

Serial Communication with the .NET Compact Framework

Learn how to make your applications communicate over a serial port and how to handle common issues when implementing serial solutions. After a general discussion about serial communication and a common serial communication standard, this article demonstrates a practical use of the technologies through sample source code written in C#.
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