web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

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

I have the same question (0)
  • Suggested answer
    Almas Mahfooz Profile Picture
    11,009 User Group Leader on at
  • Community Member Profile Picture
    on at

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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
mtabor Profile Picture

mtabor 1

#2
Victoria Yudin Profile Picture

Victoria Yudin 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans