.net

Forms based Authentication (.NET) in PHP or other Web applications

We have a site built using Forms based authenication in .NET, is there any way of accessing these sessions / user variables and roles in a PHP application? ...

null value exception thrown when deserializing null value JSON.net

Hi Friends I am trying to deserialize a hidden control field into a json object the code is as follows Dim settings As New Newtonsoft.Json.JsonSerializerSettings() settings.NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore Return Newtonsoft.Json.JsonConvert.DeserializeObject(Of testContract)(txtHidden.Text, settings) But I am ...

Where to start .NET Entity Framework and ORM?

Hello I haven't used any database system enough but i believe i know logic of databases and i have learnt little sql so i shouldn't start to learn ORM before learn them well? Where can i start to learn .NET Entity Framework and which version of framework i have to start 3.5 or 4.0 because i heard that 4.0 has strong support for Enti...

Is this a bug? : I get " The type ... is not a complex type or an entity type" in my WCF data service using the Reflection provider

When invoking a query on the data service I get this error message inside the XML feed: <m:error> <m:code></m:code> <m:message xml:lang="nl-NL">Internal Server Error. The type 'MyType' is not a complex type or an entity type.</m:message> </m:error> When I use the example described here in the article "How to: Create a Dat...

Charts with Sharp Develop and SQLite

I'm inprocess to create a simple application that draws chart using the data from SQLite. Is it possible ? I'm trying to go this way for developing application: connecting and processing data using SQLite Fetching SQLite data for chart control and display results on chart I'm using C# with sharp develop for this simple project. A...

Programming .NET apps for Citrix/Terminal server: Compliance and Pitfalls

We are a bit lost here. We need to make our app installable on a network with +80 Citrix servers. Although our app is 100% valid and working .NET, we've experienced some (for us weird) behavior: You cannot use any "Documents and settings" folders for storing data or settings. Apparently these folders are virtualized and are located in ...

runtime error when calling a C++ dll from C# .NET windows application

I had a C# .NET windows application having C# user interface and all the code behind processing is done by calling C++ dll (C++ class library project) which is added as a reference to the C# project. However recently when I formatted my computer and again tried to run my project which was backed up, in visual studio 2005 it gave the fol...

How can I change Assembly Version,Assembly File Version by compliling code using System.CodeDom.CodeCompileUnit

Hi I dnt have Assembly Info file I have a code generator that copile the code using System.CodeDom.CodeCompileUnit, but always on compiling code Assembly File version and Assembly version remain 0.0.0.0 Any answer will really appreciate. Thanks ...

What is the use of #if in C# .NET ?

I need to know the usage of #if in C#.NET...Thanks.. ...

Help catching AV with WinDbg and ADPlus 7.0

I want to catch Memory Access Violation in SQL Server Compact Edition like this described at http://debuggingblog.com/wp/2009/02/18/memory-access-violation-in-sql-server-compact-editionce/ The suggested config is: <ADPlus> <Settings> <RunMode>CRASH</RunMode> <Option>Quiet</Option> <ProcessName>MyApp.exe</ProcessName> ...

Clickonce downloading the deploy files via HTTP and not HTTPS

I am working on a project to deploy a project via clickonce. The website where these files are housed will only accept HTTPS traffic and if you attempt to connect via HTTP, our siteminder agent will redirect you to a HTTPS login form. We cannot disable the siteminder agent or enable HTTP for security reasons. In the application file, I...

How to convert dwg file to jpeg or gif format using java api or .net library

How can be autocad file (dwg) converted to jpeg or gif file using java api or or .net library. Without using the convertors Thanks in advance ...

.NET compact framework - where to put files so that they are accessible to emulator

I have a .NET CF project. In the project directory I put a simple xml file (users.xml) which has to be read by the device. When I debug the application on device emulator and try to load the file from code, the Exception is thrown (FileNotFoundException "Could not find file '\\users.xml'."). Is there a mechanism to automatically deplo...

Best way to call 32-bit unmanaged code from 64-bit Managed Code using a managed code wrapper

Hi, The frequency with which I am coming across the situation where I have to call native 32-bit code from a managed 64-bit process is increasing as 64-bit machines and applications become prevalent. I don't want to mark my applciation as 32-bit and I cannot obtain 64-bit versions of of the code that is being calling. The solution tha...

How to convert a string of bits to byte array

I have a string representing bits, such as: "0000101000010000" I want to convert it to get an array of bytes such as: {0x0A, 0x10} The number of bytes is variable but there will always be padding to form 8 bits per byte (so 1010 becomes 000010101). ...

Castle Active Record (Linq AND Validation) Problem

I am trying out Castle ActiveRecord. I want to use the Validation features AND the LINQ features. In order to use LINQ, you can either: My preference: Make your entities inherit from ActiveRecordLinqBase<T>, then to query: var blogs = (from b in Blog.Queryable select b).ToList(); Use ActiveRecordLinq.AsQueryable<T>, e.g.: var blogs ...

How can I preselect a file in windows explorer using .net ?

How can I popup a windows explorer on a specific folder with a specific file highlighted ? I'm interested in solutions for XP, Vista and Windows 7. ...

.net runtime type casting when using reflection

I have need to cast a generic list of a concrete type to a generic list of an interface that the concrete types implement. This interface list is a property on an object and I am assigning the value using reflection. I only know the value at runtime. Below is a simple code example of what I am trying to accomplish: public void Employ...

Windows service - supplying arguments in "path to executable"

I cannot figure out how to pass (constant) arguments into my Windows service when it is started. I'm using the standard .NET classes like ServiceBase to implement (and ServiceProcessInstaller and ServiceInstaller to install) my service. On the general tab of a Windows Service properties dialog box (once installed), there's a "Path to ex...

Insert/Read Principles from a different container then the one used to instantiate the PrincipalContext

--Update-- I've continued to look into this issue but have had little luck. The only work around I've found was to create a function which uses reflection to grab the private field that stores the password from the underlying DirectoryEntry object in the PrincipalContext, which I then use to create a new PrincipalContext with the same ...