Deploying TD 6.1 .NET Web Services on IIS

Discussion forum about all things Team Developer 5.x and 6.x
Posts: 79
Joined: 19 Apr 2017, 15:28
Location: Argentina

Deploying TD 6.1 .NET Web Services on IIS

Post by chelonet » 19 Mar 2018, 17:33

I'm trying to publish my first .NET WS (soap) on IIS made with TD 6.1.
When compiling, create the WSAppTest.dll and the WSTest.asmx (attached).
I follow the steps indicated in the document "webservicespart1.pdf", to publish it on IIS, in page 1-12 / 13 (by the way quite poor document).

Then, when I access http: //localhost/WSAppTest/WSTest.asmx? Wsdl to see the WSDL I get the following error:
Server Error in '/WSAppTest' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not create type 'WSAppTest.WSTest'.

Source Error:

Line 1: <%@ WebService Class="WSAppTest.WSTest" %>

Source File: /WSAppTest/WSTest.asmx Line: 1

Version Information: Microsoft .NET Framework Version:2.0.50727.8762; ASP.NET Version:2.0.50727.8762
(I try whit .NET 2.0/3.5 and 4.0.)

What I can be doing wrong ?

Is there more WS documentation made with TD in .NET?

You do not have the required permissions to view the files attached to this post.

Posts: 79
Joined: 19 Apr 2017, 15:28
Location: Argentina

Re: Deploying TD 6.1 .NET Web Services on IIS

Post by chelonet » 23 Mar 2018, 19:41

These are the steps I did, according to the manual:

Step 1 : Build your Web Service into a subdirectory i.e. WSAppName\bin.
--> I Build it on my PC

Step 2 : Make sure Microsoft IIS and features are installed in the Operating System.
a Turn Windows Features On or Off.
b ASP feature must be Enabled.
--> Yes, ASP, and ASP 3.5 and ASP 4.5 are installed in Server Manager (Add Roles and Features Wizard)

c Select all components. Security is a good idea for testing.
--> Not yet

Step 3 : Setup ASP .NET Web Service on IIS.
a Move WSAppName\bin to the IIS site.
b Move the .ASMX to the parent directory WSAppName.
--> I copy both files from my PC to server with IIS 8. The .asmx in C:\inetpub\wwwroot\WSAppName and .dll in C:\inetpub\wwwroot\WSAppName\bin

--> TD is not installed on this server. It is not necessary, right?

c Inside the application bin directory copy all what is needed by the WEB service.
Custom assemblies, etc.
--> For now I think I do not need anything.

Step 4 : Register in IIS the application directory as an ASP .NET Application.
a Launch IIS InetMgr.exe
b Right click the WSAppName and select convert to Application.
--> Yes...and select "Applicaton Pool" ".NET v2.0" if build with .NET 2.0/3.5, and ".NET v4.5" if build with .NET 4.0...Its right ?

In "Applicaton Pool" .NET v2.0 and .NET v4.0 change "Enable 32 bits applicaton" to TRUE

Enable "Directory Browser". This create web.config file
...It is not clear to me that I have to configure in the web.config
In the example, I see that "TDInstallationDir" and "TDSqlInfiFile" are configured. Then you have to install "TD deploy" on the server where IIS is located?

Then, access to http://localhost/WSAppTest/WSTest.asmx

Get error: Could not create type 'WSAppTest.WSTest'

Any Idea ?


Site Admin
Site Admin
Posts: 293
Joined: 05 Mar 2017, 17:19
Location: Munich Germany

Re: Deploying TD 6.1 .NET Web Services on IIS

Post by thomas.uttendorfer » 26 Mar 2018, 08:21

have you installed Gupta Deploy on WebService machine?
Regards Thomas
Thomas Uttendorfer
[ frevel & fey ] Software-System GmbH

Igor Ivanovic
Site Admin
Site Admin
Posts: 1462
Joined: 05 Mar 2017, 12:37
Location: Zagreb, Croatia

Re: Deploying TD 6.1 .NET Web Services on IIS

Post by Igor Ivanovic » 26 Mar 2018, 12:09


If I remember correctly, in some of the 6.x version, the deploy was missing some of the critical dll's for the web service.
Please check that you have at least the following dll's in your web service bin folder:

Igor Ivanovic

Posts: 79
Joined: 19 Apr 2017, 15:28
Location: Argentina

Re: Deploying TD 6.1 .NET Web Services on IIS

Post by chelonet » 26 Mar 2018, 15:25

Hello, thank you both
I did not have the Gupta Deploy installed in WebService ... but apparently it's not necessary ... although it was a good clue ...

It worked, for now, in the following way:
- I installed the Deploy, but it still did not work

-I added the Deploy folder in the Windows Path, and it still did not work.

- I copied all the DLLs of the \netbin folder of my development environment on my PC, in the server folder <drive>:\\inetpub\wwwroot\<wsdir>\bin
And it worked !!!!

Then I did the following tests:
-I uninstalled the Deploy, and it kept working.

-I began to delete the dlls I had copied one by one, and I found that by just leaving:
It was enough for it to work
Then with some more tests, I detected that it is necessary

With which, I infer that it is necessary
Unify.TD.Runtime. *. DLL,
which would be:

But is this correct? Only these?
It is correct to copy them to <drive>: \\inetpub\wwwroot\<wsdir>\bin or they must be somewhere else ?.

It is necessary to configure the file to web.config
What can be done and what should be set in <appSettings> ?


Posts: 79
Joined: 19 Apr 2017, 15:28
Location: Argentina

Re: Deploying TD 6.1 .NET Web Services on IIS

Post by chelonet » 13 Apr 2018, 16:01

Another query:

I am making progress in the construction of a .NET WS, but I got an error and I do not understand why.

If in an "Internal Function" I use the sentences SqlPrepareAndExecute or SqlFetchNext it compiles well, but I get error when TD must create the DLL.
(With other SQL statements like SqlConnect and SqlCommit works OK)

The error is as follows:

--- Begin Error Output ---

Error encountered assembling: C:\Users\.....\AppData\Local\Temp\wkrheebx.y21\ :
warning : Reference to undeclared extern assembly 'Unify.TD.Runtime.Wpf.Windows'.
Attempting autodetectC:\Users\.....\AppData\Local\Temp\wkrheebx.y21\ :
error : Undeclared identifier SAL$WinCtxC:\Users\.....\AppData\Local\Temp\wkrheebx.y21\ :
error : Undeclared identifier SAL$WinCtxC:\Users\.....\AppData\Local\Temp\wkrheebx.y21\ :
warning : Reference to undeclared extern assembly 'System.Web.Services'. Attempting autodetect

--- End Error Output ---

What can be ?


Return to “General Discussion”

Who is online

Users browsing this forum: [Ccbot] and 0 guests