I Execute the program in DEBUG mode using [ASP NET Developement
Server] and the error does not happen, now when I try to access the
program by the browser generates the error below:
Server Error in '/SEG/SEGW0102_2' Application.
--------------------------------------------------------------------------------
O filtro de mensagens indicou que o aplicativo está ocupado.
(Exception from HRESULT: 0x8001010A (RPC_E_SERVERCALL_RETRYLATER))
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: O
filtro de mensagens indicou que o aplicativo está ocupado. (Exception
from HRESULT: 0x8001010A (RPC_E_SERVERCALL_RETRYLATER))
Source Error:
Line 121: 'Find and replace [APOLICE].
Line 122: Dim v_sApolice As String = v_oDtResultado.Rows
(0)("APOLICE")
Line 123: objDoc.Content.Find.Execute
(FindText:="[APOLICE]", _
Line 124:
ReplaceWith:=v_sApolice, _
Line 125:
Replace:=Word.WdReplace.wdReplaceAll)
Source File: D:\SEG\SEGW0102_2\Exportar.aspx.vb Line: 123
Stack Trace:
[COMException (0x8001010a): O filtro de mensagens indicou que o
aplicativo está ocupado. (Exception from HRESULT: 0x8001010A
(RPC_E_SERVERCALL_RETRYLATER))]
Microsoft.Office.Interop.Word.DocumentClass.get_Content() +0
SEGW0102.Exportar.GerarArquivo(String p_sArquivoDoc, String
p_sCaminho) in D:\SEG\SEGW0102_2\Exportar.aspx.vb:123
SEGW0102.Exportar.Page_Load(Object sender, EventArgs e) in D:\SEG
\SEGW0102_2\Exportar.aspx.vb:56
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+1436
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1873;
ASP.NET Version:2.0.50727.1433
regards,
Erick Eduardo