.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

WCF Newbie

Posted By:      Posted Date: October 07, 2010    Points: 0   Category :WCF

Sorry for bad english

I use WCF for cummunication between server and client. Everything works well exept for 1 method, wich returns me and exception message "The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state."...

How can I have a more explicit message ?

View Complete Post

More Related Resource Links

connection string question from a newbie


when publishing  in the webmatrix dialogue it asks for "destination connection string" for my "database.mdf"

I was not sure what it was so I pasted this from my web.config file :

Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\database.mdf;Integrated Security=True;User Instance=True

it all published ok, but wont run, so I guess it has somthing to do with this connection string or some kind of configuration issue.

My question is this, What should go in the field for "Destination connection string"

newbie needs help with textbox


I have a textbox that a user is going to use to enter search information.  when the page loads, "search Phrase" will already be inside the box...my question is how do i make it so this text is already selected. 

 document.getIdFromElement("Textbox1").select();                   i've been told to use this java script but where do I put it and with what syntax.  also do i need to put page1. before the rest of it.  i am extremely new to this so please act like you are answering to a small child who needs concise directions.


thank you very much in advance

Total newbie question: Calling jQuery in an UpdatePanel?



Please forgive this ignorant question - I've used ASP.NET AJAX a good deal but I'm new to jQuery.  Specifically, is it possible to call or create jQuery events on the fly via an UpdatePanel?  For example, calling a jQuery modal or animating a Label (or <div> contained Literal), etc.

If anyone has any advice or could point me to some easy tutorials on mixing ASP.NET AJAX and jQuery, I'd greatly appreciate it. 



[newbie] How to return a data record from a webservice (wsdl)?



vs2010, .NET 4.0

I have a webmethod which I want to return a data record (for example: name, surename, address, age, zip etc)

I wonder how to accomplish this. I think the solution is about creating an object which contains all the records serialized. And then the webmethod returns this serialized object. I'm not 100% sure how to accomplish this, if some of you good provide me with some tips, tutorial or link to an article explaining it, that would be great

Browsing through an xml file [newbie]

I've setup this <asp:FormView> to read from an XML file which I created, however I noted that although the .xml file has two <article> </article> tags, the data control (FormView) only displays the first item when enabling pages.Is this a bug or am I missing something out? Source code available here. NOTES 1. XML file is valid according to this page., although, I still have to find out an appropriate XSLT format. Ideas?

SSAS newbie question

Hi Guys, I come from a SAP BW background, and i was wondering if i need to learn SSIS and SSRS together with SSAS in order to get a job? A insight into the current job market would also be helpfful. Thanks!

C# newbie stuck - trying to access column data in a SharePoint list in an SSIS script task

Hello, I'm sure this is the simplest question but I can't figure it out, even with Google's help. I am trying to stumble through some C# code in an SSIS script task and I am frustrated that I can't figure out how to do the easiest things.  I eventually want to find data in a column,and then use another list as a lookup to replace that value with another where the existing value matches a value in the lookup list.  So, the data in my (multiple choice) column might be "apples; bananas" and in another list I have a row that contains two columns, the first holding the value "Apples" and the second containing "Red Delicious" and my original column should read: "Red Delicious; bananas." But, alas, I can't even figure out how to see the data that is in a column. Here is my code: /*<br/> Microsoft SQL Server Integration Services Script Task<br/> Write scripts using Microsoft Visual C# 2008.<br/> The ScriptMain is the entry point class of the script.<br/> */<br/> <br/> using System;<br/> using System.Data;<br/> using Microsoft.SharePoint;<br/> using Microsoft.SqlServer.Dts.Runtime;<br/> using System.Windows.Forms;<br/> using Microsoft.SharePoint.Utilities;<br/> <br/> namespace ST_08becda4c05c49cd9f30ea76110076cd.csproj<br/> {<br/> [

jQuery Flexigrid Plugin - newbie help

HiCan anyone support my attempt to use this jQuery plugin, or know where I can go to get some decent support? I am using a .ashx generic handler and returning xml data but the data won't show up in the html page, any ideas please ????<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script type="text/javascript" src="flexigrid/flexigrid.pack.js"></script> <link rel="Stylesheet" href="flexigrid/style.css" media="screen" /> <script type="text/javascript"> $("document").ready(function () { $("#flex1").flexigrid({ url: 'dac.ashx', dataType: 'xml', colModel: [ { display: 'ISO', name: 'iso', width: 40, sortable: true, align: 'center' }, { display: 'Name', name: 'name', width: 180, sortable: true, align: 'left' }, { display: 'Printable Name', name: 'printable_name', width: 12

Newbie-Can I remove older version of .NET Framework

Hey,Got different versions on my Windows XP; 1.12.0 Service Pack 22.0 SP 2 - Language Pack3.0 SP 23.0 SP 2 - Language Pack3.5 SP 11- For obvious reasons these take a lot of space, can I remove any of them and which?  2- Are they a built up or separate?  3- If I can only use the latest 3.5 SP1;  is there a language pack with it?4- I have not been able to update anything for over a year.  It keeps telling me, Windows has some new installs for me but won't download properly.  Sorry I can't tell you the specific error it gives me, but I believe it has to do with a previous version as it is related to a Service Pack 2.  Sorry I know it's vague, but it takes for ever before I get the error message.  If you can't give me any idea, I'll try it again and post more info.In the meantime I'd appreciate any help you people can give me.Sunshine

Dynamically adding User Controls -- newbie question!

