eMail validation library
Hi all!
I'm looking for a good eMail validation library/assembly that I can include
in my .net projects for verifying eMail addresses (mainly syntax checking).
Thanks
Thomas Tag: QNX.NET Tag: 60550
Threading Problem
Hi,
I am using a API to access a Datasource in a Web
Application.The API is purely single threaded.
When there are more than one user trying to access the
data.the API crashes and this inturn kills the ASpnet
worker process.
Can anybody help me out with how to proceed to write a
Wrapper class so that i can achieve crash free experience.
Any help will be highly appreciated
Regards
Abdul Rahman Tag: QNX.NET Tag: 60545
Customize Toolbox with Ink Control
Hello,
The knowledge base says I can add ink controls to my
toolbox by checking the controls in the .net framework
components. This is supposed to work in vb and c# but I
find no ink controls in the .net framework.
Is the kb wrong? Am I wrong? Has anyone else actived
im_ink for filing out a form with handwriting?
TU,
Keith Tag: QNX.NET Tag: 60532
System.Drawing.Color
Can someone tell me why
System.Drawing.Color.DarkGray is brighter than
System.Drawing.Color.Gray?
Was Microsoft's dev team's budget too small to ask purchasing for a box of
sRGB-conformant Crayolas? lol.
<shrug>
Andrew Janssen Tag: QNX.NET Tag: 60520
Multiple instances of an application.
I have a .NET application that does data processing by
state (disconnected). The state to process is determined
by a command-line parameter. When I run multiple instances
of the application (which I need to be able to do), the
processing is handled fine. However, all instances after
the first one GPF when they complete their processing and
attempt to close.
Also -- I don't know if it is related, but the event log
contains this message for each app that GPF's: "Installing
the performance counter strings for .NETFramework failed.
The Error code is DWORD 0 of the Record Data."
Thanks for the input.
Russ Bishop
MCSD Tag: QNX.NET Tag: 60519
Enabling an user account with ActiveDS (WinNT provider)
I am resubmitting this again:
I have this code:
DirectoryEntry usr = new DirectoryEntry("WinNT://./guest");
int val = (int) usr.Properties["UserFlags"].Value;
usr.Properties["UserFlags"].Value = val & ~0x0002; <=== this fails
usr.CommitChanges();
I am trying to enable a usera account with the DirectoryServices class.
When the code executes, I get this error.
Error: Unspecified error at System.DirectoryServices.Interop.IAds.PutEx(...
Any ideas what I am missing? The user account I am using to execute this
program has Adminsitrator rights for the local machine.
Thanks
Eliseo Tag: QNX.NET Tag: 60518
Save Excel with a windows form
I have a windows form that traps an "before save" event in
Excel 2000. What I would like to do is save the Excel in
SQL Server by calling a web service. I thought I could
have serialized Excel and send it to the web service as a
string for database storage, but it seems that Excel
cannot be serialized. This windows form will be a no
touch deployment application so any extra software would
be difficult.
Thanks,
Shane Tag: QNX.NET Tag: 60516
FileStream
What's the best practice appending one file to another, using two FileStream
objects?
Thanks,
Eduardo
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.525 / Virus Database: 322 - Release Date: 09/10/2003 Tag: QNX.NET Tag: 60514
Windows Applications
I=B4m working with C#. And my question is:
How can i open a file with its win application?. For=20
example open a word file with MS Word? or an excel file=20
with MS excel?=20
I=B4trying to find the way to open a windows application=20
with it=B4s own path, or to open a windows file with it=B4s=20
own path.
Thanks for any help. Tag: QNX.NET Tag: 60511
AppBlock DLLs in GAC?
I'm starting to use the Data Access Application Block. Is
it a good practise to just place the DLL in the GAC and
have all yr projects pick it up from there? Or better to
keep a file reference, move it to bin directory. TIA. Tag: QNX.NET Tag: 60510
About DataAdapter.Update
The dataadapter compares the current dataset with the
original dataset in determining the series of
INSERT,DELETE and UPDATE to make the datasource reflect
the current dataset. What about the case when tables in
a dataset is cleared and then rebuilt. Does the
dataadapter send a DELETE removing the corresponding
datasource or it is "smarter" and affects only changes
between "before" and "after" of the dataset.
Brad Tag: QNX.NET Tag: 60506
Null out original reference?
I need to be able to keep a list of object references, and null them out one
by one at a later point in time. I realize this can be dangerous, but I have
my reasons.
I can't figure out, however, how to keep what is essentially a reference to
a reference. I want to store my objects in an ArrayList, then loop through
the array list and null out the original reference I was given when I added
it to my Array List.
Below is some example code:
//Here is some example usage
object nullMe;
Nuller nuller = new Nuller();
nullMe = new object();
nuller.AddToNullList(ref nullMe);
nuller.NullItOut();
//Here is my "Nuller" class:
public class Nuller
{
private ArrayList m_NullList = new ArrayList();
public void AddToNullList(ref object nullMe)
{
m_NullList.Add(nullMe);
}
public unsafe void NullItOut()
{
for(int i = 0; i < m_NullList.Count; i++)
{
//I want this to null out the original reference... the "nullMe"
variable in the usage example code.
m_NullList[i] = null;
}
}
}
How do I accomplish this?
RMD Tag: QNX.NET Tag: 60503
CodeDom VB code generation
I am using the Codedom classes to generate some code. Generally it is
pretty intuitive but I have not been able to determine how to generate the
'not' statement. Specifically I want to be able to generate something like:
if not testexpression then
...
end if
The if is fine it is a codeConditionStatement but I am not sure how to do
the 'not'.
Tim Tag: QNX.NET Tag: 60495
EventArgs
Hi,
Is there any sort of limitation on the amount or type of arguments that
can be passed in a type derived from EventArgs into a callback?
Basically this would be as limited as the type thats being passed right?
Fanks Tag: QNX.NET Tag: 60486
Querying from a dataset
Using a dataadapter, one can query from a datasource to
get a dataset. Is it possible to be able a query from a
dataset and get another dataset? Tag: QNX.NET Tag: 60484
change password from .NET program
How can I change a user's password from a .NET program? Is there perhaps a
class for it, or maybe a WMI interface, or some executable I can run? I've
done some MSDN searches but haven't turned up anything so far.
Thanks in advance,
Dan S. Tag: QNX.NET Tag: 60481
httpHandlers machine.config all applications
Does anyone know how to get a custom httpHandler to fire for all applications in machine.config for an assembly in the GAC, without
using seperate location tags?
For instance, this works for a single domain:
<location path="mydomain.com" allowOverride="false" >
<system.web>
<httpHandlers>
<add verb="*" path="*.mycustomExtension" type="MyCustomClass,MyDLL, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=47922ba823051f3f, Custom=null" />
</httpHandlers>
</system.web>
</location>
if I add it like this, it says "Parser Error Message: Sections must only appear once per config file. See the help topic <location>
for exceptions.". This is because httpHandlers are declared further down the config file.
<location>
<system.web>
<httpHandlers>
<add verb="*" path="*.mycustomExtension" type="MyCustomClass,MyDLL, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=47922ba823051f3f, Custom=null" />
</httpHandlers>
</system.web>
</location>
if I delete the above, and add the custom handler with all the OTHER httpHandlers, it doesn't fire at all (I'm actually wondering if
they are now)
Thanks for any help. Tag: QNX.NET Tag: 60479
Fuc@#!! ToolBars
Hi group,
I manage with toolBars.
This class seems to me as a prehsitorical (if that word exists) class to
me......
I used the class ToolBar, added ToolBarButton in the ToolBar.Buttons, put
images on them etc....
To detect a ToolBarBbutton.Click event, it seems that the only way is to
detect the ToolBar.Click event then to determine the ID of the Button
clicked, and select do what to do in a great switch case.
That mean that if i insert a new button to my ToolBar during a maintenance
developpement, or for a new version, i will have to rewrite my entiere
switch case !
Is there a realist method to get my ToolBarButton.click events ??
In the ToolBarButtonCollection, I can fix the name of myToolBarsButtons, so
why can't i access them with it ?
Must i develop a new ToolBarButton class to do that ?
Or is there a real third part ToolBar class wich improve some realist
functionalities ?
Or do i miss something ?
thanks
ROM Tag: QNX.NET Tag: 60472
how to regasm VS.NET 2003-generated assembly on .NET 1.0 machine?
Hello,
I am using VS.NET 2003 to build a DLL library which is a COM plug-in
for IE. This means I must use regasm to register the DLL. This works
fine on my development machine (which of course has .NET 1.1 since I
have VS.NET 2003). However, when I try to use regasm to register the
DLL on a machine that only has .NET 1.0 it fails with the following
error message:
"RegAsm error: File or assembly name System.Windows.Forms, or one of
its dependencies, was not found."
I've searched the newsgroups high and low and I've read the referenced
material which says that VS.NET 2003 can only target .NET 1.1, and
that if you want to run on .NET 1.0, then you must use an application
configuration file. However, the app config file only works with a
.exe and not a .dll.
How does one build a DLL with VS.NET 2003 that runs on .NET 1.0? (and
more to the point, how do I get past my problem with regasm above?)
Thanks,
Steve Tag: QNX.NET Tag: 60465
About SetLocalSymInfo
when I call SetLocalSymInfo in my code within a global function, it throw
System.NullReferenceException. why?
by the way, what is the mean of startOffset and endOffset, is it offset from
file begin in charactor, or from the method's begin.
thanks
xiaorun huang Tag: QNX.NET Tag: 60462
regarding .net framework(urgent)
hi sir/madam
please send me material on following topics, this is very
much urgent. this should be in introductory format..
1) Introduction to .NET Framework
2) Concept of CLR
3) Managed & Unmanaged code in VC++
4) Concept of Assemblies..
i will be very thankful to u for this, if send me as early
as possible..
thanks
regards
shaveta datta Tag: QNX.NET Tag: 60460
Date and Time Properties dialog
Hi,
Does anyone know how to programmatically (C#) bring up
Date and Time Properties dialog, the same one that comes
up when you click on the little time indicator in the
task bar.
Thanks in advance Tag: QNX.NET Tag: 60454
UUEncoding in .NET
Hi,
I'm looking for an in-the-box or free-source solution to UUdecoding (and
optionally UUencoding) data. I know that the Framework comes with Base64
encode/decode. I've also tried reflecting over System.Web.Mail as that
allows attachements to be UUEncoded, but i stopped along that route when it
called down to cdonts/COM.
I'm just basically looking for the source that demonstrates how to UUDecode
(or even just a firm description of the decoding principals and I'll do it
myself!).
Cheers,
Steve Tag: QNX.NET Tag: 60448
Equivalent to QueueUserAPC?
Is it possible to use the thread queues in .Net, e.g.
using C#?
The Windows API call for this would be QueueUserAPCEx.
I've already found that there is the possiblity to use
QueueUserWorkItem on a thread pool, but that's not exactly
what I'm looking for. Tag: QNX.NET Tag: 60446
.NET Framework 1.1 wont install on 2000 Pro machine
It prompts me that the Windows Installer needs updated but
when I try to install the 2.0 instmsiW.exe for 2000 it
says specified service already exists.
How the hell do I get the .NET Framework installed?
Thanks Tag: QNX.NET Tag: 60444
Max number of threads that can wait on a ManualResetEvent...
Is there an API call I can use to determine the max number of threads that
can wait on one ManualResetEvent? Like, on a single processor machine, the
number is 64. I think a dualie can have up to 128. Tag: QNX.NET Tag: 60443
updater application block
I felt I had to share this frustrating experience. I recently downloaded
and installed the Updater Application Block
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html
/updater.asp?_r=1). Being a preacher of "RTFM", I read the ReadMe file that
was installed. It said I needed to install the Quickstarts, and that a
script was provided for it. It also said:
" * The install script may take several minutes to complete, during which
multiple windows appear and disappear; please just wait for the "install
completed" dialog to appear." Ok, I'll wait. The windows came and left,
and I thought everything was fine until I got an error complaining that a
file was missing instead of the dialog that said "install completed". After
a few hours of troubleshooting, I discovered that the missing file should
have been generated by the DOS windows that were flying by. And in the
install script, I saw this:
============
function GetVSPath() 'as string
'Assume VS is in the Program Files folder ('Added by Graeme May 30th)
Dim oShell, oSystem
Set oShell = CreateObject( PROGID_SHELL )
Set oSystem = oShell.Environment("PROCESS")
GetVSPath = oSystem("PROGRAMFILES") & "\Microsoft Visual Studio .NET
2003\Common7\IDE"
end function
============
Yep, that would be a problem. I had installed VS on my E: drive. So the
DOS windows that had come and gone didn't do what they were supposed to! I
changed the last line of the function above to:
GetVSPath = "E:\Program Files\Microsoft Visual Studio .NET
2003\Common7\IDE"
and re-ran the script and then everything was happy.
While I appreciate the work that went into the application updater, and the
amount of work that it will save me, I still felt that it could have been
better. After all, you know what they say about "ASSUME".
I feel better now.
MD Tag: QNX.NET Tag: 60440
CONTRACT EMPLOYMENT IN TORONTO, DB, .NET, DEVELOPMENT
Web development agency in Toronto, Canada has an opening for 3 months
contract:
Senior DB / Web Developer - 3 Months Contract.
The applicant must have 5+ years of experience in web and other application
development, deep knowledge of Microsoft Technologies including architect
and design of databases (MS SQL 2000), development using .NET (C#).
Go here for more details and click on the position:
http://www.visualeradesign.com/employment/employment.htm
Thank you.
Visualera Inc.
www.visualeradesign.com Tag: QNX.NET Tag: 60437
CONTRACT EMPLOYMENT IN TORONTO, DB, .NET, DEVELOPMENT
Web development agency in Toronto, Canada has an opening for 3 months
contract:
Senior DB / Web Developer - 3 Months Contract.
The applicant must have 5+ years of experience in web and other application
development, deep knowledge of Microsoft Technologies including architect
and design of databases (MS SQL 2000), development using .NET (C#).
Go here for more details and click on the position:
http://www.visualeradesign.com/employment/employment.htm
Thank you.
Visualera Inc.
www.visualeradesign.com Tag: QNX.NET Tag: 60435
installing .net framework w/no internet access
I want to install the .net framework on a server with no internet access.
dotnetfx.exe requires internet access
Can the framework be installed from a client to the server or is there
another selfcontained file that can be downloaded and copied to the server
for installation.
Thanks,
RickN Tag: QNX.NET Tag: 60433
Object threading
Hi,
If I have an object taht has a method thats started as a tread and other
methods that are called by other classes.
WHat is the boundries? The methods called by other claseses are in one
thread and the threadproc in another, so we must sync those objects taht are
being shared between the called methods and the thread proc? Right?
SO basically the object itself is sitting in the caller thread, yet the
threadproc inside the object is in another. so its feet in both threads?
Thanks Tag: QNX.NET Tag: 60420
VB 6 Deployment Batch File in VS.NET
In VB6's deployment and package wizard it made a batch file that you could
run to repackage your project. Can I do something like that in VB.NET?
I have a solution that all it does is package up my 15 files into a nice
MSI. Every time I update one of my projects or Dlls (the dlls are not in
dotnet) I have to open up my solution and tell it to rebuild. Is there an
easier way?
Thanks in advance
Chris Tag: QNX.NET Tag: 60419
Server.Transfer Issue.
I am using ADO.Net to save data in SQL Server using Transaction Object.
Method works perfectly fine when I tested that ( begin Transaction and
Commit Transaction, all are working great). But As I added Server.Transfer
(somefile.aspx) at the end of the method, every thing vanished from
database. ( as I need to transfer it to some other page on the basis of
result)
I have also tried Response.Clear() before Server.Transfer( some file ) and I
have also used Response.Buffer = True at page_load method.
Anyone, Please help...
--
Ather Ali Shaikh
Software Engineer
eIntelligence (Pvt.) Limited.
Ph. (+92-21) 2434070, 2415929-30
email. ather.ali@eintelligencesoft.com
web. www.eintelligencesoft.com Tag: QNX.NET Tag: 60418
Inconsistent behavior in Uri class (Equals vs. ==)
We have found that the Equals method of the Uri class
works as expected but that the "==" operator does not.
For example, here's a little console application:
using System;
namespace UriEqualsBug
{
class Class1
{
[STAThread]
static void Main(string[] args)
{
Uri u1 = new Uri
("http://tom/foo.xml");
Uri u2 = new Uri
("http://tom/foo.xml");
Console.WriteLine("The two
instances are equal using the equals method {0}",
u1.Equals(u2));
Console.WriteLine("The two
instances are equal using the == operator {0}", u1 == u2);
}
}
}
One would expect the output to be true for both
comparisons. However, we get true from the u1.Equals(u2)
and false from u1 == u2. Any ideas? Is this a framework
bug?
We are using the .NET framework 1.1.4322. Tag: QNX.NET Tag: 60415
framework version
Hi,
I had vs.net 2002 installed and framework1.0, recently I
installed framework1.1 into the same machine, can I
configure to continue using vs.net 2002 build app on top
of framework1.1, or switch back later?
thanks,
uni Tag: QNX.NET Tag: 60414
LDAP on a stand alone 2000 client
I want to test out active directory authentication on a
Windows 2000 client. Is this possible?
If my client PC is called CLIENT and is in a workgroup
WORKGROUP, do I use
DirectoryEntry
("LDAP://DC=CLIENT,DC=WORKGROUP", "user1", "password")
if user1 exists on CLIENT? Tag: QNX.NET Tag: 60413
ASP.NET Trace from service running in web app
In the Application_OnStart event in global.asax, my code calls an
AlertService which creates a System.Timers.Timer() object. So this service
doesn't actually run in conjunction with a specific aspx page, apparently.
When the timer's Elapsed event handler fires, it calls some other classes I
have written. These classes output some Trace statements that you can view
if an aspx page calls them, but I can't seem to figure out where the Trace
statements go when my service calls the classes.
Is there any way I can find the trace for this service?
--
[[((hillarie))]]
To reply, remove ".SPAMBLOCK" from email address Tag: QNX.NET Tag: 60410
ASP.NET: Page_Load fires twice
I have a user control and its Page_Load event is firing twice.
I have consulted articles such as this one:
http://www.extremeexperts.com/Net/FAQ/PageLoadFiringTwice.aspx
This article essentially says that if I set AutoEventWireUp to false, then
the Page_Load will only fire once. However, that is not the right solution
for me. Here is my code:
in the .ascx.cs file:
protected override void Page_Load(object sender, System.EventArgs e)
{
Trace.Write("GenInf01", "Page_Load() begin");
}
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
}
in the .ascx file:
Control Language="c#" AutoEventWireup="false" Codebehind="GenInf01.ascx.cs"
Inherits="MERC.AircatWeb.Applications.TAR._107RequestForm.GenInf01"
TargetSchema=http://schemas.microsoft.com/intellisense/ie5
Does anyone know what else to be looking for?
--
[[((hillarie))]]
To reply, remove ".SPAMBLOCK" from email address Tag: QNX.NET Tag: 60407
aspnet_isapi.dll 'Deadlock detected'
Hello!
I need help with this error, I receive it on the Event Viewer when my server
has a lot of traffic for .net pages. I can't find any info about it.
When this error happen my server hangs .net pages for 5 minutes
approximately.
Thanks in advance
Event Type: Warning
Event Source: W3SVC-WP
Event Category: None
Event ID: 2262
Date: 23/10/2003
Time: 15:29:45
User: N/A
Computer: XXXXXXXXXXXXXX
Description:
ISAPI 'C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll' reported
itself as unhealthy for the following reason: 'Deadlock detected'.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp. Tag: QNX.NET Tag: 60404
Security Exception
Is there a way that when I install my vb.net application through an MSI that
I can have the assemblies fully trusted? Everything works fine when tell it
to trust my assembly but I need this to happen automatically when I deploy
my app. Thanks.
Chris Tag: QNX.NET Tag: 60403
C# late binding for accessing WORD object model
I am attempting to use late binding to interface with word (versions
97, 2000 and 2002). I have a few questions:
1. How do I detect if there is an instance of word that I can attach
to rather than starting a new instance.
2. How can I determine which version of Word is running. (I assume I
need this as there may be instances where the arguments to methods
change from version to version).
3. Does the MailMerge facility exist in Office 97.
4. Does anyone know of any C# samples that run on Word 97, 2000 and
2002.
5. Where can I get acces to the word object model for all of these
versions of word.
6. Below is sample code that creates an instance of word and then
opens a document. To access the Open method on the Documents, I have
to somehow get a Type from an object. I achieve this by calling
Type.GetHandle and then call Type.GetTypeFromHandle. My instinct was a
GetTypeFromObject method but none exists. Is this the best way to do
this as it seems very messy?
Type t = Type.GetTypeFromProgID("Word.Application");
object w = Activator.CreateInstance(t);
object docs = t.InvokeMember("Documents", BindingFlags.GetProperty,
null, w, null);
// Get a type from an object???????
RuntimeTypeHandle handle = Type.GetTypeHandle(docs);
Type tDocs = Type.GetTypeFromHandle(handle);
object doc = tDocs.InvokeMember("Open", BindingFlags.InvokeMethod,
null, docs, new Object[] {@"C:\logfile.txt"}); Tag: QNX.NET Tag: 60391
help deleting a member of an enumeration from within a loop
Hi,
I'm very new to .NET and am programming in C#. I have a web application
where i have two list boxes. Its kind of like a shopping card where you can
add items from one 'locations' list box to the 'locations selected' (cart)
listbox. I have a hirarchy of locations - main locations and sub
locations. main locations being the parent locations, and the sub locations
being the child locations.
I want to be able to check to see if the already selected locations listbox
(cart) already contains a child location of a parent location that is trying
to be added to the collection (because there is no need to add the child
there if the parent is selected). if so the child should be deleted and the
parent added
I am looping through the locations selected, and for each one looping
through the already selected (cart) locations collection and checking the
existance of the members.
here is the code:
private void Button1_Click(object sender, System.EventArgs e)
{
if(lstLocations.SelectedIndex != -1)
{
foreach(ListItem selectedLocation in lstLocations.Items)
{
if(selectedLocation.Selected)
{
bool itemAlreadyExists = false;
bool parentItemExists = false;
bool childItemExists = false;
foreach(ListItem locationsSelected in
lstCart.Items)
{
//does new location already exist in
locations collection?
if(selectedLocation.Text.Equals(locationsSelected.Text.ToString()))
{
itemAlreadyExists = true;
lblNotice.Text += "At least one of
the selected items already exists and has been ignored<br>";
}
if(!itemAlreadyExists)
{
//does parent of child already exist
in collection
if(selectedLocation.Value.StartsWith(locationsSelected.Value.ToString()+"-")
)
{
parentItemExists = true;
lblNotice.Text += "You
attempted to add a child location of a parent already selected. There is no
need to add a child location when the parent is already in your collection.
Item ignored<br>";
}
//does child of parent already exist
in collection, if so get rid of it
//this is the bit that is giving the
error!
if(locationsSelected.Value.StartsWith(selectedLocation.Value.ToString()+"-")
)
{
childItemExists = true;
lstCart.Items.Remove(locationsSelected); //this is where the error
occurs
lstCart.Items.Add(selectedLocation);
lblNotice.Text += "A child
location was removed because you added its parent!<br>";
}
}
}
if(!itemAlreadyExists && !parentItemExists &&
!childItemExists)
{
lstCart.Items.Add(selectedLocation);
}
}
}
}
}
when i execute the page and try add a parent location when a child already
exists the page throws the following error:
Collection was modified; enumeration operation may not execute.
I know this is pretty much saying that as the loop progresses, the code
tries to delete a member of the collection and hence modify the loop.
Can you see what i am trying to achieve and please advise me of the best way
around this problem?
Thanks alot for your help
Tim.. Tag: QNX.NET Tag: 60389
Reflection, custom attributes
what may be the reason for the following behaviour:
//I load an assembly from dll.
Assembly asembly = Assembly.LoadFrom(dllFullPath);
//then I get all Types from the assembly
types = asembly.GetTypes();
flags = (BindingFlags.Public|BindingFlags.Static|
BindingFlags.Instance|BindingFlags.DeclaredOnly);
//and next, I try to load some method infos from type.
foreach (type in types)
{
MethodInfo[] mInfos = type.GetMethods(flags);
//and at the very end I try to get some custom attribues
//defined for the method.
attributes = mi.GetCustomAttributes(typeof (
Common.DescriptionAttribute),false);
if(attributes.Length >0)
{
//do somethong with the attributes...
}
}
The most strange thing for me is the fact, that when
dllFullPath points to some deeply nested directory (with
the project), the custom attributes are not found. But
when I copy the _very same_ DLL to root directory of
drive, all attributes are found. (?)
What may be the reason for such behaviour ?
Plese help
Michal Januszczyk Tag: QNX.NET Tag: 60387
Plug-ins in the separate domain
Hello, All!
I try to realize the plug-ins loaded in the separate domain (approximately
as here it is written
http://msdn.microsoft.com/msdnmag/issues/03/10/plug-ins/default.aspx). A
difference only that manager plug-ins is started not from the program, but
from COM, written on vb.net which, in turn, is caused by a plug-in for the
Host. In general, all wonderfully works, except for trifles:
1. Assembly of the manager of plug-ins and the classes necessary for work of
plug-ins, it is necessary to prevent in GAC, else loading such as
plugDomain.Load(ManagerAssemblyName) is not possible
2. There lives of 5 minutes on which expiration attempt to execute a method
of a plug-in causes the message "Object has been disconnected or does not
exist at the server". Thus of property (String) of a plug-in to receive it
is possible. No my dancings around LifetimeServices and other leases give
result :(
With best regards, Dyakov K.M.. E-mail: kostya@galaktika.ru Tag: QNX.NET Tag: 60386
FxCop: How to write own rules for bracket checks ?
Hi all,
we use FxCop for coding rule testing.
We want to have brackets in one line if statements cause this is not so error- prone
Example:
if ( 1 == 1 )
doSomething;
<=>
if ( 1 == 1 )
{
doSomething;
}
Can we do such coding tests by FxCop? That is a inline code test.
There are many tests like this to do for example tab tests or bracket tests in ifs
if(..
if (...
if ( ...
Maybe we can do this by implementing our own IRule - but how to do?
Thank you :-)
Heike Tag: QNX.NET Tag: 60379
Remote Setup of Security.
Is there a way to change the security of an assembly (such as CASPOL) that
can be used accross a network from one machine to another ?
With Thanks
Jason Tag: QNX.NET Tag: 60372
Service Pack 2 Installation Problem
I've repeatedly used the Windows Update page to download
and install .NET service pack 2, but whenever I run the
update, it tells me that service pack 2 needs to be
installed. What's going on? Tag: QNX.NET Tag: 60363
Installing .NET Framework 1.1
I am running Win ME. Went to the Win ME update site and
downloaded .NET Framework 1.1.
Tried to install it, everything runs fine, and then I get
to the script 'Registering System Enterprise <something>',
and everything comes to a screeching halt.
I get the following message:
Error 1935: installation of assembly component
{608A2065-C580-4C1F-91ED-87286B7FDE1F}
HRESULT: -2146234299
Then the rollback script runs, and I get the message that
nothing was installed.
I have tried this over and over again, and the same thing
happens. Couldn't find anything at the Microsoft site to
help me, and thought one of you could. Thanks!! Tag: QNX.NET Tag: 60355
Personally - running real time apps with garbage collector does not seem
like the best thing to do.
Jerry
"news.microsoft.com" <anonymouse@discussions.microsoft.com> wrote in message
news:OTkd4IumDHA.1284@TK2MSFTNGP09.phx.gbl...
> Hi,
>
> Would there ever be a port of the CLR to QNX? Would this be possible?
> Has anybody tried Real time applications with C#?
>
>
>
> Fanks
>
>