While implementing a custom authentication type in a wcf service, I'm trying to read the property
IIdentity.AuthenticationType using the call Thread.CurrentPrincipal.Identity.AuthenticationType.
Unless the account running the service is local administrator, UnauthorizedAccessException is thrown when accessing this property, much like ...
What is my best option for converting plain text links within a string into anchor tags?
Say for example I have "I went and searched on http://www.google.com/ today". I would want to change that to "I went and searched on http://www.google.com/ today".
The method will need to be safe from any kind of XSS attack also since the strings a...
I am using C# 3.0 and I need to call a web service created (in ColdFusion for example) with optional parameters. I only know the WSDL URL and parameters at run-time. I want to be able to invoke the web service where the parameter names are releveant but not their order.
It appears this is possible with the IronPython Dynamic Web Servi...
What the best way of passing images over a soap server?
I'm using WCF 4.0 and flex for my front end.
...
What is a good program to get a nice, human readable form of the CLI of a portable executable file? I don't want a full disassembler because I'd like to learn how they work (or, in my case, not work).
...
This is a fun one.
I have written a custom search page that provides faster, more user friendly searches than the default Contacts view and also allows searching of Leads and Contacts simultaneously. It uses GridViews bound to SqlDataSources that query filtered views. I'm sure someone will complain that I'm not using the web services ...
I'm using the .net ajaxtoolkit control AutoCompleteExtender. It works great but my firefox autocomplete overrides the values that the extender is returning (the firefox one lays on top of the control's).
is there a way to disable the browser's version of autocomplete so that the .net one takes precendence?
...
Hi,
since upgrading my project to VS2010, including the use of MSBuild v4 instead of 3.5 (and not making any other changes), I get the following build error and have no clue how to fix it (log from CC.NET):
<target name="ResolveComReferences" success="false">
<message level="high"><![CDATA[C:\Programme\Microsoft SDKs\Windows\v7.0A...
I'm building a Windows Forms system (in C# if it matters to anyone) that provides an application automation service. As this application is targeted at users who are not computer savvy, I've decided to simplify things for the user with a wizard UI. I'd like to avoid coupling the views and view engine (from which the Wizard will be built)...
Is it safe to access asp.net session variables through static properties of a static object?
Here is what I mean:
public static class SessionHelper
{
public static int Age
{
get
{
return (int)HttpContext.Current.Session["Age"];
}
set
{
HttpContext.Current.Session[...
Hello all,
I have a web application which needs to allow admins to create content pages. I'd rather not re-invent the wheel here. What I need is something like Joomla, but it doesn't have to be a full fledged CMS. I need a framework or a library that I can use with my current web application which will present a nice interface for ad...
I need a way of generating a word document (from a template or something) and inserting an image at a specific place. Does anyone have any pointers on the best way to do this?
I worked on a project that used Office Automation in .NET 1.1 a few years ago, and it was really unspeakably poor. I'm assuming OA has either been improved or bee...
What is the correct way to UPDATE a child object with NHibernate but not have to "awake" the parent object. Lets say you would like to try to avoid this because the parent object is large or expensive to initiate.
Lets assume classes are called Author(parent) and Book(child). (still, trying to avoid instantiating Author)
Book comes bac...
It's common knowledge that you shouldn't use a StringBuilder in place of a small number of concatenations:
string s = "Hello";
if (greetingWorld)
{
s += " World";
}
s += "!";
However, in loops of a significant size, StringBuilder is the obvious choice:
string s = "";
foreach (var i in Enumerable.Range(1,5000))
{
s += i.ToStr...
I have a project that must be compiled and run in 64 bit mode. Unfortunately, I am required to call upon a DLL that is only available in 32 bit mode, so there's no way I can house everything in a 1 Visual Studio project. I am working to find the best way to wrap the 32 bit DLL in its own exe/service and issue remote (although on the same...
Is it possible to use protobuf-net in RESTful webservices created using WCF RESTful starter kit or OpenRasta? If it possible, are there any examples or code snippets available? I am creating a .NET Web Service which will be consumed by Java client.
...
I'm working on a C# XNA game, the most popular sound SDKs like MSS or FMOD mainly work with C/C++.
...
This question is pretty generic actually, but I'm really having trouble finding a good answer or example of how it should be done.
We are writing a simple multi-user collaborative web browsing application and we are having some issues deciding what to use for a communication protocol.
We are developing in C# under Mono, hoping to event...
I can compile, get an instance and invoke a method of any C# type programmaticaly. There lots of info on that, including the StackOverflow (http://stackoverflow.com/questions/53844/how-can-i-evaluate-a-c-expression-dynamically). My problem is that I'm in the web environment and cannot save anything to /bin directory. I can compile "in-me...
I was able to make my silverlight Bing map accepts Mousclicks and converts them to Pushpins in C#. Now I want to show a text next to the PushPin as a description that appears when the mouse goes over the pin , I have no clue how to do that. What are the methods that enable me to do this thing?
This is the C# code :
public partial class...