I want to get list of Domino Servers on the network, and accordingly login into particular server.
I am using C# / Interop.Domino.dll
Any ideas how to do this?
Hello all, first, I can't stand Crystal! Okay, that's off my chest...
Now, we have an old VB6 app we maintain for a client, which uses the Crystal Automation library to programatically change the record selection formulas in a bunch of Crystal Reports 8.5 reports.
There are two reports which are ALMOST identical. I had to change them recently to add another field from another table. When I added the table in to the reports though, while it added it in the visual designer, it did not add it in the FROM clause of the SQL statement. So, I manually edited the SQL statement to add in the additional join. KO, works great. If i run the reports in Crystal preview mode, they work exactly as expected.
Now, the users went to test the changes from within the VB app. One of the reports works fine and dandy. The other report however, is failing to set the selection formula as expected.
The code sets the selection formulas using the function PESetSelectionFormula. I verified that the string being passed in to the function as the new selection formula is correct via a step-through examination of the variables. The call to PESetSelectionFormula seems to be working okay, and is returning a value of 1, which as near as I can find anywhere indicates success. (The other report, which is working fine from code is also returning 1.)
However, the report is failing with an error: Error Code: 534 - Error detected by database DLL. The code, for debugging purposes dumps out the SQL string currently being used by the report. The SQL coming out of the report is:
SELECT ... FROM ...
WHERE
ORDER BY ...
As you can see, the WHERE clause is blank, which I would imagine is why the database DLL is upchucking on this statement. I don't understand why the automation library is not setting the WHERE clause even though the call to PESetSelectionFormula is being passed a valid string and is returning success. I thought perhaps it was because I had manually edited the SQL in the report to add the table it wasn't adding, but I did the same thing in the other nearly identical report, and that one is working fine.
Anyone have any ideas why PESetSelectionFormula might report success but not actually do anything?
P.S. I have already tried doing a Database Verify Database from the menus, and that said the report was all up to date and did not help at all.
I am unable to uninstall an Assembly (log4net.dll) from GAC. It is giving following error.
"Assembly is required by one or more applications".
However if I search the Assembly using ProcessExplorer nothing comes up? How can I remove this Assembly from GAC?
Hi All,
Currently i can access nsf all nsg files.But once i uninstall Lotus Notes form my machine program doesn't work.
I am using "Introp.Domino.dll".
Language: C#
Regards,
Preeti
How can i get a npapi plugin. do i have to write for my own. or i can get it from somewhere. and please tell me that how to create a npapi.dll from npapi.h file. thanx.
Hi,
I've got the following error when builing my project.
The type or namespace name 'OvuMenu' could not be found (are you missing a using directive or an assembly reference?)
But I have put a using in my code and a reference to the dll.
It is a WPF application that exists of 3 projects.
I checked the references, even intellisense works when I put the using directive in the page.
thanks,
Filip
Hi,
we are developing a SOAP webservice (Apache/PHP). All run well for small size calls, but with a 1Mb soap call (the HTTPS call size is 1MB) our Delphi Soap client stop with a timeout on all PC but one, and our PHP clients run well with a default_socket_timeout=300, but stop with a "Error Fetching http headers" with default_socket_timeout=60.
How can we change the timeout for Delphi? In fact this timeout seem to be in a Windows XP network library (wininet.dll called by soaphttptrans.pas)
Thanks
Cédric
hi, I used the above and wrote this:
<class name="umple.pts.domain.coreEntities.Stop">
<property name="StopName" sig="()Ljava.lang.String;">
<getter name="getName" sig="()Ljava.lang.String;" />
<setter name="setName" sig="(Ljava.lang.String;)Z" />
</property>
<property name="StopId" sig="()I">
<getter name="getStopId" sig="()I" />
<setter name="setStopId" sig="(I)V" />
</property>
</class>
<class name="umple.pts.domain.coreEntities.Line">
<property name="LineName" sig="()Ljava.lang.String;">
<getter name="getName" sig="()Ljava.lang.String;" />
<setter name="setName" sig="(Ljava.lang.String;)V" />
</property>
<property name="LineId" sig="()I">
<getter name="getLineId" sig="()I" />
<setter name="setLineId" sig="(I)V" />
</property>
<property name="FirstEndStop" sig="()umple.pts.domain.coreEntities.Stop;">
<getter name="getFirstEndStop" sig="()umple.pts.domain.coreEntities.Stop;" />
<setter name="setFirstEndStop" sig="(umple.pts.domain.coreEntities.Stop;)Z"
/
/
/
I get an error while generating the dll file:
D:\PTS\PTS_SVN\Libraries\ikvm-0.44.0.5\binikvmc -remap:map.xml -target:library
PTSDomain.jar
Note IKVMC0002: output file is "PTSDomain.dll"
Error: Invalid property signature '()umple.pts.domain.coreEntities.Stop;' in rem
ap file for property umple.pts.domain.coreEntities.Line.FirstEndStop
Error: Invalid property getter signature '()umple.pts.domain.coreEntities.Stop;'
in remap file for property umple.pts.domain.coreEntities.Line.FirstEndStop
Error: Invalid property setter signature '(umple.pts.domain.coreEntities.Stop;)Z
' in remap file for property umple.pts.domain.coreEntities.Line.FirstEndStop
Error: Invalid property signature '()umple.pts.domain.coreEntities.Stop;' in rem
ap file for property umple.pts.domain.coreEntities.Line.SecondEndStop
Error: Invalid property getter signature '()umple.pts.domain.coreEntities.Stop;'
in remap file for property umple.pts.domain.coreEntities.Line.SecondEndStop
Error: Invalid property setter signature '(umple.pts.domain.coreEntities.Stop;)Z
' in remap file for property umple.pts.domain.coreEntities.Line.SecondEndStop
Error: Invalid property signature '()[umple.pts.domain.coreEntities.Stop;' in re
map file for property umple.pts.domain.coreEntities.Line.Stops
Error: Invalid property getter signature '()[umple.pts.domain.coreEntities.Stop;
' in remap file for property umple.pts.domain.coreEntities.Line.Stops
Error: Invalid property setter signature '([umple.pts.domain.coreEntities.Stop;)
Z' in remap file for property umple.pts.domain.coreEntities.Line.Stops
D:\PTS\PTS_SVN\Libraries\ikvm-0.44.0.5\bin
Can i use the custom properties or will i have to do that via some other way??
The System.Reactive.dll adds a class AsyncLock to System.Concurrency.
It has a single instance method, Wait, that takes an Action.
The documentation page I found just tells it it pre-release documentation,
so I ask here: What does this class do?
can anyone help me with example on using lapack with latest f#? Or it is not recommended for now?
I searched and only find http://fdatamining.blogspot.com/ but was not able to get
FSharp.PowerPack.Math.Providers.dll compiled.
thanks,
I'm working on a project that will require me to take various .vbproj and .csproj files and determine which version of Visual Studio they were built with and then to get information such as the output dll name etc.
Does anyone know if there is a schema available for these files? Google and MSDN searches are coming up a bit blank.
Hi Mark,
I was looking for the way to use c# for images extraction from the pdf files and found your post regarding GhostScript.dll.
Could you please send me the c# wrapper you refering to?
Thanks,
Eugene
[email protected]
Currently, on my R 2.10.1 installation on Windows XP,
capabilities()["cairo"]
returns False. Loading the package cairoDevice fails with the message "LoadLibrary failure" however the shared library "C:/Programme/R/R-2.10.1/library/cairoDevice/libs/cairoDevice.dll" is there. Any ideas how I can make cairo work on windows?
Some of my routes don't work because the deCarta DDS doesn't find any arc near OLL and/or DLL and the server answers:
RMAN|%S=Cannot find path origin%N=0||
How to make the server search a nearby arc (SNAP) and do the route (RMAN) in a single request?
I am using InstallShield 2008 premium edition. I created one basicMSI project only to target x64 platforms. I changed summary property to "x64".
But this installer is writing registry entries in "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\CompanyName\ProductName" .
I am using both installshield script and vc++ DLL for custom actions.
Why x64 installer is using WOW64 registry ?
I want to take a screenshot of an external website.
Currently my workflow is to start a Firefox instance with the specified URL and take a screenshot using PrintWindow in the Win32 API
When I run this application in IISExpress it works fine but when I run the same application in IIS on a windows VPS it is not working (screenshot is blank).
I don't know what I'm doing wrong?
My code:
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Imaging;
using System.Linq;
using System.Runtime.InteropServices;
using System.Security;
using System.Threading;
using System.Web;
namespace WebTools.Web
{
public class RemoteScreenshot
{
public static Bitmap TakeScreenshot(Process process)
{
// may need a process Refresh before
return TakeScreenshot(process.MainWindowHandle);
}
public static Bitmap TakeScreenshot(IntPtr handle)
{
RECT rc = new RECT();
GetWindowRect(handle, ref rc);
Bitmap bitmap = new Bitmap(rc.right - rc.left, rc.bottom - rc.top);
using (Graphics graphics = Graphics.FromImage(bitmap))
{
PrintWindow(handle, graphics.GetHdc(), 0);
}
return bitmap;
}
[DllImport("user32.dll")]
private static extern bool GetWindowRect(IntPtr hWnd, ref RECT rect);
[DllImport("user32.dll")]
private static extern bool PrintWindow(IntPtr hWnd, IntPtr hDC, int flags);
[StructLayout(LayoutKind.Sequential)]
private struct RECT
{
public int left;
public int top;
public int right;
public int bottom;
}
public static void Save(string url, string file, int timeout = 0)
{
Process.Start(new ProcessStartInfo("C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe", url)
{
CreateNoWindow = false,
WindowStyle = ProcessWindowStyle.Maximized
});
Thread.Sleep(timeout);
var bitmap = TakeScreenshot(Process.GetProcessesByName("firefox").First());
bitmap.Save(file, ImageFormat.Png);
bitmap.Dispose();
Process.GetProcessesByName("firefox").First().Kill();
}
}
}
EDIT: Running Firefox works fine because the AppPool is under another account that has the rights to execute firefox.
I've used a Windows multimedia dll to created a high resolution timer with
timSetEvent()
But the timeSetEvent() page recommends the use of:
CreateTimerQueueTimer()
How can I use CreateTimerQueueTimer() to execute a method every 10 milliseconds in C#?
I want to do exactly what this question asks:
http://stackoverflow.com/questions/586888/cascade-saves-with-fluent-nhibernate-automapping
Using Fluent Nhibernate Mappings to turn on "cascade" globally once for all classes and relation types using one call rather than setting it for each mapping individually.
The answer to the earlier question looks great, but I'm afraid that the Fluent Nhibernate API altered its .WithConvention syntax last year and broke the answer... either that or I'm missing something.
I keep getting a bunch of name space not found errors relating to the IOneToOnePart, IManyToOnePart and all their variations:
"The type or namespace name 'IOneToOnePart' could not be found (are you missing a using directive or an assembly reference?)"
I've tried the official example dll's, the RTM dll's and the latest build and none of them seem to make VS 2008 see the required namespace.
The second problem is that I want to use the class with my AutoPersistenceModel
but I'm not sure where to this line:
.ConventionDiscovery.AddFromAssemblyOf()
in my factory creation method.
private static ISessionFactory CreateSessionFactory()
{
return Fluently.Configure()
.Database(SQLiteConfiguration.Standard.UsingFile(DbFile))
.Mappings(m => m.AutoMappings
.Add(AutoMap.AssemblyOf<Shelf>(type => type.Namespace.EndsWith("Entities"))
.Override<Shelf>(map =>
{
map.HasManyToMany(x => x.Products).Cascade.All();
})
)
)//emd mappings
.ExposeConfiguration(BuildSchema)
.BuildSessionFactory();//finalizes the whole thing to send back.
}
Below is the class and using statements I'm trying
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using FluentNHibernate.Conventions;
using FluentNHibernate.Cfg;
using FluentNHibernate.Cfg.Db;
using NHibernate;
using NHibernate.Cfg;
using NHibernate.Tool.hbm2ddl;
using FluentNHibernate.Mapping;
namespace TestCode
{
public class CascadeAll : IHasOneConvention, IHasManyConvention, IReferenceConvention
{
public bool Accept(IOneToOnePart target)
{
return true;
}
public void Apply(IOneToOnePart target)
{
target.Cascade.All();
}
public bool Accept(IOneToManyPart target)
{
return true;
}
public void Apply(IOneToManyPart target)
{
target.Cascade.All();
}
public bool Accept(IManyToOnePart target)
{
return true;
}
public void Apply(IManyToOnePart target)
{
target.Cascade.All();
}
}
}
I have a WPF application running with .Net3.5 using FluentNHibernate, and all works fine. When I upgraded to VS2010 I ran into some odd problems, but after changing to use x64 variant of SQLite it worked fine again.
Now I want to change to use .Net4, but this has turned into a more painful experience then I expected.. When calling FluentConfiguration.BuildConfiguration I get an exception thrown:
FluentConfigurationException unhandled
An invalid or incomplete configuration was used while creating a SessionFactory. Check PotentialReasons collection, and InnerException for more detail
The inner exception gives us more information:
Message = "Could not create the driver from NHibernate.Driver.SQLite20Driver, NHibernate, Version=2.1.2.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4."
It has an InnerException again:
Exception has been thrown by the target of an invocation.
Which again has an InnerException:
The IDbCommand and IDbConnection implementation in the assembly System.Data.SQLite could not be found. Ensure that the assembly System.Data.SQLite is located in the application directory or in the Global Assembly Cache. If the assembly is in the GAC, use element in the application configuration file to specify the full name of the assembly.
Now - to me it sounds like it doesn't find System.Data.SQLite.dll, but I can't understand this. Everywhere this is referenced I have "Copy Local", and I have verified that it is in every build folder for projects using SQLite. I have also copied it manually to every Debug folder of the solution - without luck.
Notes:
This exact same code worked just fine before I upgraded to .Net4.
I did see some x64 x86 mismatch problems earlier, but I have switched to use x86 as the target platform and for all referenced dlls. I have verified that all files in the Debug-folder are x86.
I have tried the precompiled Fluent dlls, I have tried compiling myself, and I have compiled my own version of Fluent using .Net4.
I see that there are also others that have seen this problem, but I haven't really seen any solution yet.
After @devio's answer I tried adding a reference to the SQLite dll. This didn't change anything, but I hope I made it right though.. This is what I added to the root node of the app.config file:
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<qualifyAssembly partialName="System.Data.SQLite" fullName="System.Data.SQLite, Version=1.0.60.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139" />
</assemblyBinding>
</runtime>
Anyone out there using Fluent with .Net4 and SQLite successfully? Help! I'm lost...
I'm building a .net-microframework app that uses Zeroconf. The existing zeroconf solutions all seem to either rely on dns-sd.dll or some other interop function of .net which is not supported in .netmf.
Is there a pure C# version of zeroconf (or dns-sd) out there that you know of?
quick question is the public key token for ADODB dll different for 64bit and 32bit. I am trying to use a COM api which uses ADODB.Recordset and some how I am not able select the right version of ADODB in VS(2010) it asks for 2.8.0.0 and I add 2.8 from the reference dialog. The only thing I can think of is that I am using a 64bit win7
I have downloaded the Ajax control toolkit; I have created a new tab in VS 2008 (SP1) toolbox, added the controls from the AjaxControlToolkit.dll,everything went fine. When I removed the toolbox and tried to perform the same steps as above, it didn't work anymore...
That is, in the window shown for the "Choose items", the controls are't anutomatically added to the list, as before. What should I do?
hi,
I'm developing a COM dll which is an add-in to MSoffice. Since I'm not creating any logs within add-in I would like to add a crash report generator into my add-in.
Hopefully 'Minidump' would be the best choice, but I have never use Minidump inside a COM object.
I appreciate if somebody can point out possibilities of creating such crash dump with minidump
inside a COM object.
Thank You
So IIS7 in Integrated Pipeline mode uses a IsapiFilterModule to shim ISAPI filter DLL's and fire off the correct "events" on the filters, which is quite different than previous versions of IIS or IIS7 in classic mode because this means that HttpModules fire off right along side ISAPI filters in Integrated Pipeline mode.
So does anyone happen to know how ISAPI events (http://msdn.microsoft.com/en-us/library/ms524855.aspx) and the HttpModule events (http://msdn.microsoft.com/en-us/library/ms998536.aspx) line up?
What is LINQ to events a.k.a RX Framework aka the Reactive Extensions in .NET 4.0 (but also available as backported versions)?
In other words, what is all the stuff in System.Reactive.dll for?