Question

Im trying to write a web client which lets you manage virtual machines using VMWare API(Vix)
Im using WCF in my server technology and a website, Im also using VMWare Tasks Wrapper that uses VMWare API

When Im trying to connect to my ESXi Server using the following(as explained in the help file) :

vmWareServer.ConnectToVMWareVIServer(new Uri(string.Format("https://{0}/sdk",  
                                    hostServerIP)), userName, password, timeoutInSecs);  

On regular C# project everything seems to work right...However when trying to run this line from a website application I get a TimeOut exception.

I've tried to change the SendTime/RecieveTime limits to 2 minutes in the Web.Config file, However after half second it throws this Timeout Exception...

Is any one familier with this API? Is it connected to that the Wrapper is trying to connect to Uri while its already in Web application?

I can't figure out what's going on, I've tried even in VMWare forums but no answer...

Thanks !

Was it helpful?

Solution

Try running your IIS application pool under a different user ID. For testing, try the same user ID you are using when running the winforms app. When things work in a console/winforms app, but fail in IIS, it is usually permissions related.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top