as you probably know I migrated someone's windows 2000 domain to a windows 2008 R2 domain
I have copied customer's apps and data over , the software vendor was at the scene. we installed his apps' dlls; everything seemed working last friday , but some apps just wont run on the new w2008 R2 server; program devolper fixed some; but the mailcatcher program just wont run, it wont get messages from pop server on the internet
John eventually told me, he uses a jmail.dll; how do I get this dll to work on a x64 server, luckily I found
http://stackoverflow.com/questions/768336/wrap-32-bit-dll-for-64-bit-operating-system-to-work-with-regsvr32-exe
http://blog.kudositsolutions.co.uk/tag/jmail-x64/
I used the COM+ hack
anyway, I just copy / paste here
this works for me and the customer, they said I am a genius, but just no ipads ihone5, ..i messages
Solution
Please follow the steps below:
Make sure that option “Apply restriction policy” is unchecked.
Set “Impersonate Level” to “Anonymous”
I have copied customer's apps and data over , the software vendor was at the scene. we installed his apps' dlls; everything seemed working last friday , but some apps just wont run on the new w2008 R2 server; program devolper fixed some; but the mailcatcher program just wont run, it wont get messages from pop server on the internet
John eventually told me, he uses a jmail.dll; how do I get this dll to work on a x64 server, luckily I found
http://stackoverflow.com/questions/768336/wrap-32-bit-dll-for-64-bit-operating-system-to-work-with-regsvr32-exe
http://blog.kudositsolutions.co.uk/tag/jmail-x64/
I used the COM+ hack
anyway, I just copy / paste here
this works for me and the customer, they said I am a genius, but just no ipads ihone5, ..i messages
Solution
Please follow the steps below:
- First of all if you have already registered the DLL in x64 Operating System the unregister the DLL. To do that just type the following in the run command “regsvr32 /u ” something like “regsvr32 /u C:\MyDLL\ASXUpload.DLL”. If you have already unregistered the DLL from the x64 OS then no need to run this step.
- Also make sure that you have not kept your DLL inside the Windows folder which is normally C:\Windows. For this example I have kept the DLL in the following folder C:\MyDLL.
- Now we need to add the COM+ Components using Component Services of Microsoft. To start Component Services, go to Control Panel / Administrative Tools/ Component Services. Once inside component Services, drill down into Computers, then My Computer, then COM+ Applications. Then Right-click on COM+ Applications and choose “New” -> “Application”.
- At “Welcome to the COM Application Install Wizard” screen, click “Next >”.
- Click on “Create an Empty Application” button.
- Enter the name. Since my DLL name is ASXUpload.dll so I have typed in the name as “ASXUpload”. When asked “Library or Server”, select “Server”.
- Click “Next >” button and then choose “This User”.
- Enter the User or click Browse to select the user. Clicking Browse is safer, to ensure that the correct domain and spelling are used. Enter the password and confirm the password. Warning, be sure to include the domain/username if required. Click on “Finish”. (Note: We recommend “This User”, otherwise, someone must be logged onto the server in order for DLL to run.). In my case I have chosen the domain administrator account. You can also add a Service Account. If you are not sure please consult with your system administrator.
- Now “Add Application Roles” screen will appear. Do not add anything just click on the “Next >” button.
- Now “Add Users to Role” screen appear. Do not add anything just click on the “Next >” button.
- Now you will see that under Component Services -> Computers -> My Computer -> COM+ Application -> you will see the newly added application. In this example the application name would be “ASXUpload”. Now drill down the newly added application “ASXUpload” by clicking the “+” icon and you will see “Components”.
- Now right-click on “Components” and then choose “New Component”. At “Welcome to the COM Application Install Wizard” screen, click “Next >”.
- Click on “Install new component(s)” and now select the DLL which you want to register. In the case it would be “C:\MyDLL\ASXUpload.DLL”.
- Once you select the DLL you will see that it will show you the components found. Click on the “Next >” button to proceed and finally hit the “Finish” button to complete.
- Now is the tricky part. Right click on the application you have added which you will find under Component Services -> Computers -> My Computer -> COM+ Application. In my case the application name is “ASXUpload”. After you right click on the Application select “Properties”. The application properties window will open up. Click on the “Security” tab. In the Security tab make sure that under “Authorization” section the checkbox “Enforce access checks for this application” is unchecked.
Make sure that option “Apply restriction policy” is unchecked.
Set “Impersonate Level” to “Anonymous”
- If you want to access the DLL from web Application then make sure that you add the IUSR and IWAM account. To do this go to COM+ Application -> Application Name (In this case it will be ASXUpload) -> Roles -> CreateOwner -> Users. Right click on the Users and add the IUSR and IWAM account used by Internet Information Server.
- Also set the NTFS permission on the folder where you kept the DLL. In this case I have kept the DLL inside the folder C:\MyDLL. Now right click on the folder “MyDLL” and go to the security tab and then add the IUSR and IWAM account.
You saved my system!
ReplyDeleteMany, many Thanks!
Artur - Brazil