I have a partial trust XBAP that is consuming WCF services. I'd really like to take advantage of the session capabilities that WSHttpBinding provides, but running in partial trust requires that you disable that feature of WSHttpBinding. Arrrrgh! I'm gonna need to have classes hosted on the server that would use an InstanceContextMode of Single or PerSession, and I'd really like to have a clean way to do this in partial trust. I suppose that worst case scenario I can use the extensibility features of WCF to add session ID on the client side and use that to resolve the instance on the server, but do any of you have a better way?
elibriscoe
Posts
-
WCF limitations in partial trust XBAP...is there a way to have my cake and eat it? -
.Net Script Hosting suggestions?We're developing a new application framework and need to implement a script host so custom logic can be added at several places in the application. As a test, I put in the IronPython script host and it worked well. However, I'd rather use a language like JScript/JavaScript because it is a little more common. I have read that the DLR will support JScript eventually, but only IronPython by the end of the year. We really need to be able to run these scripts in a sandbox environment, giving the script host access to the objects and methods that we want the users to have. Does anyone know of a great script hosting solution for .Net?
-
No one teaches PROGRAMMING any moreThe bottom line that many people won't like is this: There is a limited number of people who can be great programmers ever born. To a certain extent you can learn it, but only if you already have a natural talent to program will you be great. Some people will NEVER be great programmers, no matter what. Sorry. If you have the right talent and drive, you will take it on yourself to learn what you need to be excellent. Also, we will always need people who can write compilers and program at the lowest level. The fact that you aren't writing firmware doesn't necessarily mean you aren't a programmer. We need people who can program in very high level languages, and not everyone has to be a programming superstar. I don't feel bad about my career because of other crappy programmers. In fact, it makes it easier for us good programmers to stand out and advance.
-
No one teaches PROGRAMMING any moreI work with a girl from India who has a BS in CS and is pursuing a master's. The only language she knows is vbscript, and even that she can barely use and never writes a program. She's here in the US working as a QA. Unbelievable. I know the problem is just there either. I can honestly think of about 3 people in my CS program who deserved to graduate, but of course everyone graduates.
-
Software to Pump GasThe big benefit here is that when we're all cruising around in self-driving vehicles in 2018 (according to GM), the car won't have to wake us up at 2 AM to fill it up with gas while we're sleep-driving our way to vacation.
-
Stupid PC tricksI wrote a program that hook the keyboard input and would play a specific sound whenever a certain key or key combinations were entered. That has served me more than once...
-
Enumerate NT Group membership on remote computerHello. I've actually recently written a program to manage user groups on remote servers, including add an expiration date/time when that user will be removed. I'll be posting an article on it soon. Here is some code that should help you out. You will need to add a reference to System.DirectoryServices, and using statements for System.DirectoryServices and System.Collections:
String entryString = "WinNT://" + computerName + ",computer"; DirectoryEntry dirEntry = new DirectoryEntry(entryString, username, password); foreach (DirectoryEntry entry in dirEntry.Children) { if (entry.SchemaClassName.Equals("group", StringComparison.CurrentCultureIgnoreCase)) { if (entry.Name.Equals("Administrators")) { object members = entry.Invoke("Members", null); foreach (object member in (IEnumerable)members) { DirectoryEntry memberEntry = new DirectoryEntry(member); String name = memberEntry.Name; String path = memberEntry.Path; MessageBox.Show(path + "\n" + name + "\n" + memberEntry.SchemaClassName); } } } }