I get a message when loading a dll .net project in acad 2017. It all started when I moved there file from an upper folder to a lower folder. Now it will built without errors but I cant get the dll to run in acad. If anyone has seen this error please help me fix it.
I tried to reeneter the files back into the project from the solution explorer.
Command: NETLOAD
Cannot load assembly. Error details: System.Resources.MissingManifestResourceException: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "PEElec.PEElec.MyCommands.resources" was correctly embedded or linked into assembly "PEElec" at compile time, or that all the satellite assemblies required are loadable and fully signed.
at System.Resources.ManifestBasedResourceGroveler.HandleResourceStreamMissing(String fileName)
at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(CultureInfo culture, Dictionary`2 localResourceSets, Boolean tryParents, Boolean createIfNotExists, StackCrawlMark& stackMark)
at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo requestedCulture, Boolean createIfNotExists, Boolean tryParents, StackCrawlMark& stackMark)
at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents)
at System.Resources.ResourceManager.GetString(String name, CultureInfo culture)
at Autodesk.AutoCAD.Runtime.CommandClass.AddCommand(ICommandLineCallable ca, MethodInfo mi)
at Autodesk.AutoCAD.ApplicationServices.AutoCADApplicationHolder.Initialize(Assembly assembly)
at Autodesk.AutoCAD.ApplicationServices.ExtensionLoader.ProcessAssembly(Assembly assembly)
Solved! Go to Solution.
Solved by jaboone. Go to Solution.
Your project appears to be using localized resources in a satellite assembly, which are are dynamically loaded at runtime based on the current locale/language in use.
Look in the original location of your .DLL for a folder with a locale name (like 'en-us' for US English) that contains a resources-only .DLL file that usually has the name <projectname>.resources.dll.
@jaboone wrote:I get a message when loading a dll .net project in acad 2017. It all started when I moved there file from an upper folder to a lower folder. Now it will built without errors but I cant get the dll to run in acad. If anyone has seen this error please help me fix it.
I tried to reeneter the files back into the project from the solution explorer.
Command: NETLOAD
Cannot load assembly. Error details: System.Resources.MissingManifestResourceException: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "PEElec.PEElec.MyCommands.resources" was correctly embedded or linked into assembly "PEElec" at compile time, or that all the satellite assemblies required are loadable and fully signed.
at System.Resources.ManifestBasedResourceGroveler.HandleResourceStreamMissing(String fileName)
at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(CultureInfo culture, Dictionary`2 localResourceSets, Boolean tryParents, Boolean createIfNotExists, StackCrawlMark& stackMark)
at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo requestedCulture, Boolean createIfNotExists, Boolean tryParents, StackCrawlMark& stackMark)
at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents)
at System.Resources.ResourceManager.GetString(String name, CultureInfo culture)
at Autodesk.AutoCAD.Runtime.CommandClass.AddCommand(ICommandLineCallable ca, MethodInfo mi)
at Autodesk.AutoCAD.ApplicationServices.AutoCADApplicationHolder.Initialize(Assembly assembly)
at Autodesk.AutoCAD.ApplicationServices.ExtensionLoader.ProcessAssembly(Assembly assembly)
I'm afraid that didn't work because there is nothing like that in the release directory. I compiled the dll under the debugger compiler options and loaded the dll from the build directory, there was no error when loading, but there were no keyins to implement it from acad after I loaded the dll with netload.
I have solved the problem by starting another project from scratch. Since the code was good, all I had to do was start a new dialog each occurance on a dialog and copy and paste controls then copy the code from old project.
It is working now. Lesson learned, don't move files once you have a working solution.
Can't find what you're looking for? Ask the community or share your knowledge.