.net

get ip address of web user

are there any free web services out there that will detect the IP Address of the user accessing your site, and then give you information like zip code, and local? I am using C# on VS2008. ...

What do I need to know to create a website that uses HTTPS?

I know ASP.NET, and know why people use HTTPS and I know a bit about IIS, but I have never created a HTTPS website or page in my site. How can I create a HTTPS website? How can I only make my login page HTTPS in a normal HTTP project? Are there any other considerations I need to be aware of when using HTTPS? ...

Two way communications in .Net remoting

Once the communication between Client and Server is created, the Client could call the remote object functions through proxy. Under this situation, is it possible that Server could call functions reside in Client side? If so, in what way? Thanks, ...

Active Directory Server with .Net

We are developing our application using MS Visual Studio 2008 VB .Net. We have to use Active Directory Server for authenticating the user logging into the application. Does any one has code samples intergrating .Net and ADS? ...

Approximating numbers from a bell curve?

I've been banging my head against a wall on this one. I'm working on a project where the client owns a call centre and wants to estimate the number of people needed to work in half hour slots on a campaign by inputting a peak hour, an estimate of the people needed in that hour and presumably a standard deviation. This should then "fan o...

taskbar window behavior for my own window

Windows Taskbar has a significant behavior. It is attached to a bottom (top, left, ...) of your desktop so that it occupies this area and prevents other windows from overlapping it. When some window is not maximized it goes below the Taskbar as if Taskbar is topmost. (*)When some window is maximized it fills the area that is not occupie...

MFC DLL loading issue in Winmo

Hi, i have created an MFC DLL for windows mobile.. i have exposed only a function in MFC DLL... if i try to load DLL in c#,in debug mode it is telling Remote connection lost message box appears and app quits i have kept the DLL at .exe level only.. how to load ? Steps i have taken to make project. 1)create smart device MFC DLL 2)cho...

Add DataMemberAttribute "on the fly"

I have some types which are generated by a web service reference. I want to serialize these objects using the DataContractJsonSerializer, so I need to add DataContract and DataMember attributes. Adding DataContract is no problem using partial classes. But the properties have no DataMember attributes, so I only get empty objects. Is there...

Sending File in Chunks to HttpHandler

Hello, I'm trying to send a file in chunks to an HttpHandler but when I receive the request in the HttpContext, the inputStream is empty. So a: while sending I'm not sure if my HttpWebRequest is valid and b: while receiving I'm not sure how to retrieve the stream in the HttpContext Any help greatly appreciated! This how I make my r...

C# DataSet - Retrieving Unique Value based on column

Hello there, I'm having some issues trying to retrieve unique values from a DataSet in csharp, is that possible? Actually I'm doing something like this that gets a dataset from a webservice: webService.getInstructions(Username, Password, AppKey).Tables[0].Select(null, "account name asc"); So in this case I get a alphabetical list f...

Two member enumeration vs. boolean value

This question has in the back of my mind for some time, sorry if it appears subjective. There are some disadvantages in using bool in public properties and constructors for data objects. Consider the following code as an example. Using bool: public class Room { public string Name { get; set; } public bool Bookable { get; set; }...

Finding out the time taken to execute a function

I wrote a function to match fingerprint templates using VC++.NET. Now I want to know the time it takes to execute the function. I tried surrounding the function call statement with clock ( Standard C Library ) and computing the difference in the values returned. For some reason it always returns zero. Am I missing something here or ar...

where i found dotnet 4 installer

i want to download dotnet 4 but i can't find it where i find for offline ...

Check and register Outlook as a default mail client programatically

I'm developing a VSTO add-in for outlook. One part of this addin is a welcome screen that appears after first launch and on this screen I want to check if Outlook is a default mail client and if it's not provide users with the ability to set it as a default client. I know this can be done in Outlook's Tools/Options menu but I really woul...

"Unable to find a version of the runtime to run this application" running .NET app in virtual XP machine

I've written a few winform apps in .net 2.0 which won't run in a virtual XP (running from VirtualBox). I get the error "unable to find a version of the runtime to run this application" (.NET Framework Initialization Error). I've tried fixing the installation of .net and also installing v3.5. I think it's probably a security issue rathe...

Can Someone Explain MustOverride?

Hi there, Can someone explain not what MustOverride does, but why use it? Is it to expose the function? I have two classes, the first (RoomFactory); Public MustInherit Class RoomFactory : Inherits baseFactory Private _roomid As Integer = 0 Private _roomname as String = "" Public Sub New() End Sub Public Sub New(ByVal roomid As Inte...

SqlCLR Error trying to install assembly in SqlServer 2005

I am getting the following error message when I try install my .NET assembly int SqlServer 2005. My .NET assembly references 'ChilkatDotNet2.dll' assembly. Msg 6544, Level 16, State 1, Line 1 CREATE ASSEMBLY for assembly 'myassembly' failed because assembly 'chilkatdotnet2' is malformed or not a pure .NET assembly. Unverifiable PE Head...

Thread Safety of WeakReference

When using a WeakReference, how can we be sure than the target is not collected between the .IsAlive and .Target calls? For example: if (myWeakReference.IsAlive) { // How can we be sure the object is still alive while here? ((MyType)myWeakReference.Target).Foo(); } ...

Use AppDomain to load/unload external assemblies

My scenario is as follows: Create new AppDomain Load some assemblies into it Do some magic with loaded dlls Unload AppDomain to release memory & loaded libraries Below is the code that I'm trying to use class Program { static void Main(string[] args) { Evidence e = new Evidence(AppDomain.CurrentDomain.Evidence); ...

Chunky interface meaning

In the book of application architecture design, which I'am reading, I've found the following statement: "To reduce round trips and improve communication performance, design chunky interfaces." Can anybody explain me what does "chunky interface" mean? ...