1,410
questions
1
vote
0
answers
47
views
How to get the list of all loaded assemblies ordered by dependencies
I know AppDomain.GetAssemblies can be used to get all loaded assemblies of the current app but there is no guarantee of order remarked there. I need that list but also need to make sure that ...
0
votes
0
answers
25
views
Domain ownership not validated in google play console
I have a website and i turned it to a mobile app using a website to app: median . co website. Now i'm trying to publish it on google play console but i'm getting these kind of errors and i don't ...
0
votes
0
answers
32
views
How to do JIT in another AppDomain?
The code is shown below。There are Two DefaultDomain in Process,and i need to do JIT in DefaultDomain, NGEN's AppDomin Can JIT,but another cant.
var Domains = GetAllAppDomains();
foreach (var domain ...
0
votes
0
answers
21
views
AppDomains when running from memory
I understand why this fails but can anyone explain to me a possible workaround for such. There's gotta be a way to still use AppDomains while running entirely from memory. I've looked into load ...
0
votes
0
answers
9
views
How to configure AppDomain properly?
I want avoid dependency conflicts between plugins for my .NET Framework 4.8 application.
My research led me to separate AppDomains for each plugin.
I found this example and I think I understand the ...
3
votes
0
answers
53
views
Is there a way in .Net Framwork to reference an object cross AppDomains without Serialization?
I am developing an addon to a commercial software which has an object that I have no control with it. By "no control with it", I mean I can't access its source code and make it serializable....
0
votes
0
answers
70
views
configure phpmyadmin using nginx, access phpmyadmin remotely
I have a remote vps server and I would like to be able to access phpmyadmin remotely because on localhost I do not have access because the server is remote, the server is a linux: Linux xddos 5.15.0-...
0
votes
0
answers
30
views
How to Delete Managed Code Libraries from Inno Setup Temp Directory at DeInitializeSetup
The problem is Inno (V6.2.2) fails to delete the temporary directory because there are still files in it that are not unloaded. Inno Setup's UnloadDll doesn't work on managed libraries.
Before this is ...
0
votes
0
answers
88
views
Which is an appropriate location to create a Folder in c# console application for reading and writing to files?
I'm working on a c# console application which is going to download data into files (say under 'Files' folder) and then later read those files. Common option is to read from AppDomain.CurrentDomain....
1
vote
0
answers
46
views
Access my own domain url from my office System. Any unknown urls are blocked by my company
I have purchased a domain from Godaddy and attached with A2Hosted VPS. My domain is accessible from my personal laptop but not from my office laptop.
I am trying to access this website using any AWS ...
0
votes
1
answer
758
views
Creation of secondary AppDomains not supported
The .NET 7 docs provide an example on how to use the MarshalByRefObject class to create class instances in secondary domains. I replicated this example almost identically as follows:
using System;
...
0
votes
1
answer
50
views
Connect local domain to Django
I have several applications that I'm running on Docker. Each one of them has own domain, however when I start containers I can access them only on 127.0.0.1:8000 or 127.0.0.1:8001. But I need to reach ...
2
votes
0
answers
396
views
Is there a .NET Framework equivalent to Core's AppContext.GetData("TRUSTED_PLATFORM_ASSEMBLIES")
I am using Roslyn to compile and run C# scripts entered by the user. I would like to dynamically react to the script choosing different assemblies to load (for example, adding 'using System.Net.Http' ...
0
votes
1
answer
103
views
AssemblyResolve is trying to get a different version than the one specified in Assembly.Load
I've got a custom assembly-resolving code that is acting up. Initially I'm running a piece of code that attempts to detect all assemblies referenced by a given C# library and this seems to return ...
0
votes
1
answer
49
views
Passing parameter to event handler using System.Reflection
I have the following two programs
(1) windows forms application
(2) ClassLibrary1.dll
The ClassLibrary1.dll is loaded to the winform through appdomain.
In windows forms, I have subscribed to event in ...
0
votes
0
answers
195
views
AppDomain.CreateInstanceFromAndUnwrap also loads assembly in main AppDomain
It seems this question has been asked before, but none of the answers around here on StackOverlow actually solve my issue, though some answers say it should.
What I see, is when I call AppDomain....
1
vote
0
answers
68
views
Cannot convert from method group to System.EventHandler. Changing handler signature shows error when dealing with appdomain
I have the following two programs
(1) Windows forms application
(2) ClassLibrary1.dll
In the winform, the dll is loaded using appdomain. The winform subscribes to the action('TestAction') in the dll. ...
0
votes
1
answer
253
views
"Object of type 'System.EventHandler' cannot be converted to type 'System.Action'" when trying to add event handler for dll action using reflection
I have the following two programs
WindowsFormsApplication
ClassLibrary1 dll
The ClassLibrary1 dll is loaded to the Windowsform via appdomain loading. I have subscibed to the dll events through ...
1
vote
2
answers
99
views
How to capture arguments returned by dll events (events are subscribed using Reflection)?
I have a winform application(WindowsFormsApplication2) that loads a dll using appdomain. In the winform, I have suscribed to 'TestEvent' implemented in ClassLibrary.dll. If the TestEvent returns an ...
0
votes
1
answer
64
views
How to make a server to send arduino sensors data to use it in my java application
I have an arduino device and i want to send the arduino sensors data to a server so i can fetch the data and store it in sqlite database and use it in my java application.
I already bought a domain ...
0
votes
1
answer
639
views
cannot able to add my custom domain through the settings in appwrite console
I have installed the Appwrite on a docker container and when I try to add my custom domain from settings I get server error.
Does anybody know what is going on or am i missing something here?
i was ...
0
votes
1
answer
90
views
How to deploy react js project with changeable domain?
I found myself in a bit of a problem with deploying a react js project. I've been developing qr code restaurant menu app for a while now. It is supposed to work as it follows: I've created an app in ...
0
votes
0
answers
44
views
How can I compile C# user code in a sandbox [duplicate]
If I have an app that allows users to enter C# code, how can I sandbox this code to block any malicious scripts?
In a very rudimentary example the app would be a textbox with a button that says "...
0
votes
0
answers
75
views
Exception unhandled when event is raised in dll (accessed using app domain)
My project contains
windows form application(WindowsFormsApplication1)
dll (ClassLibrary1).
I am trying to implement some logic in my windows form application when an event is raised in my DLL. I am ...
3
votes
0
answers
29
views
.net Appdomain can't attach AssemblyResolve
I wrote a simple program that consists of an executable in vb6 and 2 dlls one written in vb.net (testpi.dll) and the other c# (PlugIn1.dll).
The vb6 exe has a reference to the testpi.dll,
the testpi....
0
votes
0
answers
133
views
Is it possible to host emails on heroku?
I currently have an OVH hosting and domain name, but I would like to change and host my app on Heroku. The thing is, I don't know how to keep my email addresses and how to host them with Heroku. I'm a ...
0
votes
1
answer
779
views
Enhanced Domains - What to Check in your Org?
As you know Salesforce is enforcing Enhanced Domains. I found from Salesforce help that:
Custom components in your org must be evaluated in order to check
whether they use domain name/static URLs
...
0
votes
1
answer
134
views
How to initialize AppDomain when hosting dotnet 6.0 via hostfxr?
I'm trying to implement custom dotnet host in C++ by using hostfxr:
https://learn.microsoft.com/en-us/dotnet/core/tutorials/netcore-hosting
It works, however System.AppDomain.CurrentDomain is not ...
0
votes
1
answer
117
views
Run application in context of multiple directories in order to use a base set of assemblies and an external set of assemblies
The problem and current solution
A business app needs to interface with a 3rd party app which provides external client data. The 3rd party API is through client-specific assemblies which are provided ...
1
vote
0
answers
68
views
How does .net / C# decide which library is loaded as a shared resource and which as private per domain and how can I control this behavior?
I am trying to understand how C#/.net FW decides how to load assemblies/types to be shared or not shared across AppDomains.
I know this can be somewhat controlled using the LoaderOptimization Enum but ...
0
votes
1
answer
75
views
Recompile assemblies to separate appdomains in NET 5
I have a NET 5.0 console application, from which I am trying to compile and execute external code BUT also be able to update the code, unload the previously created appdomain and re-compile everything....
0
votes
0
answers
227
views
Creating new AppDomain instances inside a Windows service doesn't work
I am trying to create a Windows service with C# which spawns multiple processes inside it.
For this I am using AppDomain functionality and creating multiple of them at startup in the OnStart method of ...
0
votes
2
answers
888
views
Azure custom domain not validating ownership
We have three sites with three slots each and want to set up domain/ssl for all of them. TXT- and CNAME's are all set up.
It started off really good, and I was able to set domain/ssl for all but 2 ...
0
votes
1
answer
303
views
Unload Assembly or AppDomain after Use (like in Object Browser)
I am trying to load external Assembly to list out all Types, Methods and Properties during run time, just like Object Browser in Visual Studio. My requirement is, I want to Load external Assembly list ...
1
vote
0
answers
109
views
Initialize Class with Generic Types in Another AppDomain
I am trying to setup a tool I can use to load non-version-specific assemblies from a config/database/etc. at runtime, execute code as needed, and then unload them to eliminate overhead. (My situation ...
1
vote
1
answer
1k
views
Is it possible to change domain of an Elastic Beanstalk environment after it's been created?
So we're using the usual EB domains <<domain>>.<<region>>.elasticbeanstalk.com.
Yet we screwed with the <<domain>> part and we'd like to change it without deleting ...
0
votes
1
answer
101
views
Missing file name and line numbers in stack trace in sandbox AppDomain
I'm running code in a locked-down AppDomain sandbox. Exceptions thrown from within this AppDomain don't include line numbers, even though pdbs are available. The code that tries to access the stack ...
0
votes
0
answers
250
views
Bug in .NET Framework (mscorlib) preventing stack trace line numbers (in portable pdbs)?
Update: as pointed out in the comments, the code below refers to portable pdbs. Portable pdbs are not relevant to my situation, but the question might still be interesting to people using sandboxed ...
0
votes
0
answers
390
views
Load assembly in DefaultDomain of IIS
Good morning,
I am working on a simple ASP.net application. I have implemented some code which is in C# dlls. Those dlls are used and loaded by the ASP.net application. The goal is to put the C# dlls ...
5
votes
0
answers
1k
views
Is there a way to force an AssemblyLoadContext to unload?
I am working on a big ASP.Net 5 web application, and I would like to implement a self-update feature. Since the program can be deployed on many different platform and different ways (e.g. a Windows ...
0
votes
0
answers
302
views
Hot unloading and reloading an AppDomain
Looks like I'm trying to do something that other's haven't run into again. Atleast, from Google searching it seems like this is pretty unique.
I have a server running with a directory full of dlls. ...
0
votes
2
answers
30
views
Redirect search engines to specific route, ie. 'mydomain.com/somepath'
I have a nextjs webapp.
I want the main application to run on the index route: ...mydomain.com/.
But I also want to have a landing page at route: ...mydomain.com/mylandingpage.
The question I have is,...
0
votes
1
answer
119
views
Why do EnumDomains/NextDomain loop forever?
The following simple code can be directly run in Visual Studio C++ console project.
It will loop forever because the NextDomain will always return the same IUnknown *
According to Microsoft, it should ...
0
votes
2
answers
199
views
How to instantiate IModule-inheriting class from an AppDomain?
I'm a bit confused here and haven't gotten much help from google. Here's what I'm trying to do:
public Boolean LoadModule(String moduleHandle)//name of module MUST match its .dll name. Name of ...
0
votes
1
answer
180
views
Assembly remains after unloading appdomain
I have program, which creates AppDomain, loads assembly prelude within it and then unloads AppDomain. At the end program lists assemblies from default appdomain. It's simplified version of program. In ...
1
vote
1
answer
111
views
Subscribe to DomainUnload event from a main AppDomain
I'm creating an application which works with a new AppDomain that can be created and unloaded. I'd like to handle the DomainUnload event so I need to subscribe to it. I can't subscribe to this event ...
0
votes
0
answers
138
views
ConfigurationManager throw Null Exception
I face one issue when I tried to get something for my app.config.
So my code is simple:
ExeConfigurationFileMap configFileMap = new ExeConfigurationFileMap()
{
ExeConfigFilename = AppDomain....
0
votes
1
answer
221
views
Configure default exception handler in a Service Fabric stateless service
I am trying to add a default exception handler for any unhandled exceptions in a stateless service, but it doesn't seem to be catching any of them. This is the code I am using:
protected override ...
1
vote
0
answers
514
views
Subdomain Redirects to main domain on Google Chrome
I created a subdomain using Cloudflare, GoDaddy and Heroku.
The domain is api.domain.com.
I can access it correctly on Microsoft Edge and Firefox, but whenever I try to access it on google Chrome it ...
1
vote
0
answers
579
views
What is the standard/correct way to load c++/cli dll into c# appdomains?
I need to create a C# application where I can load and unload C++/CLI dlls dynamically, so I am using appdomains.
I'm loading the dll this way (in my appdomain):
Assembly assembly = AppDomain....