I am new to ASP.NET (coming from ColdFusion, thank goodness I'm away from that!).  And I am have THE hardest time understanding how to work with forms in ASP.NET.  Here's what I am doing:Dynamically add User Controls to a PlaceHolder based on some int value (which currently is passed in a HiddenField).Fire an event if the WebControls inside of the User Control change, then handle that event in the Main Page (i.e. save the input to DB)When the user clicks the "Next/Continue" button, the next controls for the next page are loaded.And I guess maybe I just can't seem to get how things work in ASP.NET, because I am really struggling with the general idea of how ASP.NET flows.  Should I be dynamically loading the controls in Page_Init, or Page_Load?  Or should I load the controls when the buttonclick event is fired?Do I have to add the axCtrl.OnDataChange += new EventHandler(HandleAxControlDataChange); line on Page_Load?  Or should I put this in When I first load the UserControl, I need to initialize some WebControls within the UserContorl.  Is there a way to know if I have loaded new user controls into my placeholder?  I can't use Page.IsPostback, because after the first page, every page is a postback from the buttonclick.Any help for this confused newbie would be GREATLY appreciated!!Here's what I have: pu

Newbie tring to use alert with master page - nothing happens

 I have an aspx content page that has btnCreateorUpdate. When clicked I want  to show an alert box. Unfortunatelythe alert box doesn't appear . I don't know whether the problem is that the button is runat="server", or that the button is in an update panel  or something else. I have my master page and content page markup below. Thanks<%@ Page Title="Deal Milestones" Language="VB" MasterPageFile="~/Protected/ThreeColLiquid.master" AutoEventWireup="false" EnableViewState="true" CodeFile="DealMilestones.aspx.vb" Inherits="Protected_DealMilestones" EnableTheming="true" Theme="PrimaryTheme" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> <%@ MasterType virtualPath="~/protected/ThreeColLiquid.master"%> <asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder_Head" Runat="Server"> <script type="text/javascript"> $(document).ready(function() { $("btnCreateorEdit").click(function() { alert("Hello world!"); }); }); </script> </asp:Conten

Using sproc as data source (newbie).

I've succesfully displayed data from my legacy database using a sproc to implement all the business rules behind the query. Some of the data, though, is based on subqueries and is not in the base table displayed in the default list of tables. For example, order totals, address logic, etc. When I go to edit or display details from a selected record, I receive Invalid Column name errors on the generated fields. Any quick solutions or pointers to examples on how to handle this scenario? Thanks. 

newbie in Java .... java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver

Hi All, I am new to java, trying to learn and understand. I downloaded the 2008 R2 SQL server Express, Downloaded the JDBC jar file, unzipped it. and set class_path accordingly in environmental variables. C:\Program Files\Microsoft SQL Server JDBC Driver\sqljdbc_3.0\enu\sqljdbc.jar, C:\Program Files\Microsoft SQL Server JDBC Driver\sqljdbc_3.0\enu\sqljdbc4.jar Also I have added the sqljdbc_auth.dll in the system32 file as most of the content suggested. I tried running a simple program that microsoft has provided . I have not advanced to programs such as eclipse and others, I am using a simple textpad to write and see if it connects the way it is supposed to . I hope you can guide me through the process. My TCP/IP is enabled, dynamic ip is left to blank, I can successfully telnet to 1433 port . Am I doing something wrong or am I missing a step somewhere   import java.*; public class Connect{      private java.sql.Connection  con = null;      private final String url = "jdbc:microsoft:sqlserver://";      private final String serverName= "localhost";      private final String portNumber = "1433";      private final String databaseName= "Banking";      private final String userName = "sa";   &nb

MDX newbie query problem

Hi,   I have following measures - Period - NumberOfPeriods - Amount   I want to add a calculated member to a cube where I get the sum of amount for all entries with "Number of Periods" = Period. Is there a way to do that?

newbie need your help

1. I have an c# solution file (x.sln) called TestCallFunction 2. in this x.sln i have to folders called Calculate and Take 3. in the Calculate folder i have a file called Execute which has a class called Cal. (this class is to to the calculation) ie.  using System; using TakeX; using TakeY; namespace Calculate { Class Cal { static int Main() {console.WriteLine("x + y is " + (XValue.XNum() + YValue.YNum())); return 0; } } }   4. in the Take folder i have two files which called TakeX and TakeY, respectively; ie. (in the TakeX i have-- similar to TakeY) using system; namespace TakeX { class XValue { public static int XNum() { return 100; } } } now, this small program works fine. but, because now i want to have the result publish to a website, so i added an asp.net website. the folder holding the website is sitting in the same directory which contain the x.sln file. 5. i added a Label and a Button in the x.aspx file and double click on the buttion to add the following line to x.aspx.cs label1.Text ="x + y is : " + (XValue.XNum() + YValue.YNum());   i also added using TakeX; using TakeY; using Execute;   the problem: the program give error during compiling error is: The type or namespace name 'TakeX' could not be found (are you missing a using directive or an assembly reference? and same message for&nb

Newbie question about embedding videos, etc.

I know how to use the web part to insert a video which works just fine. What I don't know is how I can configure/design a page which I can display several videos with explanatory texts next to them, much like this page:  http://sharepoint.microsoft.com/en-us/Pages/Videos.aspx I know it's a total newbie question, but I guess I gotta start somewhere!

Newbie question...

Hi Guys i  need to ask a question about dimensions and cubes: Does the cube only consist of the fact table, or does it consist of the dimensions and the fact table? Thanks in advance
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