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

Notification

Icon
Error

Programming with .NET API
jpollard91
#1 Posted : Monday, October 15, 2012 7:09:21 AM(UTC)
Groups: Member
Joined: 10/11/2012(UTC)
Posts: 3
Location: Charlotte, NC

Hello,

Are there any examples of programming UltiDev WSP with the .NET API? I see the example in VBScript. Also, with the .NET API, is there a .NET dll or COM object to program against (and if .NET, what framework version(s)?

In project references, I can find a COM tlb "UltiDev Web Server application configuration API for .NET and COM clients. (v1.0). Is that the one? Would using dynamics in 4.0 work best?

Thank you for your product and support,
Jason
Ultidev Team
#2 Posted : Monday, October 15, 2012 9:32:28 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!

A reference to UWS Configuration .NET API assembly can be added to your Visual Studio project as shown on the attached screenshot.

Although we don't have a separate .NET example, the flow is somewhat simpler but conceptually the same as with VB/VBA/VBS: obtain a reference to the web app definition object, specify application settings and then call registration method.

If you take a look at the UWS Config API landing page, it will instruct you to call Metabase.GetWebAppEntry(yourAppGUID), then populate members of the returned object, and after that call one of the overloads of Metabase.RegisterApplication() method.

Could you please let us know why you decided to go with UWS config API instead of command line registration utility, and which tool you are using to create your installer?

Please let us know if this information was helpful.

Best regards,
UltiDev Team.
Ultidev Team attached the following image(s):
Ultidev Team attached the following image(s): VS2010 Add Reference to UWS Config API.png
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Ultidev Team
#3 Posted : Wednesday, July 3, 2013 2:47:27 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)
Here's the code snippet that shows an example of how an application can be registered:

Code:

public void Register(Guid appID)
{
    WebAppConfigEntry app = Metabase.GetWebAppEntry(appID);
    app.PhysicalDirectory = @"c:\folderWithWebDotConfig";
    app.ApplicationName = "My Test API-Registered UWS Application";
    Metabase.RegisterApplication(RuntimeVersion.AspNet_1_2or3x, false, app, new AppShortcut[] { AppShortcut.Instantiate(app) });
}


Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Guest
#4 Posted : Friday, March 30, 2018 9:26:24 PM(UTC)
Groups:

Message was deleted by a Moderator.
Rss Feed  Atom Feed
Users browsing this topic
Guest
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.