Hi, I have a requirement to consume a wcf service through a Visual C++ 6.0 application. 1) I have created a Wcf C# based service. 2) Also created a C# dll application which is used as a bridge between the Service and the consumer by adding this as a typed wrapper class library to the C++ app. And also added with the Service Reference.So that it can call the functions from the Service. 3) And the consumer is written in C++ which is calling the functions of the C# dll (Class Library project)project. Am able to access the functions but it is failing in creating the Service object and the error messase is given as "unable to connect to the remote server". Any early replies will be heartly appreciated. Many thanks in advance. regards Sajid.
Sayed Sajid
Posts
-
CONSUMING WCF WITH COM+(VISUAL STUDIO 6.0 (C++)) -
Using Dynamic predicates (Linq)Hi, This is my linq query, I wanted this query to dynamilcally fetch the fields mentioned after select{----------------------}; var res1 = from tbltrans in ctx.tblTransferDatas join tblemp in ctx.tblEmployees on tbltrans.EmployeeID equals tblemp.EmployeeID join tbldpt in ctx.tblDepts on tblemp.DeptID equals tbldpt.DeptID join tbldiv in ctx.tblDivisions on tbldpt.DivisionID equals tbldiv.DivisionID join tblreg in ctx.tblRegions on tbldiv.RegionID equals tblreg.RegionID join sites in ctx.tblSites on tbltrans.Site_No equals sites.Site_No join ters in ctx.tblTerminals on tbltrans.Ter_No equals ters.TerNo select new { tbltrans.TransferData_ID, tbltrans.ActionDate, tbltrans.CardSnr, tbltrans.Updated_to_Card_By_CP, tbltrans.Updated_to_Card_By_Ter, tbltrans.Deleted_By_CP, tbltrans.SiteTer_Type, tbltrans.Site_No, tbltrans.Ter_No, tblemp.BadgeNo, tblemp.FullName , tbldpt.DeptID, Dept = tblreg.RegionName + "/" + tbldiv.DivisionName + "/" + tbldpt.DeptName, sites.Site_Name, ters.Terminal_Name }; How to write and add predicates to the main query. I wanted to add a dynamic predicate before select,I would appreciate any early replies. Many thanks in advance. regards Sajid
-
[Message Deleted]Parvez, I found this solution, thanks. Apart try to help me in the new message I posted. regards Sajid
-
Dynamic use of Restriction Operator in a linq queryHi, This is my linq query, I wanted this query to dynamilcally fetch the fields mentioned after select{----------------------};
var res1 = from tbltrans in ctx.tblTransferDatas join tblemp in ctx.tblEmployees on tbltrans.EmployeeID equals tblemp.EmployeeID join tbldpt in ctx.tblDepts on tblemp.DeptID equals tbldpt.DeptID join tbldiv in ctx.tblDivisions on tbldpt.DivisionID equals tbldiv.DivisionID join tblreg in ctx.tblRegions on tbldiv.RegionID equals tblreg.RegionID join sites in ctx.tblSites on tbltrans.Site_No equals sites.Site_No join ters in ctx.tblTerminals on tbltrans.Ter_No equals ters.TerNo select new { tbltrans.TransferData_ID, tbltrans.ActionDate, tbltrans.CardSnr, tbltrans.Updated_to_Card_By_CP, tbltrans.Updated_to_Card_By_Ter, tbltrans.Deleted_By_CP, tbltrans.SiteTer_Type, tbltrans.Site_No, tbltrans.Ter_No, tblemp.BadgeNo, tblemp.FullName , tbldpt.DeptID, Dept = tblreg.RegionName + "/" + tbldiv.DivisionName + "/" + tbldpt.DeptName, sites.Site_Name, ters.Terminal_Name };
I wanted to add a dynamic where clause before select,I would appreciate any early replies. Many thanks in advance. regards Sajid -
[Message Deleted][Message Deleted]
-
LinqMr Chris, Thanks for your answer. What would be the appropiate way of returning var type? This is my intension to do actually. public var GetSites() { SiteTerDBDataContext ctx = new SiteTerDBDataContext(); ctx.Connection.ConnectionString = ConfigurationManager.ConnectionStrings["DB_ConnectionString"].ConnectionString; var res = from sites in ctx.tblSites select sites; return res; } Many thanks. Sajid
-
LinqHi, Am writing a function which should return a dataset to bind to a grid control. It is a linq query, Can I type cast var type variable to DataSet and return it. Here is my funtion below. public DataSet GetSites() { SiteTerDBDataContext ctx = new SiteTerDBDataContext(); ctx.Connection.ConnectionString = ConfigurationManager.ConnectionStrings["DB_ConnectionString"].ConnectionString; var res = from sites in ctx.tblSites select sites; return (DataSet)res; } Any early replies will be appreciated. regards Sajid
-
Avoid tables in Asp.net 3.5 UIHi Abhijet, Thanks for the answer. Am not able to align my controls in the table columns. Apart am also not able to select multiple controls and align them. Anyway am working on a intranet application. But still I would prefer to work avoiding tables. I would be thankfull if you elaborate the DIV format. Many thanks in advance. regards Sajid Electronia Co Ltd, Alkhobar - KSA
-
Avoid tables in Asp.net 3.5 UIHi everybody, I just wanted to know, how to avoid using tables in asp.net 3.5 UI. There must an option (AutoPositon property) to drag and drop controls at any part of the design page. Any early replies will be heartly appreciated. Many thanks in advance. regards Sajid Electronia Co ltd, Alkhobar,KSA
-
Visual Studio 2008 IDEHi, Am not able to select multiple controls on my web form to align or resize. Is there any form setting for this problem. Many thanks in advance. regards, Sajid Electronia pvt ltd.
-
Creating mdb file at runtimeHello Am writing a application using C# (studio 2008) which is retreiving the logs from a Smartcard Terminal. As I wanted to create a empty mdb file at run time if it does not exist at a specific location. I kindly expect some stuff to solve this query. regards Sayed Sajid :)