.net

Crystal reports .net visual studio 2008 bundled edition

I have a serious issue with crystal reports. when run in my development environment or debugged on my local machine it works fine. but when the application is published to a windows server 2003 it has the dreaded "The report you requested requires further information" Message I have had no luck trying to get rid of this message Anybo...

video file download issue

Hello everyone, I am using VSTS 2008 + C# + .Net 3.5 + Silverlight 3.0 + ASP.Net to develop a Silverlight application (a video media player) in browser and the function is simple, just use MediaElement to play a remote video file. The remote server is Windows Server 2008 + IIS 7.0 + IIS Media Bit Rate Throttling Control. Since the req...

securing connectionstring

What's the best method for securing connectionstring information in an app.config file for deployed winforms applications? reference ...

How do I read the file content and sent those content to the functions parameter.

I have one function ParseHtmlTable(string htmlContent). Now in that function I want to pass the content of the html file. Now can I do by writing only filename with its path.Then I have to read that file.But I dont how to read this file ? Then how to open particular file and read the contents of the file and send those contents to par...

.NET Framework for network data packet parsing/assembling?

when programming Tcp/IP program, we often will do data packet assembling and parsing, so is there a framework to make our life easier? I know this is hard to implement. Edit: to clarify: application level packet it may need to talk to c++ application, so .net serialization is not applicable. ...

How to scan the wireless devices which exist on the network

Now my team working in a network project using windows application c#. How to scan the wireless devices which exist on the network.The functionality is exactly the same thing that you see in the existing windows utilities within the windows operating system. I'm sure you experienced when you plug a wireless laptop card in, it brings up...

on button click the visibility of a column in listview should set to false

how can a visibility of a particular column can set to false in a listview..that is the column should exists in the client site but in hidden form... what is the option other than setting the width to 0. im working in c#.net VS2008 ...

Create New Expression from Existing Expression

I have an Expression<Func<T,DateTime>> I want to take the DateTime part of the expression and pull the Month off of it. So I would be turning it into a Expression<Func<T,int>> I'm not really sure how to do this. I looked at the ExpressionTree Visitor but I can't get it to work like I need. Here is an example of the DateTime Expression ...

What to learn next: F# or LINQ

Just started to get my feet wet with C# and .NET, liking it so far. I think I've got the main gist of the C# language constructs, so what technology should I dive into next: F# or LINQ? I'm aiming for both "broadening my horizont" programming-wise AND for "Enhancing my resume" in no particular order. UPDATE: From reading your replies ...

how can i set sitename from IIS in to my log4net created file

I am using log4net in my .NET projects and logs are being created with names like: C:\\Inetpub\\zz_appLogs\\<hard coded sitename>\\<yyyyMMdd>\\<hard coded file name with txt extension> Now I want to change the log file name with current site name in IIS. I have tried this in log4net settings but it didnt work: <file type="log4net.Util...

SecurityNegotiationException on disconnected domain client

When I am running a WCF service on my development machine it works as long as the client is connected to the domain. When the machine is disconnected I get the following exception: System.ServiceModel.Security.SecurityNegotiationException: A call to SSPI failed, see inner exception. System.Security.Authentication.AuthenticationExc...

Commercial use of open source software

I'd been trying to read about Open Source Software (OSS) but I'm still not clear about the scope of commercial use of OSS. Where can I find more details about the commercial use of OSS? Only then can I concentrate on "What License should I use for a new OSS project in .NET" for FOSS. ...

Select DataTable (only some values) from ???_GetDisplayData and GROUP data by days where group rules is different for different columns

Hello dear Stack-Overflow :3 I've got a kind of hard-case question. So I'll try clearly explain my idea with my poor english :/ need select to DataTable SOME values from ???_**GetDisplayData **procedure for each day of previos month (GROUP IT) where group rules for different columns is different I need to select some valu...

Dealing with Sharepoint locked Site Collections

I am playing with an application that can crawl the contents of sharepoint server. But I got a problem while working with Locked Site collections. There are some methods that cannot be used with locked site collections. It throws an exception telling me the contents are blocked. So I want to handle this more gracefully by checking whe...

Tool for backwards compatibility for c#/.net API ?

I found this tool http://sab39.netreach.com/Software/Japitools/JDK-Results/46/ which checks for backwards compatibility between different versions of APIs for Java using javadoc. Is there an tool equivalent to this one for c#/.net? Here is an example of a comparison between JDK 1.5 and JDK 6 APIs using this tool: http://www.kaffe.org/...

.NET User Management - User Registration and Email Activation Link

Is there a Standard settled comomn way to create User Registration with Email Activation Link in Dot Net 2.0 ? ...

How to run something in the STA thread?

In my WPF application I do some async communication (with server). In the callback function I end up creating InkPresenter objects from the result from server. This requires the running thread to be STA, which apparently it currently isn't. Therefore I get the following exception: Cannot create instance of 'InkPresenter' defined in ...

Set user-agent header during HTTP CONNECT over SSL?

I am using the WebClient class in .NET 2.0 to perform an HTTP POST over SSL. Currently I'm manually setting the user-agent header like so: wc = new WebClient(); wc.Headers.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"); This works fine, except for when I make the request through a proxy server that does HTT...

Could it be harmful to add a parameter to a webservice ?

Hi all I have a few webservices (.net 2.0/ C#) used by many partners. One of them want to be able to send an other parameter. Can I had a parameter to a method and be sure that there won't be any consequences on the other partners whatever technology they use to call us ? Thanks ...

Deserialization problem with Dictionary.

Hi when i am trying to serialize a dictionary, everything worked fine. but when i am deserializing it is showing count as 0. But, it works fine with a list. What is goingon exactly when we are deserializing a list and a dictionary? ...