.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

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

Posted By:      Posted Date: September 10, 2010    Points: 0   Category :WCF
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

View Complete Post

More Related Resource Links

External Code Assemblies, Report Subscriptions, and configuration files

I've got a report that relies on a very small external assembly for data for one of its fields.  That assembly, in turn, relies on some values from System.Configuration for portions of its work. I have the configuration keys and values running fine in the web interface, set up in web.config, but when users set up subscriptions for the report it runs fine but doesn't retrieve the configuration values from web.config (as expected) nor does it retrieve them from rsreportserver.config, where I have tried them in the root of the config file as <add key=... /> entries and also by wrapping them inside an <appSettings /> node.  I have also tried them in an appropriately-name config file in the bin directory.  In all cases the report is fine except the field that relies on the external assembly, where I recieve an error indicating that there's missing information (the config vals are used in a String.Format() call): Value cannot be null. Parameter name: format at System.String.Format(IFormatProvider provider, String format, Object[] args) at ExternalDBFunctions.ExternalSelectors.GetNotificationStati(String NotificationID) mscorlib When I remove the config values from the web.config, the web interface shows exactly the same error. Where should these configuration values go?

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

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. 

Add reference to external library

Hi guys,Can anybody point me in the right direction with this...I have a Class Library Project that I'm using in another Web application project. I've noticed that this has just copied the Class Library DLL into the Bin folder of the Web Application, and also that if I make some changes to the Class Library and rebuild the project, I also have to rebuild the Web Application for the changes to take effect there.This kind of defeats the object why I'm creating a Class Library as I'm hoping to put some generic functionality in there that will be available to a number of different web applications.Cheers for any help with this.Mark

Deploy VisualWebPart with external reference library

Hi to all, I've a problem because I created a webpart and I deployed it in GAC, but I reverenced an external library "Exchange Web Services Managed API 1.1". If I create a standard webapplication, all is ok. But when I use it in Visual web part project, and I deploy it, it don't found this dll in the package. The Sharepoint response, when I try to use a webpart, "File not found". Then I try to attach the process for debug and I found that this assembly "Exchange Web Services Managed API 1.1" is not registred in CAG, it's not found it!!! What can I do include this assembly in the package? And deploy this principal dll (the web part) and this referenced dll?

write server side code in External JS files

Salam To All,for my JS code, some times i need to organize my code, so i prefer to put some of javascript functions in external js files and  include it in my page as well.but i am face a problem if i need to write some .Net code especially to Get the Client ID for any of .net controls.so do you have a way to write the following code in External JS file?('#<%= this.ddlMake.ClientID %>').change(function(

Unable to reference custom XSL files in a custom ContentQuery WebPart



I'm doing a custom ContentQuery WebPart but i'm having difficulties referencing my XSL styles. I've googled a bit and tried to store the custom XSL files in the /Style Library/XSL Style Sheets/ and referencing them like this

<property name="MainXslLink" type="string" >/Style Library/XSL Style Sheets/CQWebPartMain.xsl</property>

and since i read SharePoint might have not be able to use SiteCollection relative urls i tried this:

<property name="MainXslLink" type="string" >http://my-dev-site/Style Library/XSL Style Sheets/CQWebPartMain.xsl</property>

and my first approach was:

<property name="MainXslLink" type="string" >/UIResources/CQWebPartMain.xsl</property>

WSDL files




I am new to work with web services. I am working on a project where there are a set of WSDL files and inside the project we are trying to invoke the a method inside it. But I dont know how it works and it is throwing the error method not found. Could any one tell me how to invode the method in wsdl file using webservice and what are the requirements to do this.

Before invoking the method its trying ti create instance of the service but returns null. I am not sure how to do this.


Thanks in advance.

Accessing External Javascript files (.js) in VWD 2010 (.Net 4)


Hopefully I've selected the appropriate forum to post. If not, kindly let me know and I will post in that forum.

I have searched hundreds of posts over countless forums, but am unable to run a Javascript that is placed in a separate .js file. If the script is placed directly in the <HTML> and ASP markup, the script runs fine. I am a newbie at this and resolution may be quite simple. But I cannot figure it out.

I have simplied the example down to a single .aspx page with a single button and the codebehind in VB, knowing that if I cannot get this working, I certainly won't be able to get my real scripts working.

I am currently running VWD 2010 on the .Net 4 framework. I've been working on this problem on and off over the past 3 weeks and simply cannot get it to work, so I continue to insert the code directly into the markup. I have tried countless changes to the following code, but not once able to get it to work.

Any help, suggestions or recommendations will be graciously accepted and very much appreciated.


The .aspx page is as follows:


<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Test_Script.aspx.vb" Inherits="Test_Script" %>



"Policy Assertions were not Imported" in WSDL


Hello, I have a following simple WSDL file containing ws-policy.
It looks like as below.

<definitions name="HelloService"






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?




External Sharepoint Links Not Inheriting Port Reference

Hi. I can't find any question quite like this so I'll post it. Internally and externally, my Sharepoint site works fine EXCEPT that externally (http://mysite.dyndns.org:44443) not all links inherit the port reference (44443) and thus don't work. As an example, I can get to the "default.aspx" page and I can navigate to a specific item, like an "Announcement" (http://mysite.dyndns.org:44443/Lists/Announcements/.....), but when I select the attachment that is part of the announcement I can see that the URL reference is missing the port reference (http://mysite.dyndns.org/Lists/Announcements/.....) and the link fails. Not sure if this is an AAM issue, IIS or a corrupt Sharepoint config. T

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:

A better way to reference your wizard steps using named steps

Note: this article uses the plain vanilla but the concepts apply equally well to its popular counterpart .

By far the most common way that I see wizard steps reference in code snippets is by their index.

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.

Combine, minify and compress JavaScript files to load ASP.NET pages faster

Websites are getting more interactive these days and most of this interactivity comes from JavaScript. People are using different JavaScript libraries and frameworks to make their websites more interactive and user 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