.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

Specify CLR Version When Using Al.exe to Generate Publisher Policy Files

Posted By:      Posted Date: September 07, 2010    Points: 0   Category :.NET Framework
I'm trying to generate a publisher policy for for .NET 4.0 assemblies. However, I noticed that the version of mscorlib that the generated policy file references is always 2.0.0. Is there a way to specify .NET 4.0 as the CLR? Otherwise, when you install this assembly, it gets installed into the C:\Windows\assembly folder instead of the new .NET 4.0 assembly GAC location. 

View Complete Post

More Related Resource Links

How to generate pdf from 2005 rdl report files from command prompt?

Hi All, I have a scenario like this, i have 10 rdl reports, which needs to run on a job basis with out any user interaction. Tell me is there any way to generate the pdf from command prompt using existing 2005 rdl files. Your help is more appreaciated!! Thanks, Sarvesh M  Sarvesh

Server generate frequently large mdmp files

Hi, I have running MS SQL Server 2005. Server generate frequently large mdmp files which took c: drive space. kindly tell how i stop creating these and keep the c: drive space. thx iffi

publisher policy in GAC

I want to redirect consumers of dll v1 to dll v2. I will add a publisher policy in GAC for that. Does this mean dll v2 itself must also reside in GAC or can the actual new dll be in /bin?http://webservices20.blogspot.com/ WCF Security, Interoperability And Performance Blog

Managed Accounts - Generate New Password causes "The password does not meet the password policy requ

Hello, We are setting up our SharePoint 2010 Farm. I liked the idea of the managed accounts with auto-generating passwords managed by SharePoint. So I setup all my accounts as managed accounts and scheduled several of them to update the password weekly. After the "update" happened my farm went down. So I manually reset passwords and went back into Central Admin to see what was going on. From the managed accounts I tried to manually update the password of my Farm account with the Generate new password functionality and get this error. Error The password does not meet the password policy requirements. Check the minimum password length, password complexity and password history requirements Servers are in a domain with a one-way trust to a parent domain. Thanks!

WSDL - add reference to policy in one or more external xml files

Hello, I've searched along the web, but didn't find anything that works well. I have an external xml file which declare some WS* policy:   <?xml version="1.0" encoding="utf-8"?> <wsp:Policy xmlns:wsp="http://www.w3.org/2006/07/ws-policy" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsrr="http://www.ibm.com/xmlns/prod/serviceregistry/6/2/wspolicy" xmlns:wsoma="http://schemas.xmlsoap.org/ws/2004/09/policy/optimizedmimeserialization" wsrr:policyClassDomain="http://schemas.xmlsoap.org/ws/2004/09/policy/optimizedmimeserialization" targetNamespace="http://mycommon/Policy"> <wsp:Policy wsu:Id="WSHttpsBinding_policy"> <wsp:ExactlyOne> <wsp:All> <sp:TransportBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> <wsp:Policy> <sp:TransportToken> <wsp:Policy> <sp:HttpsToken RequireClientCertificate="false" /> </wsp:Policy> </sp:TransportToken> <sp:AlgorithmSuite> <wsp:Policy> <s

Version Check SP and Location Log Files


My SQL Server 2008 Standard is showing Verson 10.0.2531.0.   Is ths SQL 2008 SP 1?  What is the latest SP for SQL 2008 Standard?  

I want to check that my log files are truncating properly during my Full backup.   How can I find the path for where the log files are stored? 

Thanks - NC Beach Bum

NC Beach Bum

Client browser using cached files instead of updated version after deployment



We have an ASP.NET web application and it's hosted using IIS 6.0, in the app we have these several javascript and css files located in a folder, and for performance sake (according to YSlow) we set the folder content expiration header to 1 year. Everything worked just fine until recently when we deployed the latest build to the server, in which we had made some changes to those javascript and css files. For some reason after the deployment some of our end users don't see the latest changes when they connected to the app, even after they cleared the cache in IE. We have also restarted the IIS on the server and the problem still remained. When I went into the IE Temporary Internet Files folder on one of these machines I saw the files were still the older version and not the latest one, I had to manually delete the files from the Temporary Internet Files folder then they were able to see the latest changes. I'm baffled by this, how come only some users who couldn't see the changes but some others do (without having to do anything by the way), and how do I make sure that for future releases we won't have to do anything like what did (manually deleting the cached files)? For now I disabled the Content Expiration option in IIS for these files but I would like to know if there is a way that I can enable the content expiration (to help performance) but

