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 AX (Archived)

Deploying a custom service - The type or namespace name does not exist in the namespace

(0) ShareShare
ReportReport
Posted on by

I've tried creating a few really simple custom services, but when i try to deploy the service group I keep getting error messages similar to the message below.  After saving the classes within the service, I have been running the incremental CIL, and I have also tried running full CIL, but am still getting the same error message.

The port ‘SamCustomServiceGroup’ could not be deployed.\nError:
c:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\ServiceGeneration\SamCustomService.cs(38,19) : error CS0234: The type or namespace name ‘SamCustomsServiceTest’ does not exist in the namespace ‘Dynamics.Ax.Application’ (are you missing an assembly reference?)

This example service is from sumitsaxfactor.wordpress.com/.../create-your-first-custom-service-ax-2012.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    237,878 Most Valuable Professional on at

    Make sure that X++ code of SamCustomsServiceTest is properly compiled before you generate CIL from it.

  • Community Member Profile Picture
    on at

    It turned out to be another model that had been imported had script errors, and was causing the incremental CIL to fail.

  • xiaoshuai.fan Profile Picture
    75 on at

    Hello,

    I'm in the same situation now

    Can't successfully publish servicegroup,

    and the error report is consistent. Is there any solution

    After reporting an error. I try to recreate it all

    New class, new service and new servicegroup are saved and compiled in turn and released

    But there are still the same types of errors

  • Jack D Profile Picture
    60 on at

    Xiaoshuai.fan i would make a different thread and explain the problem and report the errors you receive.

    As an additional answer i will state the obvious;

    Compile the new objects and run a full CIL. If this does not work just check the IL log and fix the objects that give errors. If this does not work do a full xpp compile and check the log what is not compiling, fix those errors and do a full CIL.

  • xiaoshuai.fan Profile Picture
    75 on at

    Thank you for your reply.

    For this question, the following link is the content of my question.

    I'll try your method first. If you have other ideas, please continue to help me.

    thank you very much indeed

    community.dynamics.com/.../ax2012-when-publishing-in-servicegroup-the-error-cs0234-that-the-namespace-does-not-exist-was-reported

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 AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans