.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

"Interface not found" exception in Microsoft's WCF example

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


I'm trying to use .net 4's discovery in WCF. But no matter what I do, I'm getting this not very useful exception:


System.ArgumentException crossed a native/managed boundary
 Message=Interface not found.
    at System.RuntimeTypeHandle.VerifyInterfaceIsImplemented(RuntimeTypeHandle handle, RuntimeTypeHandle interfaceHandle)
    at System.RuntimeType.GetInterfaceMap(Type ifaceType)
    at Microsoft.VisualStudio.Diagnostics.ServiceModelSink.ServiceMethodResolver.ResolveMethodInfo(Type implementationType, MethodInfo contractMethod)
    at Microsoft.VisualStudio.Diagnostics.ServiceModelSink.ServiceMethodResolver..ctor(ContractDescription contract, DispatchRuntime runtime, Message request, InstanceContext instanceContext)
(Stack trace is actually empty.)

Hitting "continue", the program chokes for a few seconds, then continues and dis

View Complete Post

More Related Resource Links

Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown in SharePoint 2


i was trying to access list webservices using visual studio 2010 in SharePoint2010.

i written a simple console app to call getlist method

class Program
    static void Main(string[] args)
        ListsProxy.Lists newlistProxy = new ListsProxy.Lists();
        newlistProxy.Credentials = new System.Net.NetworkCredential("administrator", "Password1");
        XmlNode nodelistitems = newlistProxy.GetListItems("Blist", null, null, null, null, null, null); ( ----> when i debug error it throws exception here?)
        XmlNamespaceManager nsManager = new XmlNamespaceManager(nodelistitems.OwnerDocument.NameTable);
        nsManager.AddNamespace("z", "#RowsetSchema");
        nsManager.AddNamespace("s", "uuid:BDC6E3F0-6DA3-11d1-A2A3-0AA00C14882");
        nsManager.AddNamespace("dt", "uuid:C2F41010-65B3-11d1-A29F-00AA00C14882");
        nsManager.AddNamespace("rs", "urn:schemas-microsoft-com:rowset");
        XmlNodeList nodes = nodelistitems.SelectNodes("rs:data/z:row", nsManager);

        foreach (XmlNode node in nodes)
          string str = node.Attributes["Customer Name"].Value;


Exception in passing strings from .NET to Microsoft Script Control


Hi folks,

I am trying to run VBScripts at runtime using a C# .NET Application. I am able to get data from the VBScript using object arrays and pass data to it using .AddObject(,,) method.

However, in passing different data types to the script, it's behaving in a curious way: It accepts Int32 type objects from .net but when i try to pass .net strings, I need to use the format ObjectName.ToString wherever i reference the string object in my VBScript code.

Here is a sample of the C# code I am using:

//scriptText holds the vb script to run
ScriptControl sc = new ScriptControl();
sc.Language = "VBScript";
sc.AddObject("Argument", "Hi", true);
object obj = sc.Eval("Main()");

Here is a sample VB Script which should work but doesn't:

Function Main()
	'Argument - passed to the VBScript
	Dim Output(1)
	Output(0) = Argument 'Pass the argument
	Main = Output
end Function

and the vb script which works :

Exception with Microsoft.Office.Interop.Outlook method Members.Add



I am using Visual Studio 2.0 and Microsoft Outlook 11.0 Object Library in a windows application.

I am trying to create a distribution list of contacts in outlook and add members to it. Creating a contact or a distribution list works fine, but when I try to user Members.Add method I get the following exception: "An attempt was made to open an unsupported property."

I am using this post as example code :http://support.microsoft.com/kb/178787

This is the detailed exception:

System.Runtime.InteropServices.COMException was unhandled
  Message="An attempt was made to open an unsupported property."
  Source="Microsoft Office Outlook"
       at Microsoft.Office.Interop.Outlook.AddressEntries.Add(String Type, Object Name, Object Address)


I couldn't find any info about this on the web, I would be happy to get some support.



issues with Microsoft.Office.Interop.Excel in asp.net throwing Exception from HRESULT: 0x800A03EC


i m using Microsoft.Office.Interop.Excel in asp.net for Excel file as anEmail attachment .

i get the data and write to Excel but when i try to save like:

oWB.SaveAs(strCurrentDir +strFile, Microsoft.Office.Interop.Excel.


XlFileFormat.xlWorkbookNormal, null,

"Microsoft.SharePoint Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))"



I am adding an item to a list programatically. The credential under which the code runs has contribute permission to list. When the code is executed, it adds the item to the list with below exception. I guess, after adding the item to the list it calls SetListProps method where it throws exception. Any one can help why it is? Because of this my code is not moving ahead as it breaks here because of this exception

Microsoft.SharePoint Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) at Microsoft.SharePoint.SPGlobal.HandleUnauthorizedAccessException(UnauthorizedAccessException ex) at Microsoft.SharePoint.Library.SPRequest.SetListProps(String bstrUrl, String bstrListName, Boolean bMigrate) at Microsoft.SharePoint.SPList.Update(Boolean bFromMigration) at Microsoft.SharePoint.SPList.Update()

However, if I give full control it works fine.

Also, with the same credential, a new item can be added to the list with out any issue from the front end.

Thanks you


Microsoft AJAX CDN