Including policy files in a VS SharePoint Project package



I have some policy files to redirect requests for old versions of some custom assemblies in the GAC to the new versions, and I've just refactored my project to use a SharePoint project for packaging (previously I was doing this with MSBuild scripts) - how do I configure my SharePoint project to also include the policy .dll and .config files in the package so that they also get deployed properly?




Variation export doesnot generate all the XML files



We have one site which have around 25 variations sites.

Now when we create export of a variation first time just after creating it then the export file(.cmp) contains 9 XML files, as just after creating variation all the pages are in draft version 0.1.

Now if we publish all the pages and now again we chekout and check in all the pages to 1.1 draft version then we create export file we didnt get 9 XML Files. This time it contains only 3 XML files.

9 XML files are required for translating the files.

Can anyone tell me the reason for the missing XML files.


Note : We are creating export using Sharepoint UI from Site Content and Management.


Jasjeet Singh

SharePoint/IIS referencing a Temporary Files version of an assembly


I'm having a very weird and frustrating problem.  I have a SharePoint Feature that I am deploying, however at some point it references the AjaxControlToolKit dll that is in the GAC.  What happens is the following error:

CS0433: The type 'AjaxControlToolkit.ModalPopupExtender' exists in both 'c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\30ff2330\b662b5c4\assembly\dl3\2724a5e5\b1736a7f_6c53cb01\AjaxControlToolkit.DLL' and 'c:\Windows\assembly\GAC_MSIL\AjaxControlToolkit\3.0.30930.20127__28f01b0e84b6d53e\AjaxControlToolkit.dll'

What happens is that each time I access the SharePoint site where this Feature is deployed and Activated, a set of temporary files is created in the 'c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\' path.  I have tried to stop IIS, delete these temp files, then restart, but each time I begin to use this SP site, the temp files are created again, and then I get this conflict error. 

About the AjaxControlToolkit.dll:  It is not set to CopyLocal and this is not being run in debug, I've tried it being added to SafeControls on the web.config file.

Any ideas why this is happening and how to fix?  It has basically halted

version control for .xamlx files in vs2010


Hi ,

This is my scenario:

I have a solution having multiple projects in it. There are several workflow files(Template1.xamlx,Template2.xamlx)files in my Business Logic Project. User Interface is a web application project that uses the service references of each of the workflows(Template1Reference, Template2Reference).

I have some threads which are running live . I need to update Template1.xamlx by adding another activity in the workflow.

I wanted that existing Template1 threads should continue to run in the old version (v1) and new threads to run in V2 of Tenplate1.

Template2 has no change.

My queries are:

How can i update Template1.xamlx and deploy ?

Do i need to create Template1_V2.xamlx file and update the Template1V2Reference in Template1.aspx page? or can i use the same Template1Reference in .aspx page.

If Template1.xamlx needs to be updated to version 2 , do i require Template2.xamlx to be upgraded to version 2 also ?

will the endpoint configuration of both workflows needs to be changed?

Kindly share your suggestions.

Thanking in advance


web browser control can not play swf files with the 64-bit version of Vista

Why web browser control can not play swf files with the 64-bit version of Vista, but it work well in the web page? Does anyone know this reason?

Clean Web.Config Files (VS 2010 and .NET 4.0 Series)

.NET 4 includes a new version of the CLR, and a new .NET 4 specific machine.config file (which is installed side-by-side with the one used by .NET 2, .NET 3 and .NET 3.5).

The new .NET 4 machine.config file now automatically registers all of the ASP.NET tag sections, handlers and modules that we've added over the years, including the functionality for:

.ASP.NET Dynamic Data
.ASP.NET Routing (which can now be used for both ASP.NET WebForms and ASP.NET MVC)
.ASP.NET Chart Control (which now ships built-into ASP.NET V4)
What this means is that when you create a new "Empty ASP.NET application" project in VS 2010, you'll find that the new default application-level web.config file is now clean and simple:

ASP.NET 4.0: WebForm Routing (quick n dirty version)

One of the things we're adding in ASP.NET 4.0 is built-in support for using Routing together with WebForms. Now, I'm totally aware that this is possible to do already and that a number of people have posted ways of doing this with the Web Routing feature which shipped with ASP.NET 3.5 SP1. We're just adding some features to make it easier to do

Generate thumbnails on the fly

There are many posts how to generate thumbnails using ASP.NET. Some good some less. Be sure to get distance from the versions that use Image.GetThumbnailImage method.

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.
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