|
JBAK_CP wrote: I understand that there are hundreds of class libraries out there
You do? Could you explain it to me? What are you talking about? Every .NET Class Library project type ever produced? Do I count the ones I have compiled here on my workstation? The ones you have compiled on your workstation?
I'm going with 7, it's divine.
led mike
|
|
|
|
|
|
JBAK_CP wrote: it talks about .NET Framework containing hundres of classes, that is what I was refering to
Your original post never uses the word "class". Since I left my crystal ball at home today I had no chance of knowing what you were talking about.
JBAK_CP wrote: I was wondering if the experts out here could give me a better number, if known.
Well since the Base Class Library is documented the number is certainly known. Why you think you need an expert to tell you the number when it is fully documented is somewhat confusing. Another point of confusion is the significance of the number.
led mike
|
|
|
|
|
Is this[^] what you're looking for?
Scott.
—In just two days, tomorrow will be yesterday.
—Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines] [ Articles] [ Blog]
|
|
|
|
|
Holy cow!
1.0 was just a cute little set of classes
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi,
I have implemented Aspects(in C#, ContextBoundObject) on my business class to trace the calls. The problem is, it is tracing only the first call to the business class. The other helper methods and the validation methods in the same class(part of the same business method) are not getting logged.
How to trace all internal methods if they are in the same class
|
|
|
|
|
In my WCF client code I'm trying to sign the soap body with client certificate but can't get it to work.
Only some parts of the soap header (e.g. TimeStamp) gets signed but the body never will.
I've tried basicHttpBinding, wsHttpBinding and customBinding but everything fails.
Here's my wsHttpBinding:
<wsHttpBinding>
<binding name="testBinding2" textEncoding="utf-8">
<security mode="TransportWithMessageCredential">
<transport clientCredentialType="None" />
<message clientCredentialType="Certificate" negotiateServiceCredential="false"
algorithmSuite="Default" establishSecurityContext="false" />
</security>
</binding>
</wsHttpBinding>
Then I've tried custom binding:
<customBinding>
<binding name="testBinding">
<textMessageEncoding messageVersion="Soap11" />
<security defaultAlgorithmSuite="Default" authenticationMode="CertificateOverTransport"
requireDerivedKeys="false" securityHeaderLayout="Strict" includeTimestamp="true"
keyEntropyMode="CombinedEntropy" messageProtectionOrder="SignBeforeEncrypt"
messageSecurityVersion="WSSecurity10WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10"
requireSecurityContextCancellation="false">
<secureConversationBootstrap />
</security>
<httpsTransport />
</binding>
</customBinding>
Any ideas?
Thanks in advance.
|
|
|
|
|
Did you ever resolve this problem, Konkola? I have been working on an identical problem for the past 3 weeks with no success.
I have been told it is possible to do this with WSE 2.0, but I really don't want to go back to Visual Studio 2003 to build my solution.
|
|
|
|
|
hi Mr Mundial, did you ever get this resolved, I'm facing same issue.
|
|
|
|
|
Yes, I did. I had to modify the contract description in code, not the binding in the configuration file.
The following code did what I wanted.
proxy = new OperationsClient(endpoint);
ContractDescription cd = proxy.Endpoint.Contract;
cd.ProtectionLevel = System.Net.Security.ProtectionLevel.Sign;
|
|
|
|
|
Hi all,
first exuse me please for my english, it is not a native.
here is my question :
say you have some class hierarchy
abstract class Warior<br />
{<br />
String Description;<br />
Armor armor;<br />
Weapon weapon;<br />
<br />
<br />
<br />
}<br />
<br />
class HumanWarior : Warior<br />
{<br />
<br />
}<br />
<br />
class AlienWarior : Warior<br />
{<br />
<br />
}<br />
<br />
class GenericWarior : Warior<br />
{<br />
<br />
}<br />
<br />
<br />
abstract class Armor<br />
{<br />
<br />
}<br />
<br />
abstract class Weapon<br />
{<br />
<br />
}<br />
<br />
<br />
class AlienArmor : Armor<br />
{<br />
<br />
}<br />
<br />
class AlienWeapon : Weapon<br />
{<br />
<br />
}<br />
<br />
class HumanArmor : Armor<br />
{<br />
<br />
}<br />
<br />
class HumanWeapon : Weapon<br />
{<br />
<br />
}
Given that hierarchy there can be many different objects of HumanWorior or AlienWorier type.
Everyone of them can contain Armor and Weapon objects of two presented concrate types.
the problem is that not all of the posible combinations are logicaly true. for example
HumanWorior can't contain AlienArmor or AlienWeapon. Also GenericWarior can contain both types
of Armor and Weapon but not two of them togather. For example GenericWarior can't contain
AlienArmor with HumanWorior.
How can you ensure that all the objects of type HumanWorior, AlienWorior or GenericWorior will be consistent during their entire lifetime cycle. How can you enforce a creation of logicaly corrected objectes only and mantain their correct state later on, according to defined set of
rules like: HumanWorior will contain only human devices.
here some code examples:
HumanArmor letherArmor = new HumanArmor();<br />
HumanWeapon longBow = new HumanWeapon();<br />
AlienWeapon plasmaPistol = new AlienWeapon(); <br />
AlienArmor MagneticShild = new AlienArmor();<br />
<br />
HumanWorior humanWorior = new HumanWorior("Bob", letherArmor, longBow);<br />
humanWorior.Weapon = plasmaPistol;
<br />
<br />
GenericWorior genWorior1 = new GenericWorior("SuperMan", letherArmor, longBow);
GenericWorior genWorior2 = new GenericWorior("SuperMan", MagneticShild, plasmaPistol);
GenericWorior genWorior3 = new GenericWorior("SuperMan", MagneticShild, longBow);
i guess there is a solution at runtime with throwing an exeption but
if there a solution early at compile time for that problem.
thnx in advance.
|
|
|
|
|
I would look at using a hierarchy like this:
public interface Weapon
{
}
public interface HumanWeapon : IWeapon
{
}
public interface AlienWeapon : IWeapon
{
}
public interface IHumanArmour : IArmour
{
}
public interface IAlienArmour : IArmour
{
}
public abstract class Warrior : IWeapon, IArmour
{
private IWeapon _weapon;
private IArmour _armour;
private string _description;
public Warrior(string description, IWeapon weapon, IArmour armour)
{
_weapon = weapon;
_armour = armour;
_description = description;
}
}
public class HumanWarrior : Warrior
{
public HumanWarrior(string description, IHumanWeapon weapon, IHumanArmour armour)
: base(description, weapon, armour)
{}
}
public class AlienWarrior : Warrior
{
public HumanWarrior(string description, IAlienWeapon weapon, IAlienArmour armour)
: base(description, weapon, armour)
{}
}
public class GenericWarrior<T> : Warrior
where T : Warrior
{
private T _warrior;
public GenericWarrior(T warrior)
{
_warrior = warrior;
}
} Finally, you allocate this as:
GenericWarrior<Human> warrior = new GenericWarrior<Human>(new Human("Hello", _myHumanWeapon, _myHumanArmour)); I hope this helps.
|
|
|
|
|
Wow, pretty good.
Nitpick: You didn't declare IArmour (five points off)
I also question the public abstract class Warrior : IWeapon, IArmour on the basis that that means that a Warrior IS_A Weapon and Armour (which has some merit) rather than HAS_A.
Perhaps the Warrior should have properties for the IWeapon and IArmour.
Warrior Conan = new HumanWarrior() ;
Conan.Weapon = new EnormousBattleAxe() ;
Conan.Armour = new LoinCloth ( Material.Leather ) ;
Conan.Weapon.Strike ( BigAssSnake ) ;
(I only saw the movie once, long ago, so please pardon any mistakes.)
P.S. Whoops, the IWarrior should have a Weapons collection. What was I thinking?
modified on Friday, March 21, 2008 11:44 AM
|
|
|
|
|
I didn't think it was too bad, considering I just threw the code together. Yup you're right - this would have been better with a HAS_A relationship, but I suppose you could argue that a warrior is his weapons and armour.
|
|
|
|
|
Pete O'Hanlon wrote: a warrior is his weapons and armour
I would say that the warrior is the weapon and shield of the king (or whoever).
|
|
|
|
|
Thanks for all the fish wrote: Worior
Worior is spelt warrior... You should perhaps consider using a code spellchecker like Visual Assist X (you'll see the ads for it on some of the pages on Code Project; it's pretty good)
|
|
|
|
|
To me it is a matter of being typesafe. If your property is designed to only take input of Type AlienWeapon and you try to give it a HumanWeapon type it should through an error because of mismatched types, no matter of what the real base type is.
Its the same thing as a property knowing the difference between an Integer and a Long. They both inherit from type Object but they are different enough so that a property expecting a type of Integer will not take a type of Long.
|
|
|
|
|
Hi I’m developing an internet ASP.NET application, which needs to interact with Microsoft Certification Authority Server, the
client (browser) will request a certificate to sign a file (word, pdf) later.
I'm really disoriented. Must I use CAPICOM? Signing in the server, and sending the certificate through an SSL connection? Is
there any class in the .Net Framework to interact with Certification Authority Service without CAPICOM or an external Api?
Where can i get a code example?
Regards
Sergio
|
|
|
|
|
Did you deliberately set out to spam the forums? Or are you just too lazy/ignorant to read the forum guidelines?
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Ok, I've got a .NET 1.0 web app that has worked for YEARS until now. All of a sudden I'm getting an error saying "The file or assembly, xxxxxxx.dll, or one of its dependencies cannot be found." Each time the xxxxxxx is a different string of random characters. Now, I've googled this error and everything I've found says this is because the aspnet worker process doesn't have read and write privileges on the %window%\temp directory. Hmmm..... that doesn't make sense. Why would it all of a sudden not have read and write privileges? Well, sure enough, it DOES have full control privileges on the temp directory.
So, does anybody have any OTHER ideas what can be causing this?
Oh yeah....urgent. plz help.
"How come you can't taste your tongue?" - Jon Arbuckle
|
|
|
|
|
FyreWyrm wrote: Why would it all of a sudden not have read and write privileges?
That happens all the time in our enterprise due to the automatic execution (pushing) of GPOs (Group Policy Options) by our network nazis who obviously don't know what they are doing.
led mike
|
|
|
|
|
led mike wrote: GPO
GestaPO?
I just started encountering something similar; the IT director decided that everyone should have the company intranet as their home page (I prefer about:blank). The Sysadmin says that once I set my preference it should stay set and doesn't believe me when I say it stays set while I stay logged in but when I log in in the morning it's back to the company intranet.
|
|
|
|
|
LMAO Yeah, they don't change it daily but still and then the CIO gets on a company wide video conference and takes credit for all the hits they have!
What a bunch of monkeys!
led mike
|
|
|
|
|
Me: Yeah, I was trying to get to a page on MSDN.com and the web filter says it's blocked.
Network Nazi: What was the page?
Me: http://blogs.msdn.com...
Network Nazi: Ah. It's blocked because it's a blog.
Me: OK. I need it unblocked.
Network Nazi: Sorry. All personal blogs are blocked.
Me: Yeah, but I'm a programmer and I need access to this site.
Network Nazi: Sorry. I can't unblock this.
Well, I complained to my supervisor who called our department's Vice President, who called this guy's supervisor. In less than two hours blogs.msdn.com was no longer blocked.
"How come you can't taste your tongue?" - Jon Arbuckle
|
|
|
|
|
I'd like to thank everyone who took the time to answer me. Your responses were overwhelming.
More information on the problem:
This is the only .NET 1.0 app out of about 20 on the server that is having this problem. Also, this is the only app that consumes web services. It just so happens, that this error is only received on pages that consume a web service (which unfortunately the login page does so we couldn't get past go). Switching the vitrual directory for this app to .NET 1.1 fixes the problem.
Conclusion:
The XMLSerializer in .NET 1.0 is not functioning properly. More specifically, the .NET 1.0 installation on this server is FUBAR.
"How come you can't taste your tongue?" - Jon Arbuckle
|
|
|
|