.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

C++ call From 64 bit Service

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :WPF

i have not sure about where to post it .

I have a C++ dll . I have made a mixed mode C++ proxy which have clr:oldsyntax code .i am using this proxy dll in  C# window service. i have both 32 bit and 64 bit configuration. when i run 32 bit service it run smoothly but when i run 64 bit service following error occurred .

Here is some code detail

i have a class

class UNMANAGED_API CEuPipeClient


void GetDSN(WString &strFileName,WString &strDSN);


Public __gc class EuOpProxyObject :public Marshalbyrefobject, public IEuobridge


CEupipeClient __nogc *m_pEuopClient;

        m_pEuOpClient    = __nogc new CEuPipeClient();       

               delete m_pEuOpClient;       

String* EuOpProxyObject::GetDSN(String* strElfName)


View Complete Post

More Related Resource Links

Invalid web service call, missing value for parameter: \u0027prefixo\u0027 (AutoCompleteExtender)


Good afternoon.

I'm trying to put an AutoCompleteExtender working, but i'm having an error, that i discovered with Fiddler, that is the reason that the autocomplete doesn't work:

> **{"Message":"Invalid web service call,
> missing value for parameter:
> \u0027prefixo\u0027."**,"StackTrace":"
> at
> System.Web.Script.Services.WebServiceMethodData.CallMethod(Object
> target, IDictionary`2 parameters)\r\n
> at
> System.Web.Script.Services.WebServiceMethodData.CallMethodFromRawParams(Object
> target, IDictionary`2 parameters)\r\n
> at
> System.Web.Script.Services.RestHandler.InvokeMethod(HttpContext
> context, WebServiceMethodData
> methodData, IDictionary`2
> rawParams)\r\n at
> System.Web.Script.Services.RestHandler.ExecuteWebServiceCall(HttpContext
> context, WebServiceMethodData
> methodData)","ExceptionType":"System.InvalidOperationException"}

This is the webservice code:

    Imports System.Web.Services
    Imports System.Web.Services.Protocols
    Imports System.ComponentModel
    Imports GcpBE750
    Imports ErpBS750
    Imports StdBE750
    ' To allow this Web Service to be called fro

Trying to call an asmx web service from a test project

I am trying to create a proxy for an asmx web service. The only thing I find in Visual Studio 2008 is a service reference. How do I call an asmx web service with a service reference? Certified Geek. Professional Data dude.

Unable to call an asmx web service using windows authentication from a Service workflow

Hello, I need to use an existing asmx service from inside my service workflow and I am unable to call it. This asmx service is hosted in a web application with iis set to windows authentication, anonymous is not allowed. I need to send the authentication, only way seems too be using transport for basicHttpBindings. Every time I try to call the service I get an error saying that there is nothing listening to the url of the service generated automatically by VS when I added the Service Reference ? my web config <configuration> <configSections> </configSections> <system.web> <compilation debug="true" targetFramework="4.0" /> </system.web> <system.serviceModel> <protocolMapping> <add scheme="http" binding="wsHttpBinding" bindingConfiguration="WindowsCreds" /> </protocolMapping> <bindings> <basicHttpBinding> <binding name="UtilitiesSoap" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"

SharePoint ASPX Web Service Call Error

I have developed an ASPX page using VS2005. This page simply queries a SharePoint list through a WSS web service using CAML and takes the results and populates a DataTable and binds it to a DataView. The code works perfect using VS2005 but when I port it over to SharePoint I get the following error.Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.The call stack is as follows:[SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]   System.Security.CodeAccessSecurityEngine.CheckNReturnSO(PermissionToken permToken, CodeAccessPermission demand, StackCrawlMark& stackMark, Int32 unrestrictedOverride, Int32 create) +0   System.Security.CodeAccessSecurityEngine.Assert(CodeAccessPermission cap, StackCrawlMark& stackMark) +79   System.Security.CodeAccessPermission.Assert() +37   Book2Physical.Requests.get_DataSource() +

Issues in GetItemDataSources web service call in 2008 Report Server R2

Hi, I'm using Reporting Services web services endpoint ReportService2005.asmx with 2008 report server R2 and I'm facing some issues in getting the data source names for a report definition using the GetItemDataSources web service. The problem is that the data source names returned are different from the names of the actual data sources on the report server. The report has the following data sources: 0 1 _0 _A Data Source And the names returned by the GetItemDataSources for 2008 report server R2 is: AutoGen_0 AutoGen_1 AutoGen__0 AutoGen__A Data_Source When I make the same calls using a 2005 report server, the names returned are the same as that in the report definition. To summarize, only numeric data source names are changed to "Autogen_<number>"(eg. Autogen_0), data source names beginning with "_" are changed to "Autogen_<data source name>"(eg. AutoGen__A)  and spaces are replaced by an "_".   What is the problem for the data source names returned for 2008 report server R2? Or has there been any change in the way in which report server stores the data source names? Thanks, Kulbhushan Singhal.  

How to call SSIS Package through web service based on ASp.NET using C#

Hi All, How to call SSIS Package through web service based on ASp.NET using C#.   Regards Amit

jQuery Call to Web Service, with Punctuation

Hello everyone! I hope you're all having a nice week so far. I'm trying to call a web service and the passed string may have punctuation, depending on what the user types in. I currently have an HTML textbox and a jQuery call to the .NET web service.  I definitely think the string with punctuation fails because jQuery will send the string wrong, so I tried a few different javascript encoding functions I could find.  I was never able to encode it successfully and decode it in .NET, saving the string with punctuation.   Basically I have a textbox that a user can update their status in.  If the user wants to use punctuation, I'd like them to be able to.  How can I accomplish this with jQuery and .NET?

Parameter names ending with "specified" added to web service method call

Hello,I am new to WCF. I created a wcf web service and the generated web method exposed by wcf has some additional boolean parameters with names that end with "Specified".I am trying to understand why are these additional parameters necessary and how to get rid of them. Thanks!David

Call specific web service method by matching string value to method name?

I am getting a value in string format.  Then, I call a web service and try to dynamically call the method that corresponds to the string's value.  It doesn't work.  Any ideas?              Dim methodname As String = "getquotes"                 Dim track As localhost.Tracker = New localhost.Tracker()                 'the below line is where it fails                 track.methodname(parameter)               

Send/open timeouts on WAS-hosted WCF service with named pipe orTCP binding, per-call instancing

We have a client that sends requests to a per-call WCF service (WAS hosted, NP binding, same machine) in a loop. The WCF service calls an external EXE to process requests. The operations on the service can take a few seconds, or a few hours. To combat this, we have sendTimeout=00:05:00, receiveTimeout=00:05:00 and a built-in circuit-breaker on the service that kills the external process after 00:05:00. Any service-side errors are returned to the client as FaultExceptions.  On the client, FaultExceptions are logged and the client proxy is aborted (proxy.Abort()). The client has configurable multithreading. In this example, it is running 3 threads, each of which creates a proxy, makes a call, and closes the proxy (or aborts it if an exception was received). Since the service is instanced as per-call, and it never receives more than 3 simultaneous calls (each of which being followed by a .Close() or .Abort() on the proxy), I would not expect the client to be getting timeouts during the send, but I am. In fact, the send timeouts I am receiving would seem to imply that the WCF service is hitting the default session limit, even though the class is explicitly marked with [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall)]. I put some trace logging on the client and I can see that the timeout is occurring when the proxy is being created. sendTimeout seems to

Fast WCF Service call?



i need to evaluate which DataAccess Strategy threw a WCF Service is the best/fastest.

I created a Service that get Data with linq2sql or with a SqlDataAdapter. But when i call the service from client, on each call the response time is going longer.

Can someone tell me what im doing wrong or have a tip for best practice to SELECT many Rows from a StoredProcedure or View?

Thank you!



    StopWatch stopwatch = new StopWatch();
    private void btn_execute_Click(object sender, RoutedEventArgs e)

      if (radComboBox1.SelectedValue != null)
          case "linq2sql":
            _service.GetDataLing2SqlCompleted += new EventHandler<GetDataLing2SqlCompletedEventArgs>(_service_GetDataLing2SqlCompleted);
          case "dataadapter":
            _service.GetDataDataAdapterCompleted +=new EventHandler<GetDataDataAdapterCompletedEventArgs>(_service_GetDataDataAdapterCompleted);

    void _service_GetDataDataAdapterCompleted(object sender, GetDataDataAdapterCompletedEventArgs e)

Web Service Call Not Working


So I'm still not sure if this is on my side, the service side, or both sides. I have NO idea where the main source of the issue is coming from, but I will try and do my best to explain the steps I have taken and what has happened so far so you guys have all the info you need to bang your head against this with me.

So we have a Web Service class called API.svc that implements one of our classes containing one method. In the API class is where the call goes out to the service, however it seems to be failing before that so I think that the problem is coming locally. Note I said I THINK.

The first time we ran into an error was running the code normally, and testing this after not testing it in a while. The error that came back when we clicked the button that ran through all the calls (eventually needing to hit the service call), was this:

System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Fault Detail is equal to An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose v

SSIS 2005: call WCF web service in ScriptTask (?)


Hi I am a bit of SSIS and WCF newbie...I am working on a SSIS 2005 project and other company writes web service for me to consume.  I use "script task" in SSIS and copy the WSDL-generated proxy file to consume web service..it has been working ok but yesterday I got a new proxy class file from the other company with heading like this:


<System.Diagnostics.DebuggerStepThroughAttribute(), _

     System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", ""), _

     System.Runtime.Serialization.DataContractAttribute(Name:="GetBondTenancy", [Namespace]:="http://xxx.x.xxx.notshown.xxx/")> _

    Partial Public Class GetBondTenancy

        Inherits Object

        Implements System.Runtime.Serialization.IExtensibleDataObject

SSIS complains about not recognizing 'DataContractAttribute' and 'IExtensibleDataObject' but sure it is not just a matter of DLL referencing... is there a way I can consume this Web service?

p.s. Please let me know if you guys require more info....

No Authorisation Header in WCF Service Call


I have developed a WCF Client that calls a Java Webservice which my client have developed. 
In my WCF client, am using basicHttpBinding as shown below:-

<binding name="basicHttpSML" closeTimeout="00:01:00"
                    openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
                    allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
                    maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
                    messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
          <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
              maxBytesPerRead="4096" maxNameTableCharCount="16384" />
          <security mode="None">
            <transport clientCredentialType="None" proxyCredentialType="None"
                realm="" />
            <message clientCredentialType="UserName" algorithmSuite="Default" />

Problem in Routing WCF Service call from another WCF Service

Dear All,
           I have few WCF Services hosted on a remote machine which access my remote DB.
I call the services from my windows application and everything works like a charm.

           Now I want to make the above service calls from machines which will not have internet.
But they will be on LAN where atleast one PC will have a active internet connection.
So I created another WCF service which is hosted on a Windows service on the internet enabled machine. I've added all the service referance in the new service and any service withoute any parameters work fine.

           But when I try to send any data as parameter I get error

"There was an error while trying to serialize parameter http://tempuri.org/:obj. The InnerException message was 'Type 'Consume_Win_WPF_Service.LOginService.ClsMessage' with data contract name 'ClsMessage:http://schemas.datacontract.org/2004/07/LoginService' is not expected. Add any types not known statically to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding them to the list of known types passed to DataContractSerializer.'.  Please see InnerException for more details."

Can anyone tell me what steps I should impliment to en

Can not call two different pagemethods with two service methods??


I am using an AJAX dropdownlist control with two dropdownlist.  Instead of using a webservice to populate the data, I used the pagemethod to populate.  My problem is the second droplist won't populate.  I get a server error, 500 in the droplist.  The first droplist populates fine.

BUT here's the real kicker.  If I reverse the order of the public static function such that GetHelloList2 comes BEFORE GetHelloList1 in the code, then the GetHelloList2 works ...... it just seems like it is only firing one pagemethod event and allowign only one.

Here's my code:


<asp:DropDownList ID="DropDownList1"
  runat="server" Width="285px" />
<br />Second droplist<asp:DropDownList ID="DropDownList2"
  runat="server" Width="285px" />
<br />

<cc1:CascadingDropDown ID="CascadingDropDown1"
  runat="server" Category="Hello3"
  TargetControlID="DropDownList1" ServiceMethod="GetHelloListPageMethod"
  LoadingText="Please wait" PromptText="Select a model">


Spike in time requierd for method call in communicating with WCF Service


Here is my environment:

WCF Service hosted in Windows Service - all the methods in WCF Service are just skeletons; they doesn't do ANYTHING right now, for example
bool DoSomething() {
   return true;
WCF Client - WCF custom client developed by using files generated using svcutil (SDK 6A)
For Service contract - nettcpbinding
For MEX - wsHttpBinding

Both service and client  are/will be on the SAME machine

When I call methods from WCF Client in a tight loop (I am testing with 10,000 calls), for most calls time taken is 0 ms. But, after every 15/20 calls, it takes around 15-20 ms. And since service isn't doing anything, my guess is that it is time required _just_ for method call/communication.

I have also done this for WCFWindowsServiceSample example and it has same issue.

When I was using wsHttpBinding for service contract frequency of spike in method call time was much more as expected.

I am using System.Environment.Tickcount and although it may not be very accurate in determining CPU time, I am interested in total time taken so it should be okay (?)

Has anyone come across this issue? And is there a resolution to it?

If no one has come across this issue, do you have any thoughts on why and how it can be resolved?<
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