Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Application not functioning when deployed to server 1

Status
Not open for further replies.

ma77c

Programmer
Jan 27, 2006
28
CA
I have an application that uses the Altova's XML Engine .net interface to perform XSL transformations and run XQueries. To do this I have added a reference to the necessary assembly. When I run the application in Visual Web Developer (VWD), everything works perfectly. However, when I deployed the application to the server, it does not.

I don't have much experience with this interface and I can't find much in the way of documentation. I do believe my issue is a result of incorrect security permissions though and not anything to do with the engine itself.

Code:
Dim app As New Altova.AltovaXML.Application()
is the code to launch the engine which executes an .exe and brings up a command prompt in the background. As I said this works fine in VWD, but not from the server and I am not sure what is required in the way of permissions to allow this to work.

Any insight would be greatly appreciated. Thanks.
 
...everything works perfectly. However, when I deployed the application to the server, it does not.
How does it not work? Any errors? Unexpected results?


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
For a while, the page was loading but it was unable to read any of the data from the XML document.

Now I'm getting this exception:
System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {533BAC07-C702-4D91-8D37-39FDC919A19C} failed with HRESULT: 0x80070005(Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))).
 
OK, so it's definately a permissions problem then (at least that narrows it down a bit).

Is there a DCOM entry for the Altova application?


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Is there a DCOM entry for the Altova application?

Sorry, I don't know what you mean by that. Could you specify where I should look to check? Thanks.
 
It's in the component services screen in windows (type dcomcnfg into the Run box on your Start menu).


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Yes, AltovaXML Application Class is listed there.
 
OK, go into the properties for it, customise both the launch and access permissions and add the relevant user (the default user will be ASPNET or Network Service for win2003). See if that makes any difference...


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
It made all the difference. I suspected there were some permissions lacking somewhere.

Thank you ca8msm for your quick and very helpful replies!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top