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.
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,
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'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
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,
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??
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'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]
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?
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();
}
}
}
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 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.
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?
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?
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 ?
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
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?
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
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?
Hi, folks
Recently,I need run my winforms App on mono for windows platform,But i am using WMI to get MAC address and CPU ID in my original code,switch to Mono for Windows,it does not working.
I found that "System.Management.dll" APIs is not implemented in Mono.
How can i do?How to get CPU ID,MAC Address, Hard Disk Serial Number,and Motherboard Serial Number with out WMI?
I want to be able to use the .html extension to render ASP pages.
I am using Windows CE 6 at the moment with the default web server, ASP
is turned on.
I have attempted to add the "ScriptMap" (via) key to the
HKEY_LOCAL_MACHINE\COMM\HTTPD\ScriptMap
subkey with the value ".html"="\Windows\asp.dll" but this doesn't seem to work.
What am I doing wrong?
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...
Hi All,
I'm researching Selenium and have a seminar for my group...
I meet many troubles with this
I use C# language and write a demo SeleniumExample.dll Then i start
selenium RC and NUnit and run it with nUnit to see the test report.
I read testdata from xml.
Here's the SeleniumExample.dll: using System;
using System.Xml;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using NUnit.Framework;
using Selenium;
namespace SeleniumExample
{
public class Success_Login
{
//User defined
private string strURL = "http://newtours.demoaut.com/
mercurywelcome.php";
private string[] strBrowser = new string[3] { "*iehta",
"*firefox", "*safari" };
// System defined
private ISelenium selenium;
private StringBuilder verificationErrors ;
[SetUp]
public void SetupTest()
{
selenium = new DefaultSelenium("localhost", 4444,
this.strBrowser[0], this.strURL);
selenium.Start();
verificationErrors = new StringBuilder();
}
[TearDown]
public void TeardownTest()
{
try
{
selenium.Stop();
}
catch (Exception)
{
// Ignore errors if unable to close the browser
}
Assert.AreEqual("", verificationErrors.ToString());
}
[Test]
public void Success_LoginTest()
{
try
{
XmlDocument doc = new XmlDocument();
XmlNode docNode;
doc.Load("XMLFile1.xml");
docNode = doc["TestCase"];
foreach (XmlNode node in docNode)
{
selenium.Open("/");
selenium.Type("userName",
node["username"].InnerText);
selenium.Type("password",
node["password"].InnerText);
selenium.Click("login");
selenium.WaitForPageToLoad("30000");
Assert.AreEqual("Find a Flight: Mercury Tours:",
selenium.GetTitle());
}
}
catch (AssertionException e)
{
verificationErrors.Append(e.Message);
}
}
}
}
Now I wan to have a demo that using Selenium Grid (SG) but i dont know
how to do. I read document and understand the way SG works. I install
SG and install Ant1.8. The tests will communicate with Selenium Hub.
Actually, I just understand the theory i dont know how to make the
tests communicate with Selenium Hub and how to make Selenium Hub
control Selenium RC.
I am a new for Selenium. If anyone know this, please help me. I
appreciate it so much.
THANKS,
Hoang
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?