Hi,
I am really confused by the multitude of misinformation about native / managed interop.
I have a regular C++ exe which is NOT built using CLR stuff (it is neither Managed C++ nor C++/CLI and never will be). This C++ exe is "in charge", there is no managed wrapper for it.
I would like to access some code I have in a C# assembly fro...
Today I had an epiphany, and it was that I was doing everything wrong. Some history: I inherited a C# application, which was really just a collection of static methods, a completely procedural mess of C# code. I refactored this the best I knew at the time, bringing in lots of post-college OOP knowledge. To make a long story short, many o...
I need to create a SOAP Web Service in C#.
I've done this in the past in Java with eclipse, but couldn't really find something that is SOAP specific when creating a new Web Service project in VS2008.
I need some kind of guidance on how to start this.
Also, the intended client will be implemented in Java,
are there known compatibility ...
http://www.microsoft.com/downloads/details.aspx?familyid=ab99342f-5d1a-413d-8319-81da479ab0d7&displaylang=en
there we can see:
Full Package
To download the full package, rather than the bootstrapper, click on the link below:
.NET Framework 3.5 Service Pack 1 (Full Package)
but this "Full" package still requires 50mb to dow...
So the company I'm working for is looking for a means to verify that a given .xls/.xlsx file is valid. Which means checking columns and rows and other data. He's having me evaluate GrapeCity Spread and SpreadsheetGear, but I'm wondering if anyone else has any other suggestions of external tools to check out.
We don't need a means to ex...
I am trying to create an Interface-based Request/Response pattern for Web API requests to allow for asynchronous consumer/producer processing, but not sure how I would know what the underlying IResponse class is.
public void Run()
{
List<IRequest> requests = new List<IRequest>();
List<IResponse> responses = new List<IResponse();
...
So this is a Visual Studio 2008, .NET, WPF, XBAP, Windows 7 question, regarding .NET trust policies.
At work, we have several Web Browser Applications (.XBAP files) developed with Visual Studio 2008 (so .NET 3.5) that we deployed internally. These required a .NET FullTrust policy, we found a way to make a .MSI that adjusted the policy o...
I've seen several examples where Marshal.ReleaseComObject() is used with Excel Interop objects (i.e., objects from namespace Microsoft.Office.Interop.Excel), but I've seen it used to various degrees.
I'm wondering if I can get away with something like this:
var application = new ApplicationClass();
try
{
// do work with application...
Hi,
how can I enable database logging in my ASP.net application?
I am using VS2010 (ASP.net MVC2 Project) and would like to see logging that highlights database activity between the application and the database, including database connection establishment (as I do have a connection related error somewhere).
I'm using SqlServer Expre...
My .NET application tries to connect to an Oracle database, but the connection fails to open because it cannot find "OraOps9.dll".
xxx.CreatedbConnection() failed to open connection.
System.DllNotFoundException: Unable to load DLL (OraOps9.dll).
at Oracle.DataAccess.Client.OpsTrace.GetRegTraceInfo(UInt32& TrcLevel)
at Oracle.DataA...
I have two assemblies: A and B. A has InternalsVisibleTo set for B. I would like to make calls from A to get information that can only be known by a type defined in B in a way that keeps things internal. I can do this using an internal interface defined in A and implemented explicitly in B.
Assembly A
internal interface IHasData...
For example I have
interface ICommand {}
class MovePiece : ICommand {}
class Successful<CMD> where CMD : ICommand {}
and I want the following:
CovariantlyEqual(
typeof(Successful<ICommand>),
typeof(Successful<MovePiece>))
.ShouldEqualTrue()
Update
Eric asks below why I would want to test such a thing. Fair enough. I think t...
Hi Guys,
I have a question regarding .NET regular expressions and how it defines matches.
I am writing:
var regex = new Regex("<tr><td>1</td><td>(.+)</td><td>(.+)</td>");
if (regex.IsMatch(str))
{
var groups = regex.Match(str).Groups;
var matches = new List<string>();
for (int i = 1; i < groups.Count; i++)
matches.A...
Should "" be assigned to a string to make it empty?
Or should it be a left as null?
...
This is for research purpose.
I have .Net framework 2.0 installed, and I want to load mscorlib.dll 1.1 dynamiclly to execute its specific inner function.
When I wrote this code in C#:
static void Main(string[] args)
{
Assembly assem = Assembly.LoadFrom("C:\\mscorlib_my_private_1.1.dll");
System.Type type = assem...
I am wondering what the differences are or if it is the same across both.
...
Hi,
I am having SYBASE 12.5 install on my server as well as my PC, I am unable to get the correct connection string.
I have used the connectionstrings.com but unable to get the correct one.
After runnig and making the connection
Driver={Sybase ASE ODBC Driver};srvr=server_name;database=database_name;UID=user_name;PWD=pass;
and some ...
I am new to database programming, so I'd like help getting on the right track. I have read that there are Microsoft-defined and third-party data providers for data access. MSDN has information on data providers for SQL Server, OLE DB, ODBC, Oracle, as well as the EntityClient provider (Entity Framework).
Which data provider is today's ...
Hi,
I am not able to figure out which drivers should I use. Even I don't know what I have.
When I am trying to make the connection string through the .udl file it only shows SYbase ASE OleDB Provider
while in install folder I can see in driver list Syabse Ase ODBC driver but in connection string it is unable to pick up the driver, her...
hi guys,
I need a final answer to the following question! :-)
I was wondering if you can enable Health Monitoring for WCF Web services. I'm hosting a number of services in IIS and configured it to send the team email notification when any exceptions are thrown. I feel that Health Monitoring does not work with WCF Services and that I ha...