I am trying to determine the version of the .NET framework that a dll is using. I have targeted 3.5 in my app but when I open the dll with ildasm.exe (on my dev PC with 3.5 installed), it says it is using "Metadata version: v2.0.50727" which is it really using?
...
I am trying to call a Delphi function from C# ASP.NET code. The function's declaration looks like this:
function SomeFunction(const someString, SomeOtherString: string): OleVariant;
From my C# code I have this code:
[DLLImport(MyDLL.dll", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Ansi)]
public static extern obj...
What I'd like to do:
1. Create an arbitrary LINQ query based on user-selected criteria that will
2. Query against a proxy collection (facade) that
3. Converts the query to NHibernate DetachedCriteria and serializes OR just serializes the LINQ expression and then
4. Sends the serialized query to the server via WCF, where
5. The service im...
Hello, is anybody aware of a list of exactly what triggers ASP.NET's HttpRequestValidationException? [This is behind the common error: "A potentially dangerous Request.Form value was detected," etc.]
I've checked here, around the Web, and MSDN Library but can't find this documented. I'm aware of some ways to generate the error, but woul...
Hi I am trying to get a website running with Mosso that has Castle Windsor as my IOC, however I am getting the following error.
[SecurityException: That assembly does not allow partially trusted callers.]
GoldMine.WindsorControllerFactory..ctor() in WindsorControllerFactory.cs:33
GoldMine.MvcApplication.Application_Start() in Glob...
I've been working on a small program which gets a list of url's from the web server ( latest forum topics ) and warns the user whenever a new topic is created.
So the main form of my program have a list of buttons. Each button has the text of the forum topic and extra information below. Opens the browser with the topics url when user p...
I have a .NET project which references a DLL called ABCPDF. The version number used when the application was written is 7.0.2.3 and the application was deployed onto a staging server.
The version of the software on the staging server is 7.0.2.8 and the application is breaking saying that it cannot find version 7.0.2.3
Surely it should ...
Is there a way to hide the "X" closing icon of a ToolWindow or is there a way to use IVsWindowFrameNotify3's OnShow method to discard (ignore) the event?
It seems that the OnClose method is called only when VS exit. When the ToolWindow is called, the OnShow method is called with the __FRAMESHOW.FRAMESHOW_WinHidden state.
thanks
...
I'm currently using ThreadPool.QueueUserWorkItem in an Asp.Net application.
Basically a user uploads a file using a form with an FileUpload Control.
The file can take quite a while to process which was causing a time out for the user and also making the UI unusable while the upload was processing.
So I thought I'd just call my import me...
I just started to play around with Linq to entities and ran into an issue I can't figure out. I know this doesn't tell everything but to make it easier to understand here is a screen shot of the culprit...
I am getting this error:
Condition member 'RelatedResources.TypeID' with a condition other than 'IsNull=False' is mapped. Either r...
I have the below code, which works, to draw a border around a control in a WinForm 3.5 app.
What I can't figure out is how to THICKEN the border that is being drawn. I tried Inflate(5,5) on the ClientRectangle but that actually made the Border disappear all together versus making it thicker.
I get the impression that I actually need...
System.Drawing.Graphics.DrawImage pastes one image on another. But I couldn't find a transparency option.
I have already drawn everything I want in the image, I only want to make it translucent (alpha-transparency)
...
By basic T4 template, I mean not using T4 Toolkit or any of the add-ins.
My T4 is getting a little complicated, but I'd like to keep in self-contained for now. Is there a way have functions in your T4 template, without referencing external assemblies?
...
I've got a rich domain model, where most classes have some behaviour and some properties that are either calculated or expose the properties of member objects (which is to say that the values of these properties are never persisted).
My client speaks to the server only via WCF.
As such, for each domain entity, I have a corresponding DT...
I'm trying to determine in vb if a URL is absolute or relative. I'm sure there has to be some library that can do this but I'm not sure which. Basically I need to be able to analyze a string such as 'relative/path' and or 'http://www.absolutepath.com/subpage' and determine whether it is absolute or relative. Thanks in advance.
-Ben
...
Hi, I am trying to programmatically login into a website ("http://www.smscountry.com") using C#, but the program hangs at the second GetResponse() request, where I try to login by POST method and filling the form fields.
public String GetWebContent(String username, String password)
{
//The URL of the Login Form ...
Hi,
What is the best way to achieve something like the SQL Server Browser but for WCF services running on the local network?
I don't necessarily want to be able to browse for any and all WCF services, but rather for a service which has been coded to be browse-able.
...
I am just learning Linq and ran into a problem. For some validation, I am getting the last odometer reading from our database and need to compare that to the next reading. The odometer reading is an int on the incoming data and double on the database (changed to int on the dbml file).
Below is my code:
private bool IsValidOdometer(stri...
I need to run some custom SQL to return a list of objects from a table. I'm using ExecuteStoreQuery for that.
var q = context.ExecuteStoreQuery<ProductionUnit>(MySelectString, new SqlParameter("@ProductionUnitId", value));
This does result in q containing an ObjectResult collection, but the actual ProductionUnit elements are Detached ...
Hi all,
I am using .Net Remoting in an unusual manner whereby a single client will access many servers (this is unavoidable). To increase maintainability, it would be handy to have the server code reference an interface rather than the remoting object itself so that if a change to the remoting object is needed only the client needs to b...