bugs >> VB5 error

by V2lsbGlhbSBMZW1l » Thu, 11 May 2006 03:28:01 GMT

Hello,

I have a problem with VB5 using RDO component.
I cant compile the project because this error occur "Compiler Error/
Permission denied" in line with rdo command.
What i can do?

Tks


bugs >> VB5 error

by MikeD » Thu, 11 May 2006 03:51:50 GMT







More detailed information would be helpful. I'm not even entirely sure if
you mean a compile-time error or run-time error. What is the exact line of
code that causes the compile-time error? It's possible it really has nothing
to do with RDO. What type of project is this? Mainly, is it an ActiveX
project and do you have Binary Compatibility set? If so, is the
compatibility file the same as the one you're trying to compile? If so,
that's the problem. VB opens the compatibility file and leaves it open;
therefore, you can't overwrite it. You'll get this error if ANYTHING has
the file open. For example, maybe it's in use by another app. If this is a
standard EXE project, make sure the compiled program is not running (see
what I mean about more information being helpful?).

A couple things to check:

1. Do you have write permissions for the folder you're compiling to?
2. Is IIS involved in any way? If so, you must shutdown IIS because it
keeps the file open.
3. Are you using DCOM?
4. Are you using MTS?

Maybe one or more of the following will help.

PRB: "Runtime Error 70 : Permission Denied" Occurs When Attempting to Invoke
the Methods of a Secure MTS Object from a VB Application
http://support.microsoft.com/kb/252711/en-us

BUG: Permission Denied Error Message When You Try to Recompile a Visual
Basic Project with a Public UDT and Binary Compatibility
http://support.microsoft.com/kb/282233/en-us

How To Troubleshoot Run-time Error '70' in DCOM Applications
http://support.microsoft.com/kb/180384/en-us


--
Mike
Microsoft MVP Visual Basic




bugs >> VB5 error

by V2lsbGlhbSBMZW1l » Thu, 11 May 2006 19:16:01 GMT

Hello Mike....
I created another project EXE with RDO references.
In the project i wrote just this line: "msgbox rdoerrors.count", but in this
line i had a compiler error "Compiler Error> Permission denied"

It is a simple project: No IIS, No MTS, No DCOM and i have write permissions.

Tks








Similar Threads

1. 2 vb5 error msgs - Visual Basic/VB

2. Error sending to Exchange 2000 via MAPI and VB5

Hi

I am getting the following return when sending an IPM.Document via VB5
code using MAPI, to a profile on an Exchange 2000 server:

Your message did not reach some or all of the intended recipients

Subject: Staffware work item
Sent: 14/05/04 11:52

The following recipients could not be reached:

dt3bum01 on 14/05/04 11:54

Unable to deliver the message due to a recipient problem
MSEXCH:MSExchangeIS:Coors Brewers Staffware:BBHBLIS1

The code being used to send the message is below:

----------------------------------------------

Private Sub SendWorkItemToUser(ByVal UserID As String, _
                               ByVal FileName As String, _
                               ByVal sMsgSubject As String)

' sends the Work Item onto a user
' the MAPI message will contain the field name/values
    
    Const Routine = "SendWorkItemToUser"
        
        On Error GoTo Error_Routine
        
        Dim objSession As MAPI.Session
        Dim objMessage As MAPI.Message
        Dim objOneRecip As MAPI.Recipient
        Dim bAmbig As Boolean
        Dim sRecipient As String
    
1       Set objSession = objThisMessage.Session
2       Set objMessage = objSession.Outbox.Messages.Add
    
3       AddFieldsToMessage objMessage
    
4       With objMessage
5           .Subject = sMsgSubject
6           .Text = ReplaceWildcards("Workflow Form Reference
$Reference$")
7           If eExclusions.FormType <> "" Then
8               .Type = eExclusions.FormType
            Else
9               .Type = "IPM.Document"
            End If

10          AddAttachments objMessage
        
11          Set objOneRecip = .Recipients.Add
        
            ' kd 5/12/1997
            ' here we used to give it the name
            ' now we go looking for the actual address
            ' look in GetRecipAddress
            ' anh 13/10/98
            ' GetRecipAddress only works if you search with display
            ' name. i.e. "Jones, David (Brewers)" rather than
"JonesD3"
            ' To avoids ambiguous recipient:
            ' 1. use alias prefix (e.g. MS:BREWERS/BBTESDEV/)
            ' 2. If still ambiguous then this is because alternatives
            '    to say "JonesD" are "JonesD1" and "JonesD2".  In this
            '    case, loop through the alternatives looking for the
            '    exact match. (GetAmbigRecipAddr)
13          sRecipient = gINI_AliasPrefix & UserID
14          With objOneRecip
15              .Name = sRecipient
16              .Type = ActMsgTo
17              .Resolve showDialog:=False
18              If bAmbig Then
19                  RaiseEvent Progress("Sending to " & .Address)
                Else
20                  RaiseEvent Progress("Sending to " & sRecipient)
                End If
            End With
21          .Update
22          .Send showDialog:=False, savecopy:=False
        End With
Exit_Routine:
    Exit Sub
Error_Routine:
    Select Case Err.Number
        Case ActMsgE_AMBIGUOUS_RECIP
            Call GetAmbigRecipAddr(UserID, objOneRecip)
            bAmbig = True
            Resume Next
        Case ActMsgE_NOT_FOUND
            Debug.Assert False
            Err.Raise eBMAError.eMapiUserNotFound, Err.Source & "(" &
Erl & ")", "Unable to resolve address for user " & UserID & ",
Staffware user name and Exchange Name differ"
        Case Else
            Debug.Assert False
            Debug.Print Err.Number, Routine & ":" & Err.Source & "(" &
Erl & ")", Err.Description
            Err.Raise Err.Number, Routine & ":" & Err.Source & "(" &
Erl & ")", Err.Description
    End Select
End Sub
--------------------------------------

This only fails when sending to a profile on an Exchange 2000 server,
it works fine when sending to Exchange 5.5. When opening the return
message, and clicking send again, the message is sent successfully,
and I can also successfully send emails to the dt3bum01 profile from
Outlook.

The Exchange 2000 server logs show nothing, as if the message isn't
even getting to the server.

Can anyone help?

Many thanks


Rich (change nospam to mlu035 to reply direct)