.net

Can I use .NET with classic ASP?

Due to a customer requirement I am forced to use classic ASP, so I am wondering if I could use .Net (or maybe JScript which as new features) to try to add some advanced features. I really would like a decent way to connect to SQL Server, so if anyone has any ideas I would appreciate it. Thanks. Wade Update: Amazingly the customer re...

Cannot find the X.509 certificate after publishing

I am building a WCF service as in this article and facing trouble with X.509 certificate. When I debug, everything is OK. When I publish and run the application, I receive the error: Cannot find the X.509 certificate using the following search criteria: StoreName 'My', StoreLocation 'CurrentUser', FindType 'FindBySubjectName', FindV...

Which is more paid .Net or PHP ?

I want to know which technology is more paid now a days - .Net or PHP ? ...

Measure "Inline" length in WPF

Hi , I'm looking for a way to measure Inline (System.Windows.Documents.Inline) length without working with FormattedText... Is there some build in functionality for that purpose? I couldn't find any. Thanks, Eden ...

How to determine if a Font is a Symbol font (eg Wingdings)

Given a FontFamily is there a way to determine whether the font is a Symbol font? I'm trying to display a list of fonts to the user in a Window Forms application, but I want to remove the fonts that are Symbols only so that they can't choose a font that cannot be used. ...

MySQL Throws NullReferenceException in Finalize... How are you coping with this?

I am using MySQL with the .Net connector on 64 bit Windows. For some reason Mysql is throwing a NullReferenceException in Finalize. This is the problem here and it seems that its due to a bug described here. This bug was reported in 6.22, but I am getting the issue with 6.23 too so apparently it is not fixed. I am using MySQL both with ...

How to check WCF generated client is compatible with service at runtime

I realise that WCF and services in general are meant to be loosely coupled. But I have a requirement that my client app can check whether an given WCF endpoint contains a service that matches its generated client code. In other words I need to check for a compatible service. Obviously I could have a method that returns a manually main...

Application not working on Windows XP

Hello, I created a .NET 2.0 application on Windows 7. When I tried to run the .exe on my Windows XP machine [SP3 as well as SP2], it doesn't start up. It shows me a message that Windows has encountered a problem....send error report... Any known issues? Thanks for help! ...

Actors in Scala.net

I have recently completed some study of erlang, and was intrigued by scala for its feature set and the ease of interpolating with java (and possibly .net) applications. I am finally studying actors and was wondering if there is an actor mechanism that currently works in .net. I have looked at the libararies that come down with sbaz an...

How to read a "xxx.config" file with out .net BCL in asp.net

I am using this solution to read config file , But the inexplicable errors occur,sometimes it work fine,but on some machine it does not work. So I'm looking for another solution with out built-in .NET BCL,please help me. ...

Can I use the task parallel library in a .Net 3.5 project?

I heard that the Task Parallel Library can be used in a .Net 3.5 project. Is this correct, and if yes, how do I use it? In .Net 4.0, it resides in System.Threading, but when I select .Net 3.5 as the target in Visual Studio 2010, I don't get access to classes like Parallel and the Parallel loops. ...

Inline HTML Syntax for Helpers in ASP.NET MVC

I have a class that extends the HtmlHelper in MVC and allows me to use the builder pattern to construct special output e.g. <%= Html.FieldBuilder<MyModel>(builder => { builder.Field(model => model.PropertyOne); builder.Field(model => model.PropertyTwo); builder.Field(model => model.PropertyThree); }) %> ...

Crazy idea: Connect .NET and SAP with SAP JCo using IKVM.NET

Because the SAP Connector for .NET is no longer maintained by SAP, I am now looking for an alternative to connect the Microsoft world with the SAP world. I know there are third party products like "ERPConnect", but I want to do this with tools from SAP (by the way I cannnot use the Enterprise Services, because the target SAP system is SA...

Whether we can use WPF in .NET 2.0 ?

If it is possible, pls explain me how we can implement WPF in .NET 2.0 with C#. Thanks.. ...

.net 4.0 winforms, easy way to get text controls to remember previous input?

I want my text box controls to remember previous input and have intellisense, like web control inputs. Is there a quick, free and easy to implement solution to this? ...

Redirect application's graphical output in Windows Vista/7 (with DWM)

I want to create a desktop manager that takes informations of all running applications including states and screenshots to display and manipulate them in my virtual space (probably in 3D). It can be considered as another layer of abstraction on top of Windows itself. Because many native Windows Vista/7 features like Flip 3D and Live Thu...

Partial Postback ASP.NET 1.1

Hi, I have a ASP.NET 1.1 web application page which is built with .net framework 1.1 and in GridView the data is displayed. I want when they select multiple items then data is updated but without the complete postback of the page. Any help or suggestions please? ...

SQL Server Operating System

Hi, I found an interesting article about Platform layer for SQL Server. It talks about SQLOS. As I understand it is an abstraction layer between the hardware and SQL Server. So does it mean that we can have SQL Server installed without installing windows? It sounds very strange to me... Please tell me where it is possible to find more ...

Question About Fk refrence in The Collection

Hi , i have 2 entities : ( person ) & (Address) with follwing mapping : <class name="Adress" table="Adress" lazy="false"> <id name="Id" column="Id"> <generator class="native" /> </id> <many-to-one name="Person" class="Person"> <column name="PersonId" /> </many-to-one> </class> <class name="Person" table="Pe...

Can the LocalSystem account impersonate any user ? Even if the user is not logged on ?

Hi, I have a Windows service running as LocalSystem that needs to access some network resources. I found a way to impersonate a user that is currently logged on, by retrieving the token with OpenProcessToken, duplicating it and calling WindowsIdentity.Impersonate. That way I can access the same network resources as the impersonated user...