WCF / ASMX :: Microsoft.Web.Services3.SoapContext.Security' Is Obsolete
Aug 25, 2010
I am developing a webservice using asp.net 2.0 and WSE3.0 and I hit some problem retrieving the mustUnderstand from the soapRequest envelope returned to us(We are acting as the service provider).
A soapRequest will be returned to us as shown below:
[Code]....
View 1 Replies
Similar Messages:
Dec 16, 2010
It looks that the old SqlHelper class from the Microsoft Enterprise Library has been mostly replaced by the Database class which is included in the new Enterprise Library version 5.
I have a very simple and trivial example:
using Microsoft.ApplicationBlocks.Data;
private void PopulateCheckBoxGroup()
{
const string strConnTxt = "Server=(local);Database=DataBindTests;Integrated Security=True;";
const string strlSql = "select Technology from PreferredTechnology where ParentId = 1";
CheckBoxList1.DataSource = SqlHelper.ExecuteReader(strConnTxt, CommandType.Text, strlSql);
CheckBoxList1.DataTextField = "Technology";
CheckBoxList1.DataBind();
}
View 1 Replies
Jul 7, 2010
Microsoft Dynamics GP is installed on my system..can I access GP web services?...If I can,how it is possible
View 1 Replies
Jan 3, 2011
I have to call a web service from JavaScript using .net framework 2.0 and Visual Studio 2008. I am able to do this successfully using .net framework 3.5 and Visual Studio 2008, but since the application is in .net framework 2.0, I downloaded the ASP.NET 2.0 AJAX Extensions.When I run the application I get the above error at
Sys.WebForms.PageRequestManager._initialize('_scriptManager', document.getElementById('form1'));
View 2 Replies
May 19, 2010
I am upgrading a website from .Net 1.1 to .Net 2.0 Framework.My Code is working well in mozilla but the same code is creating one problem in explorerthat is :- "Microsoft JScript runtime error: 'document.Form1.txtScrollY' is null or not an object"It is showing 3 options for every action i do in the net Break , Continue, Ignore.
View 2 Replies
Nov 16, 2010
When they initialize the resource manager they create a new ResourceSets hashtable which they use to store all the culture-specific resource sets. Then they override ResouceSets passing in the culture in order to get a resource set for a specific culture. OK so far.
Problem is with creating the hash table in the Initialize method; the compiler complains that ResourceSets is obsolete (new with 4.0) and I am instructed to call InternalGetResourceSet() instead.
[code]....
View 1 Replies
Sep 20, 2010
I have a System.Web.UI.WebControls.Xml control (Xml1) in a webforms app that I have upgraded from .NET 2.0 to .NET 4.0
I am getting two warnings from the code-behind page that I'd like to do something about.
[code]....
'Public Property Document As System.Xml.XmlDocument' is obsolete: 'The recommended alternative is the XPathNavigator property. Create a System.Xml.XPath.XPathDocument and call CreateNavigator() to create an XPathNavigator.
View 3 Replies
Oct 18, 2010
What is this warninghow can i solve it'AjaxControlToolkit.AutoCompleteExtender.CompletionListElementID' is obsolete: 'Instead of passing in CompletionListElementID, use the default flyout and style that using the CssClass properties.
View 7 Replies
May 7, 2015
I have tried sample to this address: [URL] ....
Â
But for the obsolete methods in title I have some problem with style, do you have some sample with update?
View 1 Replies
Oct 5, 2010
I have a very simple ASP.NET web application created under Visual Studio 2008 (SP1), targeting .NET 3.5.
Startup page is a dumbed down ASPX page with 4 text boxes, a button, and two JScript functions:
An OnLoad handler for the body. This function just sets the values of the text boxes to certain dates and times for testing.An OnClick handler for the button. This handler invokes the Localization web service and displays the results thereof.
Localization is a web service. Its job is to get the user's region and country information, create a CultureInfo object, and parse the date and time information so that it can verify that the start date is prior to the end date. It's the only reliable way to do this without reams of JScript code that essentially reinvents the wheel. The result is returned as a JSON string.
Everything seemed to be working just fine, until I started getting these weird error messages from the debugger. The debugger will break on this line :
try {
_this._webRequest.completed(Sys.EventArgs.Empty);
}
finally { // <-- RIGHT HERE, specifically, on the brace
if (_this._xmlHttpRequest != null) {
_this._xmlHttpRequest.onreadystatechange = Function.emptyMethod;
_this._xmlHttpRequest = null;
}
}
The error message is this:
Microsoft JScript compilation error: Expected ';'
Now, this is baffling, and research has usually recommended ensuring that Java was installed. I scoffed at first, thinking that I, with my vast and clearly superior intellect, could not possibly have made so foolish a mistake and that everyone knew the difference between Java and JavaScript. So, when no one was looking, I tried it. It made no difference.
I have no idea what is causing this to occur. The stack trace reveals that it's the only call on the stack. There aren't even any local variables to work with. And the file that it occurs in is a generated dynamic script resource. The function, however, is the _onReadyStateChange function of the Sys.Net.XMLHttpExecutor object. So I can at least say it's occurring consistently in the AJAX code.
Has anyone else seen this? If you did, what was its cause and how did you resolve it?
Server Side:
Windows 2000
IIS 7
ASP.NET
.NET 3.5
Development
Visual Studio 2008 SP1
.NET 3.5
IE 8
IIS 7
View 2 Replies
Apr 10, 2010
I need to know abt Microsoft Certificate Services ...can u guys xplain in details ....I find microsoft article regarding this ....Stil cnt able to do ..Am a new bee in this kind of stuff ....
View 2 Replies
Jan 29, 2011
I have the following Sub Routine in my vb.net project which runs fine, but I constantly get build warnings:
[code]....
I think it would be best if I used the correct method. I have followed the instructions here - [URL] but it didn't make a great amount of sense.
[code]....
View 2 Replies
Nov 27, 2010
I am using a <a href=[URL], an open source e-commerce platform, for one of my projects, and I noticed that they use Master Pages as well as user controls. When I looked some of this up, some people made it appear as if Master Pages were intended to replace user controls. Is this true? In my opinion, if I were to start an ASP.NET app from scratch, I would think a Master Page would be enough, but I guess user controls could be utilized.
View 2 Replies
Oct 28, 2010
So I have an ASP.net application, with an ActiveX Control which brings up a pop up
When I point to the application directly through IP there is no problem with the pop up eg. xxx.xxx.xxx.xxx/MyApp (under Default Website in the IIS -- IIS 7) Problem arises when I set up the IIS to point it to a domain [URL] which points to the above IP (under another "Site" i.e. not the "Default Site in IIS 7)
I then get this weird
Microsoft .net Security Warning Never enter personal information or passwords into a window unless you can verify and trust the source of the request.
Source: [URL]
The site is in the trusted list -- just like when I was using the IP only . Is there any setting in the IIS I need to tweak for IE to trust me fully.
View 2 Replies
Mar 9, 2010
I have a web app, can upload images when running it on the local development machine, but when runnign it on WebServer 2008, it gives me an error saying "access is denied". I konw it is something to do with security, but how do I make it such that an internet user can have acces to it. The folder is located in: c:inetpubsiteimages494
View 4 Replies
Mar 28, 2011
We have developed apllication in Microsoft VS 2008 and when we opening this same application with Microsoft VS 2010. Then it's asking to convert.
So can anybody tell me what it is converting exactly. Means it's open application in Microsoft VS 2010 and running properly also. But i am understanding whats happning while converting.
View 3 Replies
Apr 14, 2010
i want to Ask One Question in Wcf,How we Implement Security In Wcf Plz Give me one example , and tell me how many types of security in wcf.
View 1 Replies
Feb 8, 2011
I need to get message integrity by encrypting the data while dataflow between Service <-> client (by directional). Below are the details.
Development Environment: .net framework 4.0; Windows 7, IIS7, VS2010.
Production Environment: .net framework 4.0; Windows 2008, IIS7.
Business Requirement:
I have an WCF Service hosted in IIS7. There are multiple Windows Forms Application as clients to my service. Services will be consumed via internet.User, Role information are stored in SQL Server 2008 database. Need to Authenticate and Authorize requests agains the SQL Server database. Dataflow is bi-directional. Clients will write data to service. And also Service will serve data to clients Data transfered in wires must be encrypted, in both directions. My approch to solution:
Below is the configuration setting in Service web.config file.
<system.serviceModel> <bindings> <wsHttpBinding> <binding name="POCWsHttpBinding"> <security mode="Message"> <message clientCredentialType="UserName" negotiateServiceCredential="true" /> </security> </binding> </wsHttpBinding> </bindings> <services> <service behaviorConfiguration="POCServiceBehaviour" name="SecurityPOC.SecuredService"> <endpoint address="" binding="wsHttpBinding" bindingConfiguration="POCWsHttpBinding" name="POCwsHttpBindingEndPoint" contract="SecurityPOC.ISecuredService" /> </service> </services> <behaviors> <serviceBehaviors> <behavior name="POCServiceBehaviour"> <serviceMetadata httpGetEnabled="true" /> <serviceDebug includeExceptionDetailInFaults="false" /> <serviceCredentials> <serviceCertificate findValue="CN=WCFServer" storeLocation="LocalMachine" storeName="My" x509FindType="FindBySubjectDistinguishedName" /><userNameAuthentication userNamePasswordValidationMode="Custom" customUserNamePasswordValidatorType="Common.MyCustomUsernamePasswordValidator, Common" /> </serviceCredentials> </behavior> </serviceBehaviors> </behaviors> <serviceHostingEnvironment multipleSiteBindingsEnabled="true" /> </system.serviceModel>
Questions & Assumptions:
My assumption is that, client certificate is used for authentication. I am not using Certificates at Client side, becuase my client authentication will be done using UserNameValitions against the Database.
Am I write? Using only Server side Certificate, with negotiateServiceCredential="true".
Is it required is install Server certificate on client machines in this case?
I am assuming Server Certificate details will be downloaded to client site during the first call..
<security mode="Message">,
Assuming this setting takes care about the message security/encryption using the Server certificate, in both directions. As per my requirement, message must encryped on wire while tranfer between Server to client and while Client to Server.
Am I write?
My Last question...How to ensure that messages are being encripted on both directions, from Testing point-of-view. I need to take test evidences out of it.
View 3 Replies
Nov 17, 2010
Am facing problem while consuming a java web service using WCF. below is the web.config and aspx.cs file details
Requirement
Service request and response will be encrypted with certificate. when i run this below code am getting the error "The private key is not present in the X.509 certificate."
<system.serviceModel>
<behaviors>
<endpointBehaviors>
<behavior name="TestClientCertificate">
<clientCredentials>
<clientCertificate storeLocation="CurrentUser" storeName="My"
findValue="certificatename" x509FindType="FindByIssuerName"/>
</clientCredentials>
</behavior>
</endpointBehaviors>
</behaviors>
<bindings>
<basicHttpBinding>
<binding name="TestHttpBinding" maxReceivedMessageSize="1048576" maxBufferSize="1048576" transferMode="Buffered">
<security mode="TransportWithMessageCredential">
<!--<transport clientCredentialType="Certificate"/>-->
<message clientCredentialType="Certificate"/>
</security>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint name="TestHttpPort" address="https://webserviceurl/webservice"
binding="basicHttpBinding" bindingConfiguration="TestHttpBinding"
behaviorConfiguration="TestClientCertificate"
contract="ServiceReference1.webService1">
</endpoint>
</client>
</system.serviceModel>
in page
protected void Page_Load(object sender, EventArgs e)
{
WebServiceClient abc = new WebServiceClient();
BindingElementCollection elements = abc.Endpoint.Binding.CreateBindingElements();
elements.Find<SecurityBindingElement>().IncludeTimestamp = true;
abc.Endpoint.Binding = new CustomBinding(elements);
WebServiceClientResponse xyz = abc.WebMethod("", "");
}
private static bool customXertificateValidation(object sender, X509Certificate cert, X509Chain chain, System.Net.Security.SslPolicyErrors error)
{
return true;
}
<system.serviceModel>
<behaviors>
<endpointBehaviors>
<behavior name="TestClientCertificate">
<clientCredentials>
<clientCertificate storeLocation="CurrentUser" storeName="My"
findValue="partnerservices" x509FindType="FindByIssuerName"/>
</clientCredentials>
<!--<serviceDebug includeExceptionDetailInFaults="true"/>-->
</behavior>
</endpointBehaviors>
</behaviors>
<bindings>
<basicHttpBinding>
<binding name="TestHttpBinding" maxReceivedMessageSize="1048576" maxBufferSize="1048576" transferMode="Buffered">
<security mode="TransportWithMessageCredential">
<!--<transport clientCredentialType="Certificate"/>-->
<message clientCredentialType="Certificate"/>
</security>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint name="TestHttpPort" address="https://webservicespprd.biworldwide.com/partnerservices/services/v1/AccountWebService.biws"
binding="basicHttpBinding" bindingConfiguration="TestHttpBinding"
behaviorConfiguration="TestClientCertificate"
contract="ServiceReference1.AccountWebService">
<!--<identity>
<certificate encodedValue="MIIB5zCCAVCgAwIBAgIQlerVslZ+4p1Of3evhNc3TDANBgkqhkiG9w0BAQQFADAP
MQ0wCwYDVQQDEwRTR0JJMB4XDTEwMTExNjA5MjYyOVoXDTM5MTIzMTIzNTk1OVow
DzENMAsGA1UEAxMEU0dCSTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA5mYW
n4Qp/8uosJ56fXLqygOkTDuYTTX0KECRce7fkeCFH8SpqQeCltNMjFgNRzr+C4rk
6A7GFe6gMiVyogqYgQn/QyZGT5iTXJ4khkAYui/gLX4Cga3tBCoVckja/93bCUOS
G4rS7W86kgG2hV+BfceqmlRISnlaLWxN/Ys6TAsCAwEAAaNEMEIwQAYDVR0BBDkw
N4AQ7veQWUUKR17/SJxFCEHu56ERMA8xDTALBgNVBAMTBFNHQkmCEJXq1bJWfuKd
Tn93r4TXN0wwDQYJKoZIhvcNAQEEBQADgYEAPsTiaYcghQCtBRH8FupLZIzliSHx
h3rsr6mKQT68rA+I9qjs/lsPaN2ebajDb3xzJRmjlrz2+9Gjc9LUGDaHEgxsPHab
Dh/IOgkqyjVAJHufjroKFfkzTJwwB4/uWU2vOKPpqVXfLqRXJ8du25MI7iWcHVfg
oYS1eESNBuPCErQ="/>
</identity>-->
</endpoint>
</client>
</system.serviceModel>
View 7 Replies
Jun 10, 2010
I have a Client Application calling a WCF service. I was getting a faultedState error on the client, after looking around I discovered this was because the client proxy was in a using statement and was actually hiding a security error. I have not been able to fix this fault and have not been able to find much online about it. I have undone the changes that caused this error to happen and the error continued, I have even went back to a different version of the solution and still encountered this error. I later set up my solution on another machine and pretty much encountered the same problem after working for a couple of hours.
I have the service and client running in my local solution. I'm using visual studio 2008. The error I get is "An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail." and inner exception is "An error occurred when verifying security for the message."
Server stack trace: at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.ProcessReply(Message reply, SecurityProtocolCorrelationState correlationState, TimeSpan timeout) at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.Request(Message
message, TimeSpan timeout) at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[]
outs, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs) at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall,
ProxyOperationRuntime operation) at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgData, Int32 type) at
View 3 Replies
Nov 10, 2010
How can we implement security in case of asp.net webservice ? as per my knowledge, we can implement security by the following ways -
1. IIS authentication
2. Form/Passprt/Windows Authentication in web.config file of the webservice solution. is there any other way to implement the security in webservices ?can we implement security at web-method level ?
View 1 Replies
Feb 22, 2011
I wont to restrict my web service only for few domains.
I wont to have access to web service from using ajax and my page, and I don't want that anybody can create client to my WebService and view my web service methods.
View 4 Replies
Oct 2, 2010
im using wcf how can i make sure to my service file from client side.
my web service file (service.svc) should not acceable on client side....on https security(ssl)
View 6 Replies
Feb 21, 2011
I have devloped a WCF service which is consumed by a Java client app. WCF service is hosted using IIS and Java client is hosted on Tomcat server on same server.
what kind of security i can implement in my service?
View 1 Replies
Mar 21, 2011
I'm running into an issue connecting to a web service that is protected with a ssl cert. I have the PFX key, and have included the WSDL in my project. However, i always get a "Forbidden" error. At first I thought this was just a problem with the key, so we regenerated the certs and keys and tried again... Still Forbidden. The group who is hosting the web service turned up their logging and found that my cert is NOT being passed. Yet when I look at my call to the webservice, I can see the cert is attached to the object.
Is there anything I'm doing obviously wrong?
Apologies for this being in VB.NET ;)
[Code]....
View 1 Replies