Content delivery networks (CDNs) are composed of "edge cache" servers that are strategically placed around the world at key Internet network points. These "edge cache" servers can be used to cache and deliver all types of content - including images, videos, CSS and JavaScript files.

Using a CDN can significantly improve a website's end-user performance, since it enables browsers to more quickly retrieve and download content. For example, instead of having a browser request for an image traverse all the way across the Internet to your web server to download, a CDN can instead serve the request directly from a nearby "edge cache" server that might only be a single network hop away from your customer (making it return much faster - which makes your pages load quicker).

Microsoft's Collaborative Application Markup Language (CAML) Loop

discovered an interesting error recently while working with Microsoft's Collaborative Application Markup Language (CAML) that, surprisingly, had received no ink. Partly what surprises me about this is that the error may require you to rewrite large sections of your code if you haven't previously considered this SharePoint limitation. I'll start with some context, but first of all the error is:

CLR Integration With Microsoft SQL Server

Transact-SQL provides as much flexibility as possible but, because it is not a real programming language, it has some shortcomings about many issues (memory management, exception handling, debugging, file processing (or streaming), object-orientation (classes), or thread management). Transact-SQL also lacks features of normal libraries (arrays, collections, serialization, expressions, or string manipulations, etc).

MVC architecture in ASP.Net using C# and Microsoft Data Access Application block

The Model-View-Controller (MVC) pattern separates the modeling of the domain, the presentation, and the actions based on user input into three separate classes [Burbeck92]:

Model. The model manages the behavior and data of the application domain, responds to requests for information about its state (usually from the view), and responds to instructions to change state (usually from the controller).

View. The view manages the display of information.

Controller. The controller interprets the mouse and keyboard inputs from the user, informing the model and/or the view to change as appropriate.

Building Layered Web Applications with Microsoft ASP.NET 2.0 - Part 1

"Building Layered Web Applications" that shows you how to build N-Layer applications with Microsoft ASP.NET 2.0. These articles teach you how to design, build and use custom business objects in your web application. The target audience for this series are developers that are ready to make the switch from using SqlDataSource controls to ObjectDataSource controls with custom business objects. Experience with ASP.NET 2 and C# is necessary while some knowledge about object oriented design certainly helps. The design I am going to show you in these articles is a simplified version of a design you would use in a real world application. It doesn't feature all the necessary functionality your application needs, but instead focuses on the underlying concepts.


Every self-respected programmer should include exception handling techniques. Sometimes your application will generate an error. Regardless of who was responsible for this error, the programmer or the user, it is up to the first to include the necessary exception handling techniques to keep his/her program from crashing. The .Net environment provides useful techniques for avoiding disastrous errors such as try-catch statements and user-defined exceptions.

Global Exception Handling with ASP.NET

After your global exception handler has done its work, you'll want to redirect the users of your website to a friendly page that tells them that something has gone wrong, and then provide them with customer support information as well as a link back to your web application's home page.

Microsoft StyleCop: Source Code Analyzer for C#

StyleCop is similar in many ways to Microsoft Code Analysis (specifically FxCop), but there are some important distinctions. FxCop performs its analysis on compiled binaries, while StyleCop analyzes the source code directly. For this reason, FxCop focuses more on the design of the code, while StyleCop focuses on layout, readability and documentation. Most of that information is stripped away during the compilation process, and thus cannot be analyzed by FxCop.

Microsoft SharePoint Online Standard Developer Guide

Developers Guide for SharePoint Online (Standard Offer). Microsoft® Office SharePoint® Online is a collection of Web-based tools and technologies built on Microsoft Office SharePoint Server 2007 that help you store, share, and manage digital information within your company. This white paper describes the customization (or extensibility) capabilities that are supported with the Standard offering of SharePoint Online

SQL Server 2005 Try and Catch Exception Handling

I'm pretty excited to see that there is some real error handling for T-SQL code in SQL Server 2005. It's pretty painful to have your wonderfully architected .NET solution tainted by less-than-VBScript error handling for stored procedures in the database. The big difference being the addition of TRY..CATCH blocks. Let's take a look:

User Defined Functions in Microsoft SQL Server

User Defined Functions are compact pieces of Transact SQL code, which can accept parameters, and return either a value, or a table. They are saved as individual work units, and are created using standard SQL commands. Data transformation and reference value retrieval are common uses for functions. LEFT, the built in function for getting the left part of a string, and GETDATE, used for obtaining the current date and time, are two examples of function use. User Defined Functions enable the developer or DBA to create functions of their own, and save them inside SQL Server.



Dear gentlemen and ladies of the Microsoft Dynamic Data Team,

Mr. Steve Naughton says (and I hope so) that there might be chances that you read the posts published in this forum: I really hope so.

If that were the case then I am formally requesting to you in providing a "real answer" to my question:

I want to customize a dynamic data page (the details one) so I can have access to the data it has been already gathered from the end user UI (details.aspx) and use it to pass this same data to the following controls/pages that I am going to display next time to the end user.

For instance:

I have a screen with different types of data in it: texts, numbers, dates, check boxes, radio buttons and dropdownlists that has been filled with data by the end user. I want now to reset all fields exept the dropdownlist of which I'd like to keep the previously chosen values(the very same thing you do between dropdownlist of List.aspx ad Details.aspx). Even with FoxPro I could do that because data and controls were available there. It was as simple as setting carrying on to true.


I have found my

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