Changing identity under which the WCF service

Yes second one. I'm asking about changing identity under which the WCF service runs on sever side.
When add reference to the WCF service, VisualStudio automatically add following lines into the config file:
<identity>
    <userPrincipalName value="xxx/xxx" />
</identity>
If this doesn't match with the identity used sever side, the app will throw exception when running. I tried debug in VisualStudio. It reports:
An exception of type 'System.ServiceModel.Security.SecurityNegotiationException' occurred in System.ServiceModel.dll but was not handled in user codeAdditional information: SOAP security negotiation with 'http://<host>:<port>/xxx.svc' for target 'http://<host>:<port>/xxx.svc' failed. See inner exception for more details.
The inner exception is:
Security Support Provider Interface (SSPI) authentication failed. The server may not be running in an account with identity 'host/<machinename>'. If the server is running in a service account (Network Service for example), specify the account's ServicePrincipalName as the identity in the EndpointAddress for the server. If the server is running in a user account, specify the account's UserPrincipalName as the identity in the EndpointAddress for the server.
Any idea?

Yes second one. I'm asking about changing identity under which the WCF service runs on sever side.
When add reference to the WCF service, VisualStudio automatically add following lines into the config file:
<identity>
    <userPrincipalName value="xxx/xxx" />
</identity>
If this doesn't match with the identity used sever side, the app will throw exception when running. I tried debug in VisualStudio. It reports:
An exception of type 'System.ServiceModel.Security.SecurityNegotiationException' occurred in System.ServiceModel.dll but was not handled in user codeAdditional information: SOAP security negotiation with 'http://<host>:<port>/xxx.svc' for target 'http://<host>:<port>/xxx.svc' failed. See inner exception for more details.
The inner exception is:
Security Support Provider Interface (SSPI) authentication failed. The server may not be running in an account with identity 'host/<machinename>'. If the server is running in a service account (Network Service for example), specify the account's ServicePrincipalName as the identity in the EndpointAddress for the server. If the server is running in a user account, specify the account's UserPrincipalName as the identity in the EndpointAddress for the server.
Any idea?
Please open a new thread for your second question.
I sale myself ONLY half CNY!

