Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Using .NET Interop in Dexterity

(0) ShareShare
ReportReport
Posted on by

I'm trying to use .NET Interop in Dexterity and am unable to access certain namespaces.  In particular, I need to use the System.Net.Mail namespace.  This namespace is contained in the System.Net.dll, which I've added to my library, but I get errors when I try to declare local variables that reference the namespace. I'm not sure what else I need to do.  As a work-around, I wrote a .dll and reference that namespace, but I'd prefer to not have to resort to that. 

Here some sample code:

using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Net;

in string sLogin,
sPassword,
sDomain,
sServer;
in integer iPort;


local System.Net.Mail.MailMessage message;

*This post is locked for comments

  • Community Member Profile Picture
    on at
    RE: Using .NET Interop in Dexterity

    Saw that before posting. using statements aren't working for all namespaces.

  • Suggested answer
    Almas Mahfooz Profile Picture
    11,009 User Group Leader on at

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Almas Mahfooz Profile Picture

Almas Mahfooz 3 User Group Leader

Featured topics

Product updates

Dynamics 365 release plans