.net

encryption codes on .net WCF request and response

Hi all, I am using VS 2008 WCF to create a sample service. The problem is the request and response has lots of information like encoded string, codes, uuid and so on. when i tried the same source code on VS 2010 WCF it is like clean and does not have any special data like this. what could be wrong ? what should i change in my project se...

Retrive Query from the Exception thrown

Hi all, I have a log table where i need to insert the query which causes errors in the code. I have a common function "WritetoLog". Catch ex As Exception writetolog(ex) End Try My Question is from the ex how do i take the query which causes error. eg. If the insert command is giving exception i should get like this SQL Que...

Automatic GridView Controls

In my project i have several GridViews, all of which have somehow automatically put in edit, cancel and paging functionality that i have been able to add to if i wished. However on one of them none of the buttons link up. always comes out with a Not Handled Exception. I sorted this out earlier in the week, but due to source control it ...

can MSIL be converted to Java Native Code ?

Dotnet CLR converts the language code to MSIL. While Java Code be converted to Native Code that is platform independent. Can we convert this MSIL to Native Code ? So the Dotnet will automatically become platform independent. ...

Any example for Security of .Net Desktop application.

Is it possible to prevent any unauthorised user to access code or application in desktop application like any web application? Thanks in advance. ...

Outlook 2003 and Outlook 2007 Plug-in COM Resources release

Hi All, I have done my second complete Outlook 2003 Plug-in. What I want to know is 2 things: Is it necessary to release the COM Objects when developing a Outlook 2003/2007 Plug-in? I know that they get released in time by the Framework, what I don't know is how often and is it really necessary? Why is Microsoft still using .Net ...

Change default theme of "project.net"

I want to change complete theme of an open source project "project.net". Can anyone help me that how to change overall theme into custom theme. NOTE: i already done with coloring and images change by CSS etc... my question is about change theme structure. e.g. and beautiful header in new theme. Accordion on left navigation etc. Your qu...

How to get Port Range for Passive Mode FTP in C# ?

Hi, How to get Port Range for Passive Mode FTP in C# ? Any code snippet... ...

What is IExpando and where is it used?

Hi, I was browsing the types in mscorlib using reflector (like you do...) and came across the IExpando interface, in the System.Runtime.InteropServices.Expando namespace. I did a search in reflector and even checked out MSDN, it seems that no types in mscorlib implement this interface. There are also no code examples on MSDN. Has anyo...

Windows Sidebar for Windows XP using WPF and WCF

Hello Let me phrase it this way.... if (Can i develop a sidebar application on Windows XP using .NET? ) { if (Can i harness the power of WPF and WCF for the sidebar application) { this.Me = Feed me with knowledge/pointers. } } Cheers ...

Unable to access methods of com interop dll from .net

I have an com dll which i an reffering from .Net, I have registsred that dll using regsvr32 and referred to my project. Unfortunatley I am not able to view any methods and properties in a particular Class of that dll, The class is defined as public but When i try to check methods and properties they are not visible. But the same dll ...

WPF: Control Visibility from Database / Prerender Hook

Hi, we have a rather odd requirement: The visibility of any control in our WPF-Application is to be driven by a database-table. That means we have a table which stores the name of the element and its visiblity. Now I am looking for an elegant way to implement this feature on the client side. I could create my own UserControl and inh...

What permissions are required for enumerating users groups in Active Directory

I have a .net web application which needs to obtain the groups a user is a member of in Active Directory. Todo this I am using the memberOf attribute on the users records. I need to know the permissions required to read this attribute on all users records. Currently I am getting inconsistent results when trying to read this attribute...

Special members in enum: All and None

Possible Duplicate: How to use Enum with aditional options (All, None) Somewhat subjective. I have an enum public enum Faction { Aliance, Horde } as we all know code closely modeling business domain it is applied is "always better". In a given domain there are two factions, and these two factions are enumerated in ...

Inheriting an already instantiated base object

Is it possible to do something like the following: public class ChildClass : BaseClass { public ChildClass(BaseClass o) { base = o; } } Basically, I want a transparent way to wrap a base class inside of other functionality. One example I've thought of is a custom Settings Provider which transparently audits the set...

Generic collections & dictionary classes with events

Implementing Document-View pattern I faced the problem: standard generic collections and dictionaries (List<T>, HashSet<T> for example) don't provide events for modification (OnBeforeAdd, OnAfterAdd, OnRemove, Freeze/Unfreeze methods... ) I suppose events were not implemented for optimization purposes but I have to use and listen for s...

Using directive vs full path name

Is there a general rule for referencing a type from a different namespace. Do you consistently use : using System.Drawing; instead of defining it when needed: System.Drawing.Graphics gr; I tend to type the full namespace when I'm only "calling" it once. Is there any best practice about that ? ...

How do I pass a list from aspx to javascript?

I have a list that I loop through to populate my table. I would like to pass a row of data to my javascript code at best. If not, I would like to pass the list and the id number to search for that row in the list. How can I do this? <%foreach(var item in Model.NewList) { %> <tr> <td><%=item.EntryDate.ToShortDateString() %></td>...

How do I find out what .net runtime a dll is built upon programmatically?

How do I find out what .net runtime a dll is built upon programmatically? Thanks ...

System.Drawing and Garbage Collection

Hi All, As some may be aware, I recently posted about high memory usage on my website and I have an idea that my thumbnailer may have something to do with this as I am not actively disposing of the instance when it has been used due to my misunderstanding how it works. I am now looking at my code for the thumbnailer and would like som...