Similar Messages

  • I recently moved to an area in which the only service provider is Verizon...and therefore Android.  Will I be able to access the Cloud with my Android?

    I recently moved to an area in which the only service provider is Verizon...and therefore Android.  Will I be able to access the Cloud with my Android?

    You can access iCloud.com, but you wont be able to sync your contacts, apps etc.. to iCloud.
    I tried this with a Galaxy S.

  • Suddenly Bounced emails - Is there something changed or bugged with the HPePrint services?

    Hello,
    We are using HPePrint with several printers on different locations for over a year now, without any real problems.
    But since yesterday, we get bounced email our of the blue. Nothing changed on our end, same email adresses used, but now our people all get the following error (except for the Received-From-MTA, which is different for most people from different offices):
      ----- Transcript of session follows -----
    ... while talking to email.hpeprint.com.:
    DATA
    <<< 550 5.7.1 Command rejected
    554 5.0.0 Service unavailable
    Reporting-MTA: dns; f-serve.identitycompany.net
    Received-From-MTA: DNS; idc-vls.xs4all.nl
    Arrival-Date: Sun, 11 Dec 2011 15:20:56 +0100 (CET)
    Final-Recipient: RFC822; *****@hpeprint.com
    Action: failed
    Status: 5.7.1
    Remote-MTA: DNS; email.hpeprint.com
    Diagnostic-Code: SMTP; 550 5.7.1 Command rejected
    Last-Attempt-Date: Sun, 11 Dec 2011 15:21:02 +0100 (CET)
    What gives? Is the service REALLY unavaible for 2 days now, which I can't imagine from a large company as HP with it's prime marketing service ePrint.
    We checked Spam/Blacklists to be sure that our Mailservers and office IPs aren't listed suddenly, and they are all not listed anywhere, so this can't be the problem.
    Please explain what suddenly changed, and we missed somehow, or what we should change/update on our ends to get this working again, as it did up to a few days ago.

    For those who are experiencing ongoing issues with their web services, you can attempt to try the following steps that may help resolve your problems.
    1.)    Completely shut down your printer and restart it
    2.)    If you have prints that have not printed, log into ePrint Center (or create an account if you do not have one) and then look for your printer status. If printer status is green but you still have pending jobs, delete the pending jobs one at a time (Starting with the oldest first). There may be a print job stuck in the queue that further restricts other jobs from completing.
    If option 1 or 2 above still doesn’t work, removing web services and re-adding web services will cause the printer to reattach to the cloud.
    Please note that if you attempt option 3, you will get a new eprint email address (and lose your custom one with no ability to get it back) furthermore, you will need to re-add your printer back to your ePC account.
    I am an HP employee

  • Solaris: How do I specify the user under which the WLS runs?

    I just upgraded from WLS 5 to 8. OS is Solaris 8.
    Configuration is one single admin server which also acts as the only managed server.
    The admin server must start up as root so that the users don't have to specify the port :443 at the URL (don't ask me why, but it seems to be the fact on Solaris).
    After starting, I want the server java process to actually run as another user than root. How to I do this?
    It worked on the old Solaris server with WLS 5.1, and I have an idea that it had something to do with the command line option -Dweblogic.system.user=. That option has no effect when trying it with WLS 8.1.
    This must be a common task when running WLS on Solaris. But I cannot figure it out, and a thousand users are waiting for the application to start up. Can anyone tell me how to do this?
    Regards,
    Anders.

    If you logged in as userx and started server, the weblogic server process will be started as userx.
    If you want usery to start server, then you need to give permissions accordingly, though you have installed the weblogic as root.
    -Dweblogic.system.user=, option works only when this user has rwx permissions to various files under weblogic dir (log files, applications, .....).
    Regards
    Sree

  • WCF service connection forcibly closed by the remote host for large data

    Hello ,
                        WCF service is used to generate excel report , When the stored procedure returns large data around 30,000 records. Service fails
    to return the data . Below is the mentioned erorr log :
    System.ServiceModel.CommunicationException: An error occurred while receiving the HTTP
    response to <service url> This could be due to the service
     endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by
    the server (possibly due to the service shutting down). See server logs for more details. ---> System.Net.WebException:
    The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException:
    Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
    ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
       at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
       at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
       --- End of inner exception stack trace ---
       at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
       at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)
       at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)
       --- End of inner exception stack trace ---
       at System.Net.HttpWebRequest.GetResponse()
       at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout).
       --- End of inner exception stack trace ---
    Server stack trace:
       at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)
       at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
       at System.ServiceModel.Channels.RequestChannel.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.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 IDataSetService.GetMastersData(Int32 tableID, String userID, String action, Int32 maxRecordLimit, Auditor& audit, DataSet& resultSet, Object[] FieldValues)
       at SPARC.UI.Web.Entities.Reports.Framework.Presenters.MasterPresenter.GetDataSet(Int32 masterID, Object[] procParams, Auditor& audit, Int32 maxRecordLimit).
    WEB CONFIG SETTINGS OF SERVICE
    <httpRuntime maxRequestLength="2147483647" executionTimeout="360"/>
    <binding name="BasicHttpBinding_Common"  closeTimeout="10:00:00"  openTimeout="10:00:00"
           receiveTimeout="10:00:00"  sendTimeout="10:00:00"  allowCookies="false"
           bypassProxyOnLocal="false"  hostNameComparisonMode="StrongWildcard"
           maxBufferSize="2147483647"  maxBufferPoolSize="0"  maxReceivedMessageSize="2147483647"
           messageEncoding="Text"  textEncoding="utf-8"   transferMode="Buffered"
           useDefaultWebProxy="true">
    <readerQuotas     maxDepth="2147483647"
          maxStringContentLength="2147483647"  maxArrayLength="2147483647"
          maxBytesPerRead="2147483647"  maxNameTableCharCount="2147483647" />
         <security mode="None"> 
    WEB CONFIG SETTINGS OF CLIENT
    <httpRuntime maxRequestLength="2147483647" requestValidationMode="2.0"/>
    <binding name="BasicHttpBinding_Common"
           closeTimeout="10:00:00"       openTimeout="10:00:00"
           receiveTimeout="10:00:00"       sendTimeout="10:00:00"
            allowCookies="false"        bypassProxyOnLocal="false"
            hostNameComparisonMode="StrongWildcard"        maxBufferSize="2147483647"
            maxBufferPoolSize="2147483647"        maxReceivedMessageSize="2147483647"
            messageEncoding="Text"        textEncoding="utf-8"
            transferMode="Buffered"        useDefaultWebProxy="true">
     <readerQuotas
           maxDepth="2147483647"
           maxStringContentLength="2147483647"
           maxArrayLength="2147483647"
           maxBytesPerRead="2147483647"
           maxNameTableCharCount="2147483647" />   

    Doing binding configuration on a WCF service to override the default settings is not done the sameway it would be done on the client-side config file.
    A custom bindng must be used on the WCF service-side config to override the defualt binding settings on the WCF service-side.
    http://robbincremers.me/2012/01/01/wcf-custom-binding-by-configuration-and-by-binding-standardbindingelement-and-standardbindingcollectionelement/
    Thee readerQuotas and everything else must be given in the Custom Bindings to override any default setttings on the WCF service side.
    Also, you are posting to the wrong forum.
    http://social.msdn.microsoft.com/Forums/vstudio/en-us/home?forum=wcf

  • Cannot connect to the Service Manager portal WCF service...again

    I've ran into this error a few times now, but I have usually been able to fix it. This time its being more stubborn. 
    This is a brand new 2012 R2 portal running on a brand new SharePoint 2010 SP1 two server farm. The web content server is installed on both of the webservers just like Travis has it in this blog: http://blogs.technet.com/b/servicemanager/archive/2012/05/04/how-to-configure-the-self-service-portal-sharepoint-site-or-the-web-content-server-for-load-balancing.aspx 
    We have it F5 load balanced with a 3rd party cert which is working fine. We get to the site and the app loads, but instead of seeing the only catalog item I have published, I see the red error at the bottom stating that it cannot connect to the WCF service.
    I've double checked all my bindings in IIS and the web.config. When I look in the web server event log I see this:
    System.ServiceModel 3.0.0.0 Event ID 3
    WebHost failed to process a request. Sender Information: System.ServiceModel.Activation.HostedHttpRequestAsyncResult/37916227 Exception: System.Web.HttpException: The service '/ServiceHost/Services/DataAccessService.svc' does not exist. ---> System.ServiceModel.EndpointNotFoundException: The service '/ServiceHost/Services/DataAccessService.svc' does not exist.   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)   at System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath)   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest()   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest()   --- End of inner exception stack trace ---   at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) Process Name: w3wp Process ID: 3004
    The SMPortalTrace.log isnt being very helpful, but heres a copy of it:
    Error,2014-06-20 13:19:22.8784441,System.Reflection.TargetInvocationException: [Arg_TargetInvocationException]
    Arguments:
    Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.1.30214.00&File=mscorlib.dll&Key=Arg_TargetInvocationException ---> System.ServiceModel.CommunicationException: [HttpWebRequest_WebException_RemoteServer]
    Arguments: NotFound
    Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.1.30214.0&File=System.Windows.dll&Key=HttpWebRequest_WebException_RemoteServer ---> System.Net.WebException: [HttpWebRequest_WebException_RemoteServer]
    Arguments: NotFound
    Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.1.30214.0&File=System.Windows.dll&Key=HttpWebRequest_WebException_RemoteServer ---> System.Net.WebException: [HttpWebRequest_WebException_RemoteServer]
    Arguments: NotFound
    Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.1.30214.0&File=System.Windows.dll&Key=HttpWebRequest_WebException_RemoteServer
    at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
    at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClassa.<EndGetResponse>b__9(Object sendState)
    at System.Net.Browser.AsyncHelper.<>c__DisplayClass4.<BeginOnUI>b__1(Object sendState)
    --- End of inner exception stack trace ---
    at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
    at System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
    at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)
    --- End of inner exception stack trace ---
    at Microsoft.EnterpriseManagement.ServiceManager.Portal.ServiceCatalogSilverlightModule.Models.DataProvider.<>c__DisplayClass1.<FetchAllServiceOfferings>b__0(Object sender, AsyncDataCommandCompletedEventArgs`1 e)
    at Microsoft.EnterpriseManagement.Presentation.DataAccess.AsyncDataCommandBase`2.<>c__DisplayClass2.<CompleteCommand>b__0(Object )
    --- End of inner exception stack trace ---
    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
    at System.Delegate.DynamicInvokeImpl(Object[] args)
    at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, Boolean useFastPath, Delegate d, Object[] args)
    at System.Windows.Threading.DispatcherSynchronizationContext.Send(SendOrPostCallback d, Object state)
    at Microsoft.EnterpriseManagement.Presentation.DataAccess.AsyncDataCommandBase`2.CompleteCommand(Object sender, AsyncDataCommandCompletedEventArgs`1 e)
    at Microsoft.EnterpriseManagement.Presentation.DataAccess.AsyncDataCommandBase`2.OnCommandCompleted(Object sender, Exception exception)
    at Microsoft.EnterpriseManagement.Presentation.DataAccess.DataGatewayBase.CompleteAsyncDataCommandWithError(AsyncDataCommand command, Exception exception)
    at Microsoft.EnterpriseManagement.Presentation.DataAccess.ProxyDataGateway.ProxyExecuteCompletedHandler(Object sender, ExecuteCompletedEventArgs e)
    at Microsoft.EnterpriseManagement.Presentation.DataAccess.ProxyDataGateway.<>c__DisplayClass4.<GetClientProxy>b__3(Object sender, ExecuteCompletedEventArgs args)
    at Microsoft.EnterpriseManagement.Presentation.DataAccess.Proxy.ServiceReference.DataAccessServiceClient.OnExecuteCompleted(Object state)
    Error,2014-06-20 13:23:12.7295391,System.Reflection.TargetInvocationException: [Arg_TargetInvocationException]
    Arguments:
    Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.1.30214.00&File=mscorlib.dll&Key=Arg_TargetInvocationException ---> System.ServiceModel.CommunicationException: [HttpWebRequest_WebException_RemoteServer]
    Arguments: NotFound
    Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.1.30214.0&File=System.Windows.dll&Key=HttpWebRequest_WebException_RemoteServer ---> System.Net.WebException: [HttpWebRequest_WebException_RemoteServer]
    Arguments: NotFound
    Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.1.30214.0&File=System.Windows.dll&Key=HttpWebRequest_WebException_RemoteServer ---> System.Net.WebException: [HttpWebRequest_WebException_RemoteServer]
    Arguments: NotFound
    Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.1.30214.0&File=System.Windows.dll&Key=HttpWebRequest_WebException_RemoteServer
    at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
    at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClassa.<EndGetResponse>b__9(Object sendState)
    at System.Net.Browser.AsyncHelper.<>c__DisplayClass4.<BeginOnUI>b__1(Object sendState)
    --- End of inner exception stack trace ---
    at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
    at System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
    at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)
    --- End of inner exception stack trace ---
    at Microsoft.EnterpriseManagement.ServiceManager.Portal.ServiceCatalogSilverlightModule.Models.DataProvider.<>c__DisplayClass1.<FetchAllServiceOfferings>b__0(Object sender, AsyncDataCommandCompletedEventArgs`1 e)
    at Microsoft.EnterpriseManagement.Presentation.DataAccess.AsyncDataCommandBase`2.<>c__DisplayClass2.<CompleteCommand>b__0(Object )
    --- End of inner exception stack trace ---
    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
    at System.Delegate.DynamicInvokeImpl(Object[] args)
    at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, Boolean useFastPath, Delegate d, Object[] args)
    at System.Windows.Threading.DispatcherSynchronizationContext.Send(SendOrPostCallback d, Object state)
    at Microsoft.EnterpriseManagement.Presentation.DataAccess.AsyncDataCommandBase`2.CompleteCommand(Object sender, AsyncDataCommandCompletedEventArgs`1 e)
    at Microsoft.EnterpriseManagement.Presentation.DataAccess.AsyncDataCommandBase`2.OnCommandCompleted(Object sender, Exception exception)
    at Microsoft.EnterpriseManagement.Presentation.DataAccess.DataGatewayBase.CompleteAsyncDataCommandWithError(AsyncDataCommand command, Exception exception)
    at Microsoft.EnterpriseManagement.Presentation.DataAccess.ProxyDataGateway.ProxyExecuteCompletedHandler(Object sender, ExecuteCompletedEventArgs e)
    at Microsoft.EnterpriseManagement.Presentation.DataAccess.ProxyDataGateway.<>c__DisplayClass4.<GetClientProxy>b__3(Object sender, ExecuteCompletedEventArgs args)
    at Microsoft.EnterpriseManagement.Presentation.DataAccess.Proxy.ServiceReference.DataAccessServiceClient.OnExecuteCompleted(Object state)
    Any ideas?
    - Get on the floor, do that dinosaur

    For me I can reach it via the direct server name,
    https://Server:444/ServiceHost/Services/DataAccessService.svc works and displays a page
    But it fails when trying to go to the load balanced name:
    https://SelfService.blah.com:444/ServiceHost/Services/DataAccessService.svc Fails
    When I use IE11 and do a network check it shows its getting a 404 error on /ContentHost/ClientBin/ServiceCatalogSilverlightModule.xap.
    Network guys who configured the F5 can't see any network issues blocking the request. The F5 isn't doing SSL offloading, certificate is on the software portal server.

  • Failed to load resource: the server responded with a status of 405 (Method Not Allowed) XMLHttpRequest cannot load (WCF service URL). Invalid HTTP status code 405

    Hi,
    while consuming the  WCF service POST method Jquery, getting error in Chrome and firefox, in IE  Its working fine.
    ERROR:Failed to load resource: the server responded with a status of 405 (Method Not Allowed)  XMLHttpRequest cannot load (WCF service URL). Invalid HTTP status code 405.
    Jquery used to call:
    $.support.cors = true
            $.ajax({
                type: "POST",
                url: serviceURL,
                data: JSON.stringify(managedProps),
                useDefaultXhrHeader:false,
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                //processData: true,
                crossDomain: true,
                success: function (data, status, jqXHR) {
                   alert("sucess");
                error: function (xhr) {
                    alert("error");
    WCF sevice Web.config
    <webHttpBinding>
            <!--<binding name="webHttpBindingWithJsonP" transferMode="StreamedRequest" />-->
            <binding name="crossDomain" crossDomainScriptAccessEnabled="true" transferMode="StreamedResponse" />
          </webHttpBinding>
        </bindings>
        <services>
          <service name="DynamicRefinerWCF.DynamicRefiner">
            <endpoint address="" behaviorConfiguration="REST" bindingConfiguration="crossDomain" binding="webHttpBinding" contract="DynamicRefinerWCF.IDynamicRefiner" />
            <endpoint address="mex" binding="mexHttpBinding" contract="DynamicRefinerWCF.IDynamicRefiner" />
            <host>
              <baseAddresses>
                <add baseAddress="http://localhost/example.svc" />
              </baseAddresses>
            </host>
          </service>
        </services>
        <!--<protocolMapping>
            <add binding="basicHttpsBinding" scheme="https" />
        </protocolMapping>-->    
        <!--<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />-->
      </system.serviceModel>
      <system.webServer>
        <!--<modules runAllManagedModulesForAllRequests="true"/>-->
        <modules>
          <remove name="WebDAVModule" />
        </modules>
        <handlers>
          <remove name="WebDAV" />
        </handlers>
        <directoryBrowse enabled="true" />
        <httpProtocol>
          <customHeaders>
            <add name="Access-Control-Allow-Origin" value="*"/>
            <add name="Access-Control-Allow-Headers" value="Content-Type"/>
            <add name="Access-Control-Allow-Methods" value="GET, POST, PUT, DELETE, OPTIONS"/>
            <add name="Access-Control-Request-Headers:" value="*" />
            <add name="Access-Control-Request-Method:" value="*" />
          </customHeaders>
        </httpProtocol>
        <!--
            To browse web app root directory during debugging, set the value below to true.
            Set to false before deployment to avoid disclosing web app folder information.
          -->
        <!--<directoryBrowse enabled="true"/>-->
      </system.webServer>
    </configuration>
    Thanks,
    Swathi

    Right on - I have done that a number of times.

  • Exposing other classes (as well as the EF Model) from a WCF Service?

    Hello,
    I have been following some of the tutorials on the Oracle.Net development centre, such as creating a Data Service for the Entity framework:-
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/dotnet/EntityFrameworkWCF/WCFEntityFramework.htm
    This is good - However, I have written a number of extra classes as part of my model i.e. buddy classes for data annotations/meta data (for strongly typed views) and various extra classes that contain LINQ statements looking at the EF Entity classes.
    Can anyone explain how I go about moving all my classes to the WCF data service, such as above ?
    I tried to alter the *.svc file (as created in above example like) to include more than one entity, but it's not keen:-
    E.g.
    public class TasService : DataService < TasEntities >  *: DataService < OrganisationService>* //<-- this bit doesn't work
          public static void InitializeService(DataServiceConfiguration config)
                config.SetEntitySetAccessRule("*", EntitySetRights.All);
                config.DataServiceBehavior.MaxProtocolVersion = DataServiceProtocolVersion.V2;
    }I can find other example of creating a WCF library and hosting out services with I.P addresses stored in an App.config file, but the above example only stored a web.config file.
    Thus, I have tried created a WCF Data Service and WCF Library, but still cannot successfully expose all my model classes + Entity Framework Model.
    Does anyone have a solid example OR has anyone managed to achieve this task ? Someone must be in the know... please don't hold out on us mere mortals ......
    Thanks,
    Graeme
    Edited by: user4487499 on 21-Apr-2011 03:24
    Edited by: user4487499 on 21-Apr-2011 03:25

    Do you have any mapping done on the response message from the WCF service . ?
    If so Better to copy the suspended message coming from the WCF service and validate against the custom response Schema you have created.
    Note : You can try running fiddler tool to check the response from from the web service incase of failure.
    Also try logging the message in the event viewer or any debug tool.
    Thanks
    Abhishek

  • Cannot connect to service manager portal wcf service

    I only get this error on one request offering.  Everything else on the portal works fine.  This RO worked until I update one of the user prompts.  The prompt is a query result that is configured to return domain users only of display name
    equals the users that I have listed.  I have about 40 users display names listed under the criteria.  I didnt set token, do I have to? 
    What else might effect the WCF service for only one item on the portal?
    - Get on the floor, do that dinosaur

    Well I looked in the silverlight trace log which said:
    The maximum string content length quota (24576) has been exceeded while reading XML data. This quota may be increased by changing the MaxStringContentLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader.'.  Please
    see InnerException for more details.
    I'm not sure how to increase this though.  
    - Get on the floor, do that dinosaur

  • How to send EDI from WCF adapter to WCF service

    Hi,
    1. I have created an orchestration which is published as WCF service.
    2. I have created an orchestration which receives an XML from WCF client and process it.
    3. I have created a WCF dynamic send port.
    Problem: From this dynamic send port, I want to send EDI file to a WCF service that will receive this EDI file. How can I achieve this. Below are my concerns:
    -> For creating this WCF service, I need to know the contract of Biztalk WCF adapter which sends EDI file.
    Thanks ...

    Hi,
    How can we create WCF service to receive the EDI sent by the BTS. What contract should be used for receiving this EDI file in WCF service.
    What changes have to be made in the orchestrations to send the EDI file to the WCF send Dynamic port. Below is the code i am using.
    EDIOutboundPort(Microsoft.XLANGs.BaseTypes.Address)="URL Address";
    EDIOutboundPort(Microsoft.XLANGs.BaseTypes.TransportType)="WCF-basicHttp";
    Please correct me if i am wrong
    Thanks 
    "How can we create WCF service to receive the EDI sent by the BTS. What contract should be used for receiving this EDI file in WCF service" - This is two different questions.
    "How can we create WCF service to receive the EDI sent by the BTS"  - Using BizTalk WCF Services Publishing Wizard, the wizard would ask for the "Create BizTalk receive locations in the following application " for creating
    the receive location for the message published to the exposed WCF service. Through this receive port/location, the service would receive the message.
    In this case, I am not sure why do you want to expose the Orchestration as WCF Service when you want to send message to this Orchestration/WCF service (which after converting from Orch) through another orchestration. You could either use call/start orchestration
    to send message from one to another.
    "What contract should be used for receiving this EDI file in WCF service" - may be this question is not correct. You have created a Orchestration which you exposed as WCF service. So while creating the Orch you know the type of message this Orchestration
    is bound to, so use the same contract. Or as mentioned in my earlier reply, use "Consume WCF wizard" to consume the WCF service which would create the web message for you.
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Determine the customer numbers for which the installations

    Dear All,
    I configured VAR Service Desk on SolMan EhP1 + SPS 20, Everything is good, but I have a problem when run report AI_SC_GET_SAP_CUSTOMER_NUMBERS. It can determine my customer numbers, but have only my installation number in table V_AIINSNRS. There are no any installation number of my customers in table V_AIINSNRS .I need installation number of my customer are included in V_AIINSNRS. Please show me about that. Thank you very much!
    Thanks and Best Regards,
    Tru Hang

    Hello,
    This is the text from the SPRO activity help:
    1.3.9.3.3 Data Transfer from SAP
    Use
    You can copy the following system data from SAP into the System LandscapeMaintenance (SMSY):
    - Name,
    - System number,
    - Installation number
    - Product version.
    All data can be copied from SLD or RFC connection. This is an alternative for service providers who
    have no, or only restricted, connection to their customers via SLD or RFC.
    Requirements
    You have determined or maintained the customer numbers for the systems to be generated.
    Default Settings
    The system automatically generates IBase components, which you need for the Service Desk and Change
    Management scenarios. If you do not want IBase to be generated automatically:
    1. Choose the transaction DNO_CUST04.
    2. Deselect the field: IB_GEN_AUTO (description: Automatic IBase Generation).
    3. Save.
    Activities
    Set Automatic Generation flag
    You can:
    1. Generate all systems per customer number, or
    2. Generate systems per installation number
    Case 1: Flag/check whether all systems with a customer number are to be generated, and maintain the
    maintenance view V_AISAPCUSTNOS. In this case, the system ignores the flag at installation level.
    Case 2:If you select installations for which systems are to be generated, maintain the maintenance view
    V_AIINSNRS.
    Maintain Settings in SMSY_SETUP
    4. Choose: Edit -> Expert Settings.
    5. Enter the value A or N for the option Generate Systems by OSS:
    - A: Systems are only generated if a 3-digit alpha-numeric ID has been specified for the customer
    in maintenance view V_BP_SPC, to distinguish the long names of systems with different
    customer numbers, e.g. a system SOL for the customer SAP would be SOLSAP01.
    - N: New systems are numbered sequentially when they are generated. System SOL would be
    SOL00001.
    6. Save.
    Data is created by background job REFRESH_ADMIN_DATA_FROM_SUPPORT , which
    should be scheduled regularly. If you want to copy the data immediately, you can schedule it
    immediately . Check in the job log of transaction SM37 that it ran successfully.
    Note: The user under which the job runs must be in the table AISUSER , with authorization for
    system data maintenance in the SAP Support Portal.
    I hope this information helps.
    Best regards, 
    Miguel Ariñ

  • Provide WCF service caller to a SQL server that is access by a technical user account

    Hi,
    we have a WCF Service that is hosted in a windows service and access a SQL Server database. The database is accessed with the technical user the windows service runs with. That means nevertheless of the WCF service caller, the database is always
    accessed in context of the technical user. Furthermore some company users access the database via the SQL Management Studio and sign in via Windows Authentication.
    The management now wants us to provide a change log functionality. In case data is changed by the WCF service the caller should be logged. In case of using the SQL Management Studio the domain-user's account should be logged.
    Because both ways must be supported we want to use a table trigge to monitor insert/update/delete ddl events, but we got struggled by passing the WCF service caller to the SQL server database.
    Does anyone have a good idea for the issue? Any advice is appreciated.
    Kind regards,
    Christian

    Do you know a way to use the 'SET CONTEXT_INFO' expression wth LINQ2SQL?
    This is a T-SQL forum. There are other forms for LINQ.
    No, I don't know LINQ. Then again, why on earth would you? This would be a command you would submit when the WCF connects. Ah, of course, you are only connecting when you submit a query. Which you do through LINQ. Oh well. Could be an incitement to move
    away from LINQ maybe? :-)
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Secured WCF Service Visual Studio Template

    I'm looking for a WCF template that has WSSecurity features already added to it. Does such a template exist?
    Thanks!

    Hi Andrew Greenwright,
    It will be better if you can tell us what Visual Studio version that you are using and which WSSecurity features that you want to implement. For example we can use the WCF Security Token Service and Claims-Aware WCF Service template in Visual Studio 2010:
    In Visual Studio 2012, we can download the
    Identity and Access Tool to enable
    Windows Identity Foundation (WIF) on WCF Services for security.
    In Visual Studio 2013, the
    Windows Identity Foundation (WIF) has been fully integrated into the .NET Framework 4.5.
    Best Regards,
    Amy Peng
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • InsufficientMemoryException while sending large byte array in WCF Service callback

    Hi
    I have a datacontract with a large byte array that is passed by the WCF Service back to the client using a callback contract.
    Until the byte array size remains below 25-30 MB, it is passed OK, but as soon as it exceeds that, an InsufficientMemoryException is thrown on the service side. I have set the max message sizes at 100 MB and using MTOM Encoder.
    I am using WSDualHTTPBinding with sessions and message security - hence streaming is not an option. I know chunking channels are an option, but I want to try to tune the service and client to maximize the byte array size which can be sent over a normal channel.
    Kindly advise how to tune settings to get to around 100 MB byte array size.
    Binding section of web.config is given below. Same settings for sizes are used on client.
    Thanks
    Abhishek
     <wsDualHttpBinding>
            <binding name="WSHttpBinding_IService" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false"
    transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="100000000" maxReceivedMessageSize="100000000" messageEncoding="Mtom" textEncoding="utf-8" useDefaultWebProxy="true">
              <readerQuotas maxArrayLength="100000000"  />
              <security mode="Message">
                <message clientCredentialType="Certificate" algorithmSuite="Default"  />
              </security>
            </binding>
          </wsDualHttpBinding>

    Hi abhisinghal21,
    >>InsufficientMemoryException while sending large byte array in WCF Service callback
    First please try to increase the timeout value in the both client and service side to see if it works:
    closeTimeout="00:10:00" openTimeout="00:10:00"
    receiveTimeout="00:10:00" sendTimeout="00:10:00"
    Then since you do not want to the use the Chunking option to help you, maybe you try to change the wsDualHttpBinding to use the binding which supports the streaming mode and supports callback.
    In streaming transfer mode, the receiver can begin to process the message before it is completely delivered. And the streaming mode is useful when the information that is passed is lengthy and can be processed serially. Streaming mode is also useful when the
    message is too large to be entirely buffered. So it will be better for you to use the streamed mode.
    For more information, please try to check:
    #How to: Enable Streaming:
    http://msdn.microsoft.com/en-us/library/ms789010(v=vs.110).aspx .
    Best Regards,
    Amy Peng
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Custom WCF Service Deployment

    Hi,
    We have tried to create the document set using REST API and not able to create the document set using REST API. Finally we have decided to use the Custom WCF service to create the document set. We have three approaches to deploying the WCF service.
    1. IIS hosted service.
    2. Inside the Layouts folder deployment
    3. ISAPI folder deployment.
    Which location is good to deploy the custom WCF service ?. I am going to call this service from java application to create the document set.
    Thank you,
    Mylsamy

    Hi.
    You can use CKSDEV visual studio extension to create your own WCF service.
    The service is created under the 
    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI\yourservice
    folder
    Regards,
    Bubu
    http://zsvipullo.blogspot.it
    Please mark my answer if it helped you, I would greatly appreciate it.

Maybe you are looking for