Thursday, January 16, 2014

VS: Web Publish raises an error: Could not connect to the remote computer, ... , ERROR_COULD_NOT_CONNECT_TO_REMOTESVC. The remote server returned an error: (403) Forbidden.

Above error was raised when we tried to deploy Web Application to a remote IIS server:

The detailed message was:

I tried to resolve an error as shown in, but without any success. I gone through the link and checked all the points mentioned there. Both Web Management Service and Web Deployment Agent Service are running fine. In event log on remote server I don't found also any errors. Strange.

Finally I found verry simple (but why not documented) solution. To fix the problem you should go to IIS management console (on remote machine of course) and select appropriate host:

 Next you should select Management Service, as shown above.

In management service form you should check "Enable remote connections" checkbox which is in default unchecked. Next restart IIS instance and voila, Web Deployment works.

ADF: difference between Create and CreateInsert

Today I met a simple question: what difference exists between Create and CreateInsert operation?

Operation "Create" will create the record but not put it in the VO's recordset whereas operation "CreateInsert" will also create new, empty record and puts it in recordset.

There is a practical effect of described difference. Create Insert should be used to insert new record to af:table, because when you use Create instead, record will be created but not shown in the table. With adf forms you can use Create or CreateInsert.