Search Posts

Category: wcf

Wcf Rest Service Method Returns Errors Unable to Cast Object Of Type

I am consuming Wcf Rest Service into Angular JS Web Application. I am posting multi request from angular js application to wcf . When i post the request to wcf service i got following errors in console application . The server encountered an error processing the request. The exception message is ‘Unable to cast object of type ‘System.Data.Entity.Infrastructure.DbQuery`1[System.String]’ to type ‘System.IConvertible’.’. See server logs for more details. The exception stack trace is: Here is the […]

Angular js application shows Syntax Error

I am consuming wcf service into angular js application . I am trying to invoke multi request from angular js application to wcf service . But the problem is when i run the application i got following errors in google chrome console windows . Uncaught SyntaxError: missing ) after argument list Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.6.5/$injector/modulerr? Here is the script code . ///// <reference path=”../angular.min.js” /> var app = angular.module(“WebClientModule”, []) .controller(‘Web_Client_Controller’, [“$scope”, ‘myService’, function ($scope, […]

Angualr JS Application Failed to Return Expected Error Message

I am consuming wcf rest service into angular js application .First I am checking username in database . If the username name is exist then i want to display message in angular js web application is username name is exist please choose other username .If username is not exist then i want to insert the record into database and its working fine. But problem is when i click the submit button its always display message […]

Angular Application Data Binding is Not Working

I am consuming wcf rest service into angular js application . I am trying to get account information based on account number . but the problem is its displaying text Account_Type three times then showing the values . Here is the method code . public string AccountDetails(string Account_Number) { var accountNumber = int.Parse(Account_Number);//It could be better to use TryParse using (HalifaxDatabaseEntities context = new HalifaxDatabaseEntities()) { var inOut = context.Current_Account_Deposit.Where(x => x.Account_Number == accountNumber).Select(w => […]

The Linq Query Returns Errors

I am consuming wcf rest service into angular js application . I am joining three tables records into a single record and displaying it in web application . I want when i click the button with account number it should returns user account information like account number , Money In ,Money Out ,Date and Account Balance etc . But i got following errors in google chrome network tab .. The server encountered an error processing […]

$http get does not throw success or error in AngularJS [duplicate]

This question already has an answer here: Why are angular $http success/error methods deprecated? Removed from v1.6? 2 answers The below is the declaration of WCF RESTful service for GET [OperationContract] [WebGet(UriTemplate= “MemberSearch/{MemberName}”, ResponseFormat=WebMessageFormat.Json,RequestFormat=WebMessageFormat.Json,BodyStyle=WebMessageBodyStyle.Wrapped)] string MemberSearch(string MemberName); The below is the RESTful Service I have created public string MemberSearch(string MemberName) { string MemberId = string.Empty; string strSqlConn = string.Empty; SqlConnection sqlCon = new SqlConnection(ConfigurationManager.ConnectionStrings[“sqlCon”].ConnectionString); sqlCon.Open(); SqlCommand sqlCom = new SqlCommand(“Select MemberId From Member Where MemberName […]

Linq Query Unable to return Expected Result in Wcf service with Angular JS Application

I am consuming wcf rest service into Angular JS Application .I have two table named Current_Account_Deposit and Current_Account_Withdraw.I am joining two tables records into single record and displaying the records in angular js application.This is account holder transaction record like Money deposit and withdraw. When I have record for both table ,its able to retrieve but if i have only Current_Account_Withdraw record in database ,its do not display anything. Here is the Interface. [OperationContract] [WebInvoke(Method […]

Angular JS Application Get Method Return 404 Not Found With Wcf Service

I am developing wcf rest service and i am consuming it into angular js application . I am trying to retrieve a user account information based on account number. When i invoke the method form local host with account number i got the data back from sql database in JSON format. But when i try to invoke the method from angular js application i got following errors in Google chrome Console Window and its not […]

Angular JS Application Data Binding Failed to Display the Data

I am consuming wcf rest service into angular js application. I am trying to display single record in angular js application based on Account Holder Last Name . when the post the value to wcf service and its receive the values .Its check the values in ado.net code whether the values is valid or invalid . After checking the values ,its able to retrieve Account Holder information in Google chrome network tap response section. But […]

Angular JS Is Not Displaying Data with Wcf Rest Service

I am consuming wcf Rest Service into Angular JS Appplication . My wcf service is working fine but the problem is when i enter the text and then click button to display that particular record , its not displaying anythings . In Google Chrome Network Tab the record is display correctly . Here is my Interface . [OperationContract] [WebInvoke(Method = “GET”, RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, UriTemplate = “/GetCustomers/{Account_Holder_Last_Name}”)] string GetCustomers(string Account_Holder_Last_Name); Here is […]

Next Page »