I got some problem with Microsoft.Office.Interop.Visio.SaveAsWeb.I

N

nguyennx

Dear guru
+ I'm using C# 2005 and Visio library for converting from visio file to html
+. Infact my application work good in Window application, but when i move them
to WindowService I got the problem [The server threw an exception.
(Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT)] when call function
Createpages for generating visio file to html file
+. This is my code

_vsoApp = new InvisibleAppClass();
_vsoSaveWeb = (VisSaveAsWeb) _vsoApp.SaveAsWebObject;
_vsoSettings = (VisWebPageSettings) _vsoSaveWeb.WebPageSettings;
_vsoSettings.QuietMode = int.MaxValue;
_vsoSettings.SilentMode = int.MaxValue;
_vsoSettings.TargetPath =
vsoFile.Replace(CommonVar.Conversion.VsoVar.VSO_EXT,
CommonVar.Conversion.VsoVar.RESULT_EXT);
vsoDoc = _vsoApp.Documents.Open(vsoFile);
_vsoSaveWeb.AttachToVisioDoc(vsoDoc);
_vsoSaveWeb.CreatePages(); => I got exception at here
+. Please talk to me What should i do now

Thanks
Nguyennx
 
N

nguyennx

Dear Guru
+. Thanks for your help
+. Infact the problem i got in the part is permission in IIS
+. And after i change the permission my app can work good

Thanks
nguyennx

Bill Morein said:
Visio is not designed to be able to run as a service. I'd recommend reading
this article to understand why (and for some advice on what to do if you
really need to do it):

http://support.microsoft.com/kb/257757/en/


--
Bill Morein
http://blogs.msdn.com/wmorein
Visio
Microsoft Corporation


nguyennx said:
Dear guru
+ I'm using C# 2005 and Visio library for converting from visio file to
html
+. Infact my application work good in Window application, but when i move
them
to WindowService I got the problem [The server threw an exception.
(Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT)] when call
function
Createpages for generating visio file to html file
+. This is my code

_vsoApp = new InvisibleAppClass();
_vsoSaveWeb = (VisSaveAsWeb) _vsoApp.SaveAsWebObject;
_vsoSettings = (VisWebPageSettings) _vsoSaveWeb.WebPageSettings;
_vsoSettings.QuietMode = int.MaxValue;
_vsoSettings.SilentMode = int.MaxValue;
_vsoSettings.TargetPath =
vsoFile.Replace(CommonVar.Conversion.VsoVar.VSO_EXT,
CommonVar.Conversion.VsoVar.RESULT_EXT);
vsoDoc = _vsoApp.Documents.Open(vsoFile);
_vsoSaveWeb.AttachToVisioDoc(vsoDoc);
_vsoSaveWeb.CreatePages(); => I got exception at here
+. Please talk to me What should i do now

Thanks
Nguyennx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top