Registration with regasm error - regasm

I am asked to register a dll by using regasm but new to it. Here is my questions:
C:\Windows\Microsoft.NET\Framework\v4.030319\regasm XXX.dll/codebase. It says error RA0000: Unable to locate input assembly 'xxx.dll/codebase' or one of its dependencies.

Put a space after the dll, before /codebase.
..\regasm xxx.dll /codebase

Related

Why can't I add a package (module) I created in Julia?

I am having trouble installing a module I created in Julia. I am running the Julia plugin under Visual Studio Code. If I run the file below with Ctrl+F5 I get a message
ERROR: LoadError: ArgumentError: Package Utils not found in current path:
- Run `import Pkg; Pkg.add("Utils")` to install the Utils package.
This is the file:
module demo
using Utils
greet() = print("Hello World!")
end # module
If I follow the advice on the error message I get another error message:
ERROR: LoadError: The following package names could not be resolved:
* Utils (not found in project, manifest or registry)
I also tried inserting this line:
import Pkg; Pkg.add(path="C:/Dropbox/Code/Julia/demo/src/Utils.jl")
and got this message (although the path definitely exists):
ERROR: LoadError: Path `C:/Dropbox/Code/Julia/demo/src/Utils.jl` does not exist.
The files demo.jl and Utils.jl are in C:\Dropbox\Code\Julia\demo\src\ and the demo project has been activated as can be seen in the REPL. The OS is Windows 10 Pro.
Any help will be greatly appreciated. Lots of time wasted trying to make this work.
Module and packages are not the same things. In short, packages are modules plus a set of metadata that make it easy for the package to be found and interact well with other packages. See here for a tutorial to write Julia packages:
https://syl1.gitbook.io/julia-language-a-concise-tutorial/language-core/11-developing-julia-packages
In your case, if you want to load a local module, just type include("fileWhereThereIsTheModule.jl") followed by a using Main.MyModule or using .MyModule. Note the dot... without it, Julia would indeed look for a package and to let it find your Demo or Util module you would have to either change an environmental variable or place your module file in certain predefined folders. Using include followed by the "absolute or relative position" of the module you don't have to do either.

How do I reference a UWP+NET46 portable library from a .NET 4.6 console application?

I have a portable class library project that targets .NET 4.6 and Universal Windows Platform. This class library contains just one class with the following line of code in its constructor:
Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()));
Now I create a new .NET 4.6 console application project in the same solution and add a project reference to the portable class library. Calling the method that houses the above line of code results in the following exception at runtime:
Could not load file or assembly 'System.IO.FileSystem, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
What am I doing wrong here? There are no compile-time errors or warnings.
Things I have tried: add missing(?) NuGet package manually
It seems that System.IO.FileSystem is a library delivered via NuGet, as part of the Microsoft.NETCore mega-package. Okay, perhaps I need to explicitly add this package to any project that uses my portable class library. I attempt to do so.
Could not install package 'Microsoft.NETCore.Platforms 1.0.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.6', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
No luck with this approach.
Things I have tried: create a project.json file
While there is no clear info on the web, I read a few tidbits about a new project.json based NuGet harness or build system. Just to experiment, I created the following project.json file in my console application project:
{
"dependencies": {
},
"frameworks": {
"net46": { }
},
"runtimes": {
"win-anycpu": { }
}
}
It works! The runtime error goes away! However, I soon found that this was either not the right solution or not a complete solution. I started writing some code to read configuration section values, which involved making use of the IConfigurationSectionHandler interface, and got the following compile-time error:
error CS0246: The type or namespace name 'IConfigurationSectionHandler' could not be found (are you missing a using directive or an assembly reference?)
This interface is part of the System assembly. I see a reference to this assembly, but it has a yellow exclamation mark icon, and a warning appears in the warnings window:
The referenced component 'System' could not be found.
This is where I ran out of ideas. Am I missing something totally obvious?
I have found the solution. My initial attempt was to install the Microsoft.NETCore package into the console application, resulting in the error shown in my original post.
However, if I install only the narrowly-scoped packages, e.g. System.IO.FileSystem, then I achieve success and the application works correctly. Apparently there is something special about the Microsoft.NETCore "master package" that prevents it from correctly installing into dependent projects.

Server Error in '/' Application in Tridion

We have site that was working. When we moved to Tridion we get the following error:
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'SecureBinaries' or one of its dependencies. The system cannot find the file specified.
Source Error:
<add verb="*" path="*.doc" type="SecureBinaries.fileHandler, SecureBinaries" />
Source File: *****\web.config Line: 43
Assembly Load Trace: The following information can be helpful to determine why the assembly 'SecureBinaries' could not be loaded.
That is Line 43 above that causes the error. Any ideas on this would be appreciated.
Is the SecureBinaries assembly in the bin folder of your application or in the GAC on the server running the application?
If you add/enable the HKLM\Software\Microsoft\Fusion!EnableLog key the YSOD will show you where the attempt was made to load the SecureBinaries dll.
Cheers
Neil

Invalid MEX-file error in MATLAB using GPUstart

I get following error with run GPUstart in Matlab:
Error using ==> moduleinit at 14
Invalid MEX-file 'C:\GPUmat\modules\rand\RANDModuleManager.mexw64': The
specified module could not be found.
Error in ==> GPUmatLoadModules at 18
moduleinit;
Error in ==> GPUstart at 168
GPUmatLoadModules(fullfile(GPUmatPath,'modules'));
How to solve this?
I found a similar problem in google, maybe it will help you:
http://www.mathworks.de/support/solutions/en/data/1-X8A09/index.html
Subject:
Why do I receive a "specified module could not be found" error while
running a MEX-file created from MATLAB 7.0.1 (R14SP1)? Problem
Description:
When I try to run a MEX-file I created, I receive the following error:
??? Invalid MEX-file 'MEX-file name': The specified module could not
be found. where "MEX-file name" is the name of my MEX-file. However, I
did not receive any errors when compiling the file.
Solution:
This error can occur if you do not have all of the necessary DLL files
that the MEX-function is dependent upon or if you are running a
MEX-file on a different version of MATLAB than it was compiled on.
In order to view dependent DLL files and help locate the source of
this error, you may use the third-party product "Dependency Walker".
The Dependency Walker can be downloaded from the following web site:
http://www.dependencywalker.com/
Kindly refer to the attached solutioon below for more information on
how to use the Dependency Walker to profile your MEX file.
After finding the missing dependent module, add it to the directory
where the MEX file resides or add it to the system search path.

GWT Failure to load module '<mymodule>'

When configuring a second Entrypoint and second module in my gwt application I receive the following warning:
[WARN] Unknown module requested 'iovadmin'; all active GWT modules must be specified in the command line arguments
and the following error:
[ERROR] Unable to find 'iovadmin.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
Can someone explain me the necessary steps to correctly configure a second entrypoint in my application?
Thanks in advance,
Tom
If you want to have a second EntryPoint, make sure that you have all the needed files. That is:
- In your project src/com/.../ root folder you must have your SecondEntry.gwt.xml file, with the proper tag
- In your war/ folder you need to have the proper SecondEntry.html file
- In your war/WEB-INF/web.xml you need to have the proper servlet-mapping pointing to your second servlet.
If you have all these files, you'll need to post them to see where's the problem.