How to make AutomationFactory available for a silverlight application in a sharepoint site?
问题 I am trying to create a silverloght application to open visual studio and deploy it as a webpart in sharepoint site. I am using following code: dynamic cmd = AutomationFactory.CreateObject("WScript.Shell"); cmd.Run("devenv.exe", 1, true); this is working fine in standalone silverlight application, however, when I added this as a webpart in sharepoint site. It gives an error that "This operation is not supported in the current context". Based on my search, the reason for this may be is that