I made a .NET dll and put it in system32 folder and RegAsm it in a win2003 server.
One of the API of this dll is to create a file in c:/ folder. And when I call this API from a classic ASP script, always get this error
System.IO.__Error.WinIOError
So the dll or asp process does not have the sufficient access privilege? How to give it...
What is the C# equivalent to Java's JAD and is there a VS plugin similar to Eclipse's JadClipse?
...
Hi all,
I have the following basic classes (cut down for this question):
public class Parent
{
public string Name { get; set; }
public IList<Child> Children { get; set; }
}
public class Child
{
public string Name { get; set; }
}
If I have a Parent collection, what I'd like to do is get an IList that is sorted by Parent.N...
If mono can make .sln files (from cli) How do I do that?
...
Sometimes adding a WCF Service Reference generates an empty reference.cs and I cannot reference the service anywhere in the project.
Has anyone encountered this?
...
I recently attempted a large refactoring (yes I know smaller increments and unit testing along the way is preferred) that I just had to walk away from. It's not that I couldn't have done it, but I realized that the time to do it right wasn't justified in the business sense. Normally I am one to tackle refactoring with no fear because of ...
How can I install the latest version of mono (maybe from trunk) on the centos (5.3+) ?
EDIT: Or do I have to change my server environment to Ubuntu Server or OpenSuse ?
...
Here's a much-abbreviated sample of my code.
<Grid>
<Polygon
Name="ply" Grid.Column="2" Grid.Row="0" Grid.RowSpan="3"
Fill="Orange" Stroke="Orange" Points="0,1 1,3 2,2 2,0 0,0"
/>
<Line
Grid.Column= "{Binding ElementName=ply, Path=Grid.Column, Mode=OneWay}"
Grid.Row= "{Binding ElementName=ply, Path=Grid.Row, Mode=On...
Hi,
I'm investigating for a free, high available, high performance solution for caching or storing .net session data (for a high traffic website). I don't want to use a db (db is the bottleneck on traffic increase).
There're some key/value stores, but as far as I know they don't support .net objects.
And there're some distributed or r...
Hi,
Can anyone please make a comparison of "asp.net mvc" vs "spring mvc (java)".
Which technology is better in performance, productivity, maintenance, features,...
Regards,
sirmak
...
How to get the Kenel time of an opertaion for eg: networking, disk I/O or other kernel tasks using a C# code?
...
For example i got a class and its got its own properties and i am passing the name of the class and the name of the property to be called to a function
Say for example exp is the variable which i am passing which contains a value = "ClassA,Property1"
Function Property2BCalled(byval exp as String)
dim classname ...
So I have to make a windows service that scans incoming mails in a mailbox on an exchange server for specific words and then deletes the mail. The mailbox I will be scanning currently holds more than 70000 mails. I've tried using the exchange WebDAV protocol, but it usually times out before responding. Are there any alternatives to WebDA...
Is it possible to inject an interface into an existing 3rd party class that I can not alter? Like extension methods but for an interface (and its implementation for the class that it had been injected to).
I like to optionally use one of two similar 3rd party libraries by giving classes that are similar in both libraries the same interf...
I'm using something like this on my server:
TcpServerChannel channel = new TcpServerChannel(settings.RemotingPort);
ChannelServices.RegisterChannel(channel, true);
RemotingServices.Marshal(myRemoteObject, "myRemoteObject");
I would like to subscribe to some kind of event so that whenever a remote client connects to myRemoteObject, I c...
I need a regular expression in .net which
will only allow a maximum of two digits after "."
will only allow a maximum of two digits before "."
has a maximum length of 5
represents a number greater than 0
represents a number not greater than 100
has a number not greater than 11 after ".", like 5.11, 5.10, 5.03, 5.01, 5.06, etc (not 5....
I believe this code may require more effort to comprehend than average, so I'm using contextual code-comments to explain my predicament in an effort to make it a little easier to understand my question.
public class MyControl : System.Windows.FrameworkElement
{
public double Property1 { get; set; }
public double Property2 { ge...
There is a constructor on StackTrace that takes an exeption as an argument. All fine and well, but I noticed that all the other constructors say that it will get the StackTrace from the current thread, but the constructor taking the exception does not say anything about that other than
The resulting stack trace describes
the stack...
I ahve a RTB with sufficent text that scrolling is needed
user enters a string and I highlight all occurrences using a combination of Find and Select which is great but now I want the ability for a user to press Next and the next higlighted instance should be visible say 2at /3rd of the bounding rectangle ( I would even settle for at th...
In Brad Wilson's post
http://webanonymizer.info/browse.php?b=5&u=Oi8vYnJhZHdpbHNvbi50eXBlcGFkLmNvbS9ibG9nLzIwMDgvMDgvcGFydGlhbC1yZW5kZXJpLmh0bWw%3D
he listed all the overloaded method for Html.RenderPartial(), but none takes the controller name as parameter.
For my application, I would like to specify the controller name when cal...