Hi All,
We are facing a problem and are not able to resolve it since last 2 weeks.
We are using Win2k Server with IIS 5.0 with integrated windows authentication.
The problem is as below:
We have two Exes: PrimaryExe and a SecReportExe for Reports. The primaryExe continuously runs as a background process checking continuously whether any Report has been submitted. If a report has been submitted, it creates an instance of SecReportExe (max upto 5) and completes the Report.
The problem is whenever a PrimaryExe tries to create an object, the error message says access denied.
There was a problem that our production box wasnt built up properly. While the box was being built the Production box name was say "TestBox" and after the IIS was installed its name was changed to "ProdBox". Because of this we have 2 pairs of IUSR and IWAM users. eg IUSR_TestBox and IUSR_ProdBox.
We tried giving all the permissions to both the users but havent yet able to solve the problem.
The code in PrimaryExe which creates and instance of SecReportExe is as follows:
Private Sub Class_Initialize()
' # 001. added the error handler.
Dim lstrErrDesc As String
Dim lintfh As Integer
On Error GoTo ErrorHandler
'mObjExeInstance.
Set mObjExeInstance = CreateObject("srvSecReportExe.clsSecReport"
busy_flag = False
' # 001.
Exit Sub
ErrorHandler:
lstrErrDesc = Err.Description
On Error Resume Next
lintfh = FreeFile
Open App.Path & "\RPTLOG.TXT" For Append Shared As #lintfh
Write #lintfh,
Write #lintfh, "Error - PrimaryReportExe on " & Date & " at " & Time
Write #lintfh, "Error In Creating SecreportExe - " & Trim(lstrErrDesc)
Write #lintfh,
' Close before reopening in another mode.
Close #lintfh
' ' Send the error message as a mail to Maintenance team.
' frmReport.gfnblnSendMail lstrErrDesc
End Sub
Could you please advise us on what could exactly be creating a problem because we do not want to rebuild the server if possible. ;-)
Thanks in advance
We are facing a problem and are not able to resolve it since last 2 weeks.
We are using Win2k Server with IIS 5.0 with integrated windows authentication.
The problem is as below:
We have two Exes: PrimaryExe and a SecReportExe for Reports. The primaryExe continuously runs as a background process checking continuously whether any Report has been submitted. If a report has been submitted, it creates an instance of SecReportExe (max upto 5) and completes the Report.
The problem is whenever a PrimaryExe tries to create an object, the error message says access denied.
There was a problem that our production box wasnt built up properly. While the box was being built the Production box name was say "TestBox" and after the IIS was installed its name was changed to "ProdBox". Because of this we have 2 pairs of IUSR and IWAM users. eg IUSR_TestBox and IUSR_ProdBox.
We tried giving all the permissions to both the users but havent yet able to solve the problem.
The code in PrimaryExe which creates and instance of SecReportExe is as follows:
Private Sub Class_Initialize()
' # 001. added the error handler.
Dim lstrErrDesc As String
Dim lintfh As Integer
On Error GoTo ErrorHandler
'mObjExeInstance.
Set mObjExeInstance = CreateObject("srvSecReportExe.clsSecReport"

busy_flag = False
' # 001.
Exit Sub
ErrorHandler:
lstrErrDesc = Err.Description
On Error Resume Next
lintfh = FreeFile
Open App.Path & "\RPTLOG.TXT" For Append Shared As #lintfh
Write #lintfh,
Write #lintfh, "Error - PrimaryReportExe on " & Date & " at " & Time
Write #lintfh, "Error In Creating SecreportExe - " & Trim(lstrErrDesc)
Write #lintfh,
' Close before reopening in another mode.
Close #lintfh
' ' Send the error message as a mail to Maintenance team.
' frmReport.gfnblnSendMail lstrErrDesc
End Sub
Could you please advise us on what could exactly be creating a problem because we do not want to rebuild the server if possible. ;-)
Thanks in advance