Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Error in UWS.Configuration.dll
dacunha121
#1 Posted : Friday, November 22, 2013 8:56:14 AM(UTC)
dacunha121

Groups: Member
Joined: 10/1/2013(UTC)
Posts: 5
Location: Aguada, Montevideo, Uruguay

Thanks: 2 times
Hi!
I'm using the UltiDev web server for my application, but i need install the app in distinct customers, then i have to install UltiDev in each PC, and configure it automatically. But i have a problem with the dll file, because sometimes my installer have an error, and don't capture any exception in that line (Dim WebApp As WebAppConfigEntry).

If i load the dll file with Assembly class in VB.Net, a MissingMethodExcpetion exception appears when UWS.Configuration.WebAppConfigEntry class is loaded.

Can you see what is the problem with WebAppConfigEntry class?
and then recompile it, because i need it for sell my product.

So sorry for disturb, thank you very much, i'm waiting for answers.
dacunha121 attached the following image(s):
dacunha121 attached the following image(s): Excpetion.JPG
Ultidev Team
#2 Posted : Friday, November 22, 2013 10:08:59 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi there!

If you are using UWS config API, you you should now instantiate WebAppConfigEntry directly. Instead, you should use WebAppConfigEntry.GetWebAppEntry() method, as pointed out here.

Please also consider registering your application using command line utility.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
dacunha121
#3 Posted : Tuesday, November 26, 2013 6:59:02 AM(UTC)
dacunha121

Groups: Member
Joined: 10/1/2013(UTC)
Posts: 5
Location: Aguada, Montevideo, Uruguay

Thanks: 2 times
Maybe you didn't understand my question. I have a problem with the configuration of an web application in UltiDev Web Server Pro from VB.Net, specifically with WebAppConfigEntry.
But the installer of the web application has an error in some PCs, not in all, and the error appears when i do a reference to WebAppConfigEntry (Dim WebApp As WebAppConfigEntry).

I searched a possible solution by importing the DLL file with Assembly class:

Dim UWSConf As Assembly
Dim UWS_WebApp As Object

UWSConf = Assembly.LoadFrom("UWS.Configuration.dll")
UWS_WebApp = UWSConf.CreateInstance("UWS.Configuration.WebAppConfigEntry")

But in the last line appears an exception, the same of the image.
dacunha121 attached the following image(s):
dacunha121 attached the following image(s): Exception.JPG
Ultidev Team
#4 Posted : Tuesday, November 26, 2013 3:30:43 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi there!

We actually understood the scenario first time around. The way you use UWS config API is incorrect. You should not be loading assembly dynamically and then calling CreateInstance() to instantiate WebAppConfigEntry. Instead, in your project you should do "Add Reference" to UWS config API (see attached screenshot), and then use factory method we mentioned in the previous post to obtain an instance of WebAppConfigEntry.

Best regards,
UltiDev Team.
Ultidev Team attached the following image(s):
Ultidev Team attached the following image(s): Adding reference to UWS config API .png
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Guest
#5 Posted : Friday, March 30, 2018 9:24:09 PM(UTC)
Groups:

Message was deleted by a Moderator.
Rss Feed  Atom Feed
Users browsing this topic
Guest (4)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.