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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Visual Studio - Create Deployment Package - Empty result

(0) ShareShare
ReportReport
Posted on by 393

After having successfully followed tutorials and created a Model with a CustTable extension, tested in the browser, we would now like to create a deployment package.  We are using the VM recently downloaded from LCS and our custom model has been built successfully with a database synchronization.  However when attempting to create a deployment package at the end of the process it always leaves us with an empty Package File Location.

Cannot create deployable package

Things we have tried:

  • Remove hyphens, spaces and the  emoticon (joke) from the project name.
  • Change the Package File Location from a user directory to "C:\Temp\Packages"
  • Restart SQL Server (sql server process memory has been paged out... messages, but no errors).
  • Restart the VM and increased VM RAM slightly to 5GB.

Notes:

  • We have renamed the machine, as per MS instructions to be able to use DevOps...  
  • Presumably DevOps doen't affect the Packaging, but it's nothing to do with the xxx.visualstudio.com / dev.azure.com/xxx funkiness?
  • Mappings appear to be correct (Docs)...  We had had missed adding the descriptor file to the repo.  Again, pobably not the problem.

Any suggestions, please?  Thanks!  Ian

Event Log viewer only shows the following Information from ASP.NET 4.0.30319.0:

Event code: 1002
Event message: Application is shutting down. Reason: Hosting environment is shutting down.
Event time: 5/26/2021 6:48:20 AM
Event time (UTC): 5/26/2021 1:48:20 PM
Event ID: 4613fe689a4e4db5a31e845673357cbd
Event sequence: 6
Event occurrence: 1
Event detail code: 50002

Application information:
Application domain: /LM/W3SVC/2/ROOT-1-132665098680211399
Trust level: Full
Application Virtual Path: /
Application Path: C:\AOSService\webroot\
Machine name: S2G-ISCHOFIELD-

Process information:
Process ID: 6556
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE

Dynamics 365 Create Package Trace:

Building models...
Build of models succeeded
Creating package...
Starting creation of x++ package 'S2GFOPractice'
Importing metadata assemblies
Getting x++ dependencies
Getting dependencies for package 'S2GFOPractice' with type 'run'
Creating nuspec for package 'S2GFOPractice' with package id 'dynamicsax-s2gfopractice' at directory 'C:\Users\Administrator\AppData\Local\Temp\S2GFOPractice'
Placing nuspec file at: C:\Users\Administrator\AppData\Local\Temp\S2GFOPractice\dynamicsax-s2gfopractice.nuspec
Set requireLicenseAcceptance 'false'
Set description 'The package of dynamicsax-s2gfopractice.'
Set summary 'S2GFOPractice'
Set title 'Dynamics 365 Unified Operations: dynamicsax-s2gfopractice package'
Set tags 'admin CompatibleWithSealedRelease CompatibleWithApp81PlusRelease'
Set copyright '2015 Microsoft Corporation'
Setting dependencies 'System.String[] System.String[] System.String[] System.String[]' for package 'S2GFOPractice'
Found dependency dynamicsax-applicationfoundation
Added depdendency 'dynamicsax-applicationfoundation'
Found dependency dynamicsax-applicationplatform
Added depdendency 'dynamicsax-applicationplatform'
Found dependency dynamicsax-applicationsuite
Added depdendency 'dynamicsax-applicationsuite'
Found dependency dynamicsax-framework-staticmetadata
Added depdendency 'dynamicsax-framework-staticmetadata '
Finished creation of nuspec file C:\Users\Administrator\AppData\Local\Temp\S2GFOPractice\dynamicsax-s2gfopractice.nuspec'
Copying script file from C:\AOSService\PackagesLocalDirectory\Bin\InstallPackage.ps1 to C:\Users\Administrator\AppData\Local\Temp\S2GFOPractice\tools\InstallPackage.ps1
Copying script file from C:\AOSService\PackagesLocalDirectory\Bin\UninstallPackage.ps1 to C:\Users\Administrator\AppData\Local\Temp\S2GFOPractice\tools\UninstallPackage.ps1
Copying script file from C:\AOSService\PackagesLocalDirectory\Bin\dynamicspackagemanagement.psm1 to C:\Users\Administrator\AppData\Local\Temp\S2GFOPractice\tools\dynamicspackagemanagement.psm1
Preparing package files C:\AOSService\PackagesLocalDirectory\S2GFOPractice, S2GFOPractice, C:\Temp\Packages\szbwqiko.rsq, C:\DynamicsTools\7za.exe, dynamicsax-s2gfopractice
Zip command: C:\DynamicsTools\7za.exe a -r -y -mx3 -ir!AdditionalFiles -ir!bin -i!*.config -i!filelocations.xml -i!*.xref -x!*.delete "C:\Temp\Packages\szbwqiko.rsq\files\dynamicsax-s2gfopractice.7.0.5934.35741.zip" at package directory: C:\AOSService\PackagesLocalDirectory\S2GFOPractice
Finished prepare package files
Switching to directory 'C:\Users\Administrator\AppData\Local\Temp\S2GFOPractice'
Calling:& C:\DynamicsTools\nuget.exe -ArgumentList pack dynamicsax-s2gfopractice.nuspec -NoPackageAnalysis -NoNewWindow -Wait
Attempting to build package from 'dynamicsax-s2gfopractice.nuspec'.
Successfully created package 'C:\Users\Administrator\AppData\Local\Temp\S2GFOPractice\dynamicsax-s2gfopractice.7.0.5934.35741.nupkg'.
Packaging C:\Users\Administrator\AppData\Local\Temp\S2GFOPractice\dynamicsax-s2gfopractice.7.0.5934.35741.nupkg elapsed time: 11949.5148 ms
Cleaning up directory C:\Users\Administrator\AppData\Local\Temp\S2GFOPractice
Package created.

5/26/2021 6:48:45 AM

I have the same question (0)
  • Suggested answer
    Ian Schofield Profile Picture
    393 on at
    RE: Visual Studio - Create Deployment Package - Empty result

    Fixed.  Two possibilities:

    • Used the following command to rename my machine, copy/pasted from the internet, and should manually rename the VM instead using Settings > System > About:

    WMIC computersystem where caption='MININT-FN7JP81' rename S2G-ISCHOFIELD-HowLongIsAPieceOfString

    • Alternatively the original name was too long and so when I renamed the computer the second time I used a shorter machine name:

    S2GISCHOFIELD

    In my defence I'm a bit of a PowerShell junky these days and if I have to do anything twice (setup the VM dev environment) I like to put it in DOS or PowerShell commands the second time around.

    HTH.  Cheers

  • Leo Chen Profile Picture
    on at
    RE: Visual Studio - Create Deployment Package - Empty result

    If process monitor doesn't help, and issue can be replicated constantly, I would recommend you to log a support ticket to Microsoft to engage professionals.

  • Suggested answer
    Leo Chen Profile Picture
    on at
    RE: Visual Studio - Create Deployment Package - Empty result

    Have seen this before but just cannot replicate later on. It's more a random issue. If you really want to go deeper, I would recommend you use process monitor during package generation to check if the deployed package was truely generated under the folder but might be deleted lator for unknown reason.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,317

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 918 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 656 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans