AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Sprachen und Entwicklungsumgebungen Die Delphi-IDE Aufeinmal ist die "Klasse nicht registriert"
Thema durchsuchen
Ansicht
Themen-Optionen

Aufeinmal ist die "Klasse nicht registriert"

Ein Thema von NoName1 · begonnen am 24. Jan 2024 · letzter Beitrag vom 26. Jan 2024
Antwort Antwort
NoName1

Registriert seit: 8. Mär 2018
194 Beiträge
 
Delphi 11 Alexandria
 
#1

Aufeinmal ist die "Klasse nicht registriert"

  Alt 24. Jan 2024, 15:27
Guten Tag Delphianer,
ich bekomme seit heute ein Fehlermeldung beim Senden von E-Mails, die ich mir nicht erklären kann.
Folgendes:
Die Software liegt auf einen Server und die Fehlermeldung tritt beim Versenden von E-Mails auf.
Gestern konnte noch alles reibungslos gesendet werden.
Ich benutze zum Senden die EMail-Architect Units.
In der Anlage ein Screen-Shot der Fehlermeldung.

Hat jemand einen Rat was ich tun kann?
Vielen Dank an die Helfer
Miniaturansicht angehängter Grafiken
klass-no-reg.png  
  Mit Zitat antworten Zitat
hoika

Registriert seit: 5. Jul 2006
Ort: Magdeburg
8.270 Beiträge
 
Delphi 10.4 Sydney
 
#2

AW: Aufeinmal ist die "Klasse nicht registriert"

  Alt 24. Jan 2024, 16:20
Hallo,
das ist wohl eine ActiveX-DLL.
Wahrscheinlich wurde sie bei der Installation schon registriert.

Lösung:
regsrv32 dein_email.dll

PS:
Dazu sind Admin-Rechte notwendig.
Heiko
  Mit Zitat antworten Zitat
Benutzerbild von himitsu
himitsu

Registriert seit: 11. Okt 2003
Ort: Elbflorenz
43.155 Beiträge
 
Delphi 12 Athens
 
#3

AW: Aufeinmal ist die "Klasse nicht registriert"

  Alt 24. Jan 2024, 17:13
Strg+C im Dialog und hier Strg+V in ein [QUOTE], dann könnte man die GUID mal eben schnell kopieren, um aus neugier mal Google danach zu fragen.

Hab hier kein D11 und daheim hab ich dann keine Lust die versteckte OCR-Funktion im Screenshottool missbrauchen zu müssen.
Garbage Collector ... Delphianer erzeugen keinen Müll, also brauchen sie auch keinen Müllsucher.
my Delphi wish list : BugReports/FeatureRequests

Geändert von himitsu (24. Jan 2024 um 17:15 Uhr)
  Mit Zitat antworten Zitat
hoika

Registriert seit: 5. Jul 2006
Ort: Magdeburg
8.270 Beiträge
 
Delphi 10.4 Sydney
 
#4

AW: Aufeinmal ist die "Klasse nicht registriert"

  Alt 24. Jan 2024, 17:34
Hallo,
registration free COM, oha, wieder was gelernt.

https://www.emailarchitect.net/easen...ject_reg_a.htm
Heiko
  Mit Zitat antworten Zitat
Benutzerbild von Sinspin
Sinspin

Registriert seit: 15. Sep 2008
Ort: Dubai
618 Beiträge
 
Delphi 10.3 Rio
 
#5

AW: Aufeinmal ist die "Klasse nicht registriert"

  Alt 25. Jan 2024, 06:49
Das erfordert ein bisschen mehr Arbeit bei der Implementierung und ein Tool von MS um die passenden CLSID aus einem ActiveX zu extrahieren, aber das ist eindeutig das Mittel der Wahl wenn man auf einem Rechner nix installieren kann. Ist ehwig her das ich CLSID aus einem ActiveX extrahiert habe, kann mich nicht mehr erinnern was für ein Tool nötig war
Stefan
Nur die Besten sterben jung
A constant is a constant until it change.
  Mit Zitat antworten Zitat
hoika

Registriert seit: 5. Jul 2006
Ort: Magdeburg
8.270 Beiträge
 
Delphi 10.4 Sydney
 
#6

AW: Aufeinmal ist die "Klasse nicht registriert"

  Alt 25. Jan 2024, 07:08
Hallo,
nun, in diesem Fall sind die ja im Manifest vorgegeben.
Heiko
  Mit Zitat antworten Zitat
NoName1

Registriert seit: 8. Mär 2018
194 Beiträge
 
Delphi 11 Alexandria
 
#7

AW: Aufeinmal ist die "Klasse nicht registriert"

  Alt 25. Jan 2024, 12:35
Ersteinmal vielen Dank an alle die geantwortet haben.
Zweierlei habe ich getan:
1. Das Manifest aus den Projekt-Optionen entfernt und "Alles neu erstellen lassen"
2. Das Manifest wieder den Projekt-Optionen hinzugefügt und "Alles neu erstellen lassen"
3. Die neu erstellte Exe auf den Server in das entsprechende Verzeichnis kopiert
4. E-Mails an 4 Adressen erfolgreich versandt.

Was nun auftritt ist folgendes:
Nach dem Versenden und Verlassen des Servers wurden dem Ordner alle Zugriffsrechte entzogen.
D- H. ich konnte mich zwar wieder am Server anmelden, hatte aber keine Zugriffsrechte mehr auf das Programm?

Was mag hier nun geschehen sein? Kennt sich evtl. jemand damit aus und hat einen Ratschlag??

Vielen Dank für weitere Vorschläge.
  Mit Zitat antworten Zitat
Kas Ob.

Registriert seit: 3. Sep 2023
213 Beiträge
 
#8

AW: Aufeinmal ist die "Klasse nicht registriert"

  Alt 25. Jan 2024, 13:30
3. Die neu erstellte Exe auf den Server in das entsprechende Verzeichnis kopiert
How ? and this is your problem !

Did you use Windows RDP ? in this case the files you are uploaded files are in very peculiar position and here comes the user permission to complicate things.

To explain: RDP will connect with Windows User credential on the server, while RDP will mix this with your own credential from your Windows User permission, will copy files and give them permission from your own local user permission, your local and special folders on your device will play role in that.
Notice that : Terminal service is Windows system, and have very high privileges at its core, but will limit what RDP user can do according to their credential and privileges, also because file transfer in RDP is an extension done by the Windows Explorer not by the TS itself.

also when you registered that EMail Architect activeX (i have never used it) it might registered to specific user on the server, hence when you are logged on and ran your own application things go smoothly, but after you disconnect RDP, Windows will revert to its own User and permission and that ActiveX could be installed to different user from the Windows perspective, hence your application can't access/found it.

these might help you fix this:
1) register that ActiveX to everyone (or at least for the user that will run the EXE), this might be tricky just a little bit, open mmc in console then from file -> add/remove snap.. -> Component Services, from here find your activeX then right click for properties , there is also DCOMCNFG command will load the above directly, did not work for me always and on all Windows, adjust the permission in security tab.
2) check and compare your application permission that uses that ActiveX, make sure it is handled as local application and the owner is the User on the Server not your user form your PC, this happen if your are using wrongly configured AD (or simply enforced override policy), also there might be a conflict between two different Active Directory for both your device and the server, after checking the difference in the permission try to adjust the folder you are uploading to using RDP not the EXE itself, it might fix the problem and prevent it in the future, but again it must not conflict with active AD configuration.
3) may be the easiest way, simply, don't upload files specially executables using RDP, use any different approach, from sending an email with attachment ... to install FTP server on your server and use it to upload, then you can simply disable it, for me i have always a simple server installed (as service) on my servers that i do enable and can share files between my PC and the remote server, permission will always be the same as this RTCServer.

Hope that help, or at least give you a place to start, i am not sure what have changed in Windows 11 or latest Windows Server versions with the latest updates, but your problem security and permission and their policies.

ps : there is another approach but really i don't know if it is still possible or working with your setup, in RDP settings you can share you drives with the remote server, hence you will see your local drives are mounted drives remotely, so don't copy and paste you EXE using the RDP from your own folder, instead open your own drive on the remote server and copy the file form there to local folder.
  Mit Zitat antworten Zitat
NoName1

Registriert seit: 8. Mär 2018
194 Beiträge
 
Delphi 11 Alexandria
 
#9

AW: Aufeinmal ist die "Klasse nicht registriert"

  Alt 26. Jan 2024, 08:48
Danke für die Nachrichten,
das Problem ist ja nicht, wie ich glaube der RDP von Microsoft, weil zu Anfang des Jahres und auch vorige Woche noch alles korrekt aufzurufen war. Kann es sein, dass evtl. jetzt, nach dem Update von Microsoft, Probleme bezgl. des RDPs entstanden sind? Denn auch der Server hat ein Update erfahren.
Die vorhandene Version des Programms auf dem Server, ist noch die vor dem Update von Microsoft und mit dieser können E-Mails problemlos vom Server versandt werden!

Ich suche den Fehler immer zu erst bei mir, sprich in der Programmierung. Daher werde ich das Programm auf den Stand Anfang des Jahres zurücksetzen und testen ob damit die E-Mails vom Server versandt werden können. Wenn das zu Fehlern führen sollte, dann muss etwas in der Programmänderung geschehen sein. Ich kann mir nicht Vorstellen was dies sein sollte. Es wurde einiges Weiterentwickelt das aber mit dem Programmteil -E-Mail- nichts zutun hat. Von meinem Rechner können die E-Mails korrekt aus dem Programm versandt werden. Manifest und DLL von EArchitect sind auf dem Server und werden angenommen, da sonst nicht gesendet werden könnte. Also doch der Server
  Mit Zitat antworten Zitat
Kas Ob.

Registriert seit: 3. Sep 2023
213 Beiträge
 
#10

AW: Aufeinmal ist die "Klasse nicht registriert"

  Alt 26. Jan 2024, 11:18
May be i missed something in the translation, so sorry if that is the case because i might not understand this clearly

DDaher werde ich das Programm auf den Stand Anfang des Jahres zurücksetzen und testen ob damit die E-Mails vom Server versandt werden können.
Translated
Code:
 Therefore, I will reset the program to the status at the beginning of the year and test whether the emails can be sent from the server.
DO NOT delete your application or any files, also don't replace any, just rename them, so if the problem was/is in the permission you will need them to get to the bottom of this problem and understand this in clear way, in case the problem is attached to them, then they worth money and time for you (to analyze).

Just rename all the files you want to replace and keep them on the server for future references.
Try with the same folder(s) or rename the folder in full too, also don't delete them until you are 100% they are irrelevant.
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 16:48 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz