Outlook Redemption gives error on initialisation - outlook-redemption

Private Sub Form_Load()
Dim RDOSession As Redemption.RDOSession
Set RDOSession = CreateObject("Redemption.RDOSession")
End Sub
Gives the error:
Application-defined or Object-defined error
-2147221233
When the application loads. What might be the problem?

The error means Redemption is not installed.
Did you install redemption.dll/redemtpion64.dll with regsvr32.exe?
What is the bitness of your app and Outlook?

Related

Getting Delphi to read a database with a new version of Microsoft Access

We use a Delphi 10 programme that reads in an Access database. I do not deeply understand how it does it, except that I believe it uses units called DAO.pas and DAO_TLB.pas.
I recently upgraded from Office 2007 to Office 2016, and since then the Delphi programme is unable to read from the database; it gives the error:
Project MyProj.exe raised exception class EOleSysError with message 'Class not registered'.
I have tried to search to find how to fix this but am struggling because I don't really understand what's going on under the hood. I tried to install the Access 2016 type library, but that didn't seem to make any difference.
Extremely grateful for any help.
Thanks,
Tom
EDIT: DAO.pas is here. DAO_TLB.pas is where the error is triggered; the function which errors is:
class function CoDBEngine.Create: _DBEngine;
begin
Result := CreateComObject(CLASS_DBEngine) as _DBEngine;
end;
Where CLASS_DBEngine is a constant declared as:
CLASS_DBEngine: TGUID = '{CD7791B9-43FD-42C5-AE42-8DD2811F0419}';
I have also just noticed that, when the error occurs, if I click continue rather than break, a new error appears, saying:
Class not registered, ClassID: {CD7791B9-43FD-42C5-AE42-8DD2811F0419}
i.e. the ClassID is the CLASS_DBEngine constant.

Selenium Chrome Driver can't be found

I am trying to use Selenium web driver. I am using asp.net mvc. I have set up a very basic test. I'm basically just trying to open the browser.
Imports NUnit.Framework
Imports OpenQA.Selenium
Imports OpenQA.Selenium.Chrome
Imports OpenQA.Selenium.Firefox
<TestFixture()>
Public Class SeleniumEg
Dim driverFF As IWebDriver
Dim driverGC As IWebDriver
Dim driverPath As String = "c:\chromedriver.exe"
<Test()>
Public Sub OpenBrowser()
driverGC = New ChromeDriver(driverPath)
driverGC.Navigate().GoToUrl("https://www.google.ie/")
End Sub
End Class
But when I run test i am getting this Error Message
Result Message:
OpenQA.Selenium.DriverServiceNotFoundException : The file c:\chromedriver.exe\chromedriver.exe does not exist. The driver can be downloaded at http://chromedriver.storage.googleapis.com/index.html
I have also tried putting the driver in the soloution, but I am still getting driver does not exist. The error message seems to repeat the file name when saying its location:
c:\chromedriver.exe\chromedriver.exe when it should be c:\chromedriver.exe
From the error message, I think the problem should be evident
Result Message: OpenQA.Selenium.DriverServiceNotFoundException : The file c:\chromedriver.exe\chromedriver.exe does not exist. The driver can be downloaded at http://chromedriver.storage.googleapis.com/index.html
The ChromeDriver constructor (pardon me if I am not using the proper .NET terminologies, I am a Java guy) expects the directory in which the chromedriver.exe binary exists and not the actual location of the binary itself. See here
So please change
Dim driverPath As String = "c:\chromedriver.exe"
to
Dim driverPath As String = "c:\"
and see if that helps fix your issue.

Rotativa - QT untested version

Up until now, my Rorativa (latest stable version - 1.6.1) has been working beautifully in my MVC project.
My code was originally
return new Rotativa.ActionAsPdf(string.Format("PrintPage/{0}", id));
and I get a nice happy pdf version of my page
But now I want to do some more advances stuff, so I do this
return new Rotativa.ActionAsPdf(string.Format("PrintPage/{0}", id))
{
CustomSwitches = "--print-media-type --footer-html " + Url.Action("Footer",id)
};
and then when I do I get this error
Qt: Untested Windows version 6.2 detected!
QMetaObject::invokeMethod: No such method WebCore::SocketStreamHandlePrivate::socketSentData()
Error: Failed loading page http:///Invoice/Footer?page=1&section=Account Queries VAT No.
0&title=Ben Dover-Invoice No:
A0120852&subsection=MATERIALS&frompage=1&subsubsection=&topage=2&doctitle=Ben Dover-Invoice No:
A0120852&webpage=http://localhost:2066/Invoice/PrintPage/386&time=01:01:59 PM&date=2015/01/06
(sometimes it will work just to ignore this error with --load-error-handling ignore)
Error: Failed loading page http:///Invoice/Footer?page=2&section=Account Queries VAT No.
0&title=Ben Dover-Invoice No: A0120852&subsection=TOTAL R
1รก850.70&frompage=1&subsubsection=&topage=2&doctitle=Ben Dover-Invoice No:
A0120852&webpage=http://localhost:2066/Invoice/PrintPage/386&time=01:01:59 PM&date=2015/01/06
(sometimes it will work just to ignore this error with --load-error-handling ignore)
QPaintDevice: Cannot destroy paint device that is being painted
pure virtual method called
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
terminate called without an active exception
I tried following the suggestion and add --load-error-handling ignore this removes the error, but my footer doesn't load
We have the same problem on the project. Additionally report work on localhost but not in production server. Solution for the problem is to add route, so the static IP address will be represented as local on the server.
http://technet.microsoft.com/en-us/library/cc757323%28v=ws.10%29.aspx
On some servers that can not be added for some reasons so we add Microsoft loopback adapter to do the same thing.
https://4sysops.com/archives/how-to-install-loopback-adapter-in-windows-8/
After that everything works perfectly.

QBO - Error while quering TaxRate with QB V3 API

I get an error while querying TaxeRate from QBO using QB API V3.
Here is my request:
String query = "Select * FROM TaxRate ";
List<? extends IEntity> result = service.executeQuery(query).getEntities();
below is what i get in return
Some other Exception in SDK or network happened: org.codehaus.jackson.map.JsonMappingException: Can not construct instance of com.intuit.ipp.data.SpecialTaxTypeEnum from String value 'NO_TAX': value not one of declared Enum instance names
at [Source: N/A; line: -1, column: -1] (through reference chain: com.intuit.ipp.data.TaxRate["SpecialTaxType"])
Can someone help me?
Thank you.
There is a server side change (Addition of a new Enum value) which is causing this devkit break. A newer version of devkit with latest changes (XSD) will be released soon. That will resolve the issue.
As a temporary workaround, you can try to call this without using devkit. Sample V3 call (using dev-defined) - https://gist.github.com/IntuitDeveloperRelations/0913b4c224de758fde0a
Update
This change might get rollbacked from the server side soon. In that case, current devkit will work as it is.

dotnetopenauth samples "Attempt by method 'DotNetOpenAuth.OAuth2.WebServerClient ..."

I've just been spending hours on an issue that some others have reported to experience too.
The Sample.Oauth2.OAuthClient projet sample does not work for me.
Let me explain in details:
I got the latest version of dotnetopenauth from github (december 12th)
I ensured to "unblock" the zip before extracting all files.
I opened the solution with VS2012 (under Win7)
When starting the
Sample.Oauth2.OAuthClient project,
the overall build process succeed.
The website is started.
When calling
Sign in with Facebook (OAuth 2.0)
I get
Attempt by method
'DotNetOpenAuth.OAuth2.WebServerClient+d__3.MoveNext()'
to access method
'System.Collections.Generic.List`1..ctor()' failed.
Line 106: // verifiable for the same user/session.
Line 107: // If the host is implementing the authorization tracker
though, they're handling this protection themselves.
Line 108: var cookies = new List();
Line 109: if (this.AuthorizationTracker
== null) {
Line 110: string xsrfKey =
MessagingUtilities.GetNonCryptoRandomDataAsBase64(16, useWeb64: true);
That the provided code is not able to access "System.Collections.Generic.List" bewilders me...
I tried the following :
adding
<system.web>
<securityPolicy>
<trustLevel name="Full" policyFile="internal"/>
</securityPolicy>
to web.config.
Note that checking just before the line the "CurrentTrustLevel" results in "Unrestricted".
I tried to publish to local IIS 7,
tried running the pool under "administrator"
and finally
I tried with VS2013 on another, "clean" installation of Win7,
All attempts lead to the same result ...
It seems that the errors comes from some System.Net Dlls provided with the samples : they cannot be run by asp.net for security reasons (?)
Any idea ?

Resources