FileSystemWatcher
I am using VB.NET and the FileSystemWatcher monitoring a
network drive. Periodically I will get an error such as
this:
A first chance exception of
type 'System.Net.Sockets.SocketException' occurred in
system.dll
Additional information: An existing connection was
forcibly closed by the remote host
How can I trap this error and re-establish a connection
in order to continue monitoring the directory on the
network? The application I have written must run
continuously, 24..7.
Thanks,
Robert Tag: XML serialization Tag: 66180
.Net 1.1 framework compatibility with ECMA
If I have correctly understood, .Net framework libraries
should match ECMA-335 standard (latest is second edition).
mscorelib.dll (1.1) contains class "CharEnumerator" with
property declared folowing:
".property instance object
System.Collections.IEnumerator.Current()"
CLI standard says, that property should be declared:
.property <propHead> { <propMember>* };
<propHead>::= [specialname][rtspecialname] <callConv>
<type> <id> ( <parameters> );
ID - C style alphaNumeric identifier (e.g. Hello_There2);
Here we got that properties id is declared with dots, so
it should be incopatibility with ECMA-335 standard? Could
someone explain this situation? 1.0 .Net Framework
contains correct property declaration.
Thank you Tag: XML serialization Tag: 66179
How to open a mpp stored in sqlserver database
Hi All
I've saved an MPP into SQL Server and wish to open the same from an asp
application. How do I get it ?
Please help! Tag: XML serialization Tag: 66177
quick money
To: everyone
Topic: a way to make money quick easy and legally=20
HOW TO TURN $6 into $6,000 !!!!!! Remember: play FAIRLY=20
and HONESTLY and this will really work. I found this on a=20
bulletin board and decided to try it. A little while back,=20
I was browsing through newsgroups, just like you are now,=20
and came across an article similar to this that said you=20
could make thousands of dollars within weeks with only an=20
initial investment of $6.00! So I thought, Yeah right,=20
this must be a scam,but like most of us, I was curious, so=20
I kept reading. Anyway, it said that you send $1.00 to=20
each of the 6 names and address stated in the article. You=20
then place your own name and address in the bottom of the=20
list at #6, and post the article in at least 200=20
newsgroups. (There are thousands) No catch, that was it.=20
So after thinking it over, and talking to a few people=20
first, I thought about trying it. I figured: what have I=20
got to lose except 6 stamps and $6.00, right? Then I=20
invested the measly $6.00. Well GUESS WHAT!!... within 7=20
days, I started getting money in the mail! I was shocked!=20
I figured it would end soon, but the money just kept=20
coming in. In my first week, I made about $25.00. By the=20
end of the second week I had made a total of over=20
$1,000.00! In the third week I had over $10,000.00 and=20
it's still growing. This is now my fourth week and I have=20
made a total of just over $42,000.00 and it's still coming=20
in rapidly. It's certainly worth $6.00, and 6 stamps, I=20
have spent more than that on the lottery!! Let me tell you=20
how this works and most importantly, why it works....Also,=20
make sure you print a copy of this article NOW, so you can=20
get the information off of it as you need it. I promise=20
you that if you follow the directions exactly, that you=20
will start making more money than you thought possible by=20
doing something so easy! Suggestion: Read this entire=20
message carefully! (print it out or download it.) Follow=20
the simple directions and watch the money come in! It's=20
easy. It's legal. And, your investment is only $6.00 (Plus=20
postage) IMPORTANT: This is not a rip-off; it is not=20
indecent; it is not illegal; and it is virtually no risk -=20
it really works!!!! If all of the following instructions=20
are adhered to, you will receive extraordinary dividends.=20
PLEASE NOTE: Please follow these directions EXACTLY, and=20
$50,000 or more can be yours in 20 to 60 days. This=20
program remains successful because of the honesty and=20
integrity of the participants. Please continue its success=20
by carefully adhering to the instructions. You will now=20
become part of the Mail Order business. In this business=20
your product is not solid and tangible, it's a service.=20
You are in the business of developing Mailing Lists. Many=20
large corporations are happy to pay big bucks for quality=20
lists. However, the money made from the mailing lists is=20
secondary to the income which is made from people like you=20
and me asking to be included in that list. Here are the 4=20
easy steps to success: STEP 1: Get 6 separate pieces of=20
paper and write the following on each piece of=20
paper;PLEASE PUT ME ON YOUR MAILING LIST. Now get 6 US=20
$1.00 bills and place ONE inside EACH of the 6 pieces of=20
paper so the bill will not be seen through the envelope=20
(to prevent thievery). Next, place one paper in each of=20
the 6 envelopes and seal them. You should now have 6=20
sealed envelopes, each with a piece of paper stating the=20
above phrase, your name and address, and a $1.00 bill.=20
What you are doing is creating a service. THIS IS=20
ABSOLUTELY LEGAL! You are requesting a legitimate service=20
and you are paying for it! Like most of us I was a little=20
skeptical and a little worried about the legal aspects of=20
it all. So I checked it out with the U.S. Post Office (1-
800-725-2161) and they confirmed that it is indeed legal!=20
Mail the 6 envelopes to the following addresses: #1) Jeff=20
Millan 1113 N. 19 =BD McAllen,TX 78501 #2) simon white 23=20
mason road stroud glostershire eng #3) Wayne Clark 146=20
Poningo St. Port Chester, NY 105 #4) T. brayford dotburn=20
park road stroud glos eng gl5 2jf #5) Alan Meyer 17725 W.=20
Belmont Ave. Kerman, CA 93630 #6) Joshua North 17415 W.=20
Whitesbridge Kerman, CA 93630 STEP 2: Now take the #1 name=20
off the list that you see above, move the other names up=20
(6 becomes 5, 5 becomes 4, etc...) and add YOUR Name as=20
number 6 on the list. STEP 3: Change anything you need to,=20
but try to keep this article as close to original as=20
possible. Now, post your amended article to at least 200=20
newsgroups. (I think there are close to 100,000 groups)=20
All you need is 200, but remember, the more you post, the=20
more money you make! This is perfectly legal! If you have=20
any doubts, refer to Title 18 Sec. 1302 & 1341 of the=20
Postal lottery laws. Keep a copy of these steps for=20
yourself and, whenever you need money, you can use it=20
again, and again. PLEASE REMEMBER that this program=20
remains successful because of the honesty and integrity of=20
the participants and by their carefully adhering to the=20
directions. Look at it this way. If you are of integrity,=20
the program will continue and the money that so many=20
others have received will come your way. NOTE: You may=20
want to retain every name and address sent to you, either=20
on a computer or hard copy and keep the notes people send=20
you. This VERIFIES that you are truly providing a service.=20
(Also, it might be a good idea to wrap the $1 in dark=20
paper to reduce the risk of mail theft.) So, as each post=20
is downloaded and the directions carefully followed, six=20
members will be reimbursed for their participation as a=20
List Developer with one dollar each. Your name will move=20
up the list geometrically so that when your name reaches=20
the #1 position you will be receiving thousands of dollars=20
in CASH!!! What an opportunity for only$6.00 ($1.00 for=20
each of the first six people listed above) Send it now,=20
add your own name to the list and you're in business! ---
DIRECTIONS ----- FOR HOW TO POST TO NEWSGROUPS------------=20
Step 1) You do not need to re-type this entire letter to=20
do your own posting. Simply put your cursor at the=20
beginning of this letter and drag your cursor to the=20
bottom of this document, and select 'copy' from the edit=20
menu. This will copy the entire letter into the computer's=20
memory. Step 2) Open a blank 'notepad' file and place your=20
cursor at the top of the blank page. From the 'edit' menu=20
select 'paste'. This will paste a copy of the letter into=20
notepad so that you can add your name to the list. Step 3)=20
Save your new notepad file as a .txt file. If you want to=20
do your postings in different settings, you'll always have=20
this file to go back to. Step 4) Use Netscape or Internet=20
explorer and try searching for various newsgroups (on-line=20
forums, message boards, chat sites, discussions.) Step 5)=20
Visit these message boards and post this article as a new=20
message by highlighting the text of this letter and=20
selecting paste from the edit menu. Fill in the Subject,=20
this will be the header that everyone sees as they scroll=20
through the list of postings in a particular group, click=20
the post message button. You're done with your first one!=20
Congratulations...THAT'S IT! All you have to do is jump to=20
different newsgroups and post away, after you get the hang=20
of it, it will take about 30 seconds for each newsgroup!=20
**REMEMBER, THE MORE NEWSGROUPS YOU POST IN, THE MORE=20
MONEY YOU WILL MAKE!! BUT YOU HAVE TO POST A MINIMUM OF=20
200** That's it! You will begin receiving money from=20
around the world within days! You may eventually want to=20
rent a P.O.Box due to the large amount of mail you will=20
receive. If you wish to stay anonymous, you can invent a=20
name to use, as long as the postman will deliver it.=20
**JUST MAKE SURE ALL THE ADDRESSES ARE CORRECT.** Now the=20
WHY part: Out of 200 postings, say I receive only 5=20
replies (a very low example). So then I made $5.00 with my=20
name at #6 on the letter. Now, each of the 5 persons who=20
just sent me $1.00 make the MINIMUM 200 postings, each=20
with my name at #5 and only 5 persons respond to each of=20
the original 5, that is another $25.00 for me, now those=20
25 each make 200 MINIMUM posts with my name at #4 and only=20
5 replies each, I will bring in an additional $125.00!=20
Now, those 125 persons turn around and post the MINIMUM=20
200 with my name at #3 and only receive 5 replies each, I=20
will make an additional $626.00! OK, now here is the fun=20
part, each of those 625 persons post a MINIMUM 200 letters=20
with my name at #2 and they each only receive 5 replies,=20
that just made me $3,125.00!!! Those 3,125 persons will=20
all deliver this message to 200 newsgroups with my name at=20
#1 and if still 5 persons per 200 newsgroups react I will=20
receive $15,625,00! With an original investment of only=20
$6.00! AMAZING! When your name is no longer on the list,=20
you just take the latest posting in the newsgroups, and=20
send out another $6.00 to names on the list, putting your=20
name at number 6 again. And start posting again. The thing=20
to remember is: do you realize that thousands of people=20
all over the world are joining the internet and reading=20
these articles everyday?, JUST LIKE YOU are now!! So, can=20
you afford $6.00 and see if it really works?? I think=20
so... People have said, "e;what if the plan is played out=20
and no one sends you the money? So what! What are the=20
chances of that happening when there are tons of new=20
honest users and new honest people who are joining the=20
internet and newsgroups everyday and are willing to give=20
it a try? Estimates are at 20,000 to 50,000 new users,=20
every day, with thousands of those joining the actual=20
internet. Remember: play FAIRLY and HONESTLY and this will=20
really work.=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
BE AN=20
INTERNET MILLIONAIRE LIKE OTHERS WITHIN A YEAR!!! Before=20
you say ''Bull'', please read the following. This is the=20
letter you have been hearing about on the news lately. Due=20
to the popularity of this letter on the Internet, a=20
national weekly news program recently devoted an entire=20
show to the investigation of this program described below,=20
to see if it really can make people money. The show also=20
investigated whether or not the program was legal. Their=20
findings proved once and for all that there=20
are ''absolutely NO Laws prohibiting the participation in=20
the program and if people can "follow the simple=20
instruction" they are bound to make some mega bucks with=20
only $6 out of pocket cost''. DUE TO THE RECENT INCREASE=20
OF POPULARITY & RESPECT THIS PROGRAM HAS ATTAINED, IT IS=20
CURRENTLY WORKING BETTER THAN EVER. This is what one had=20
to say: '' Thanks to this profitable opportunity". I was=20
approached many times before but each time I passed on it.=20
I am so glad I finally joined just to see what one could=20
expect in return for the minimal effort and money=20
required. To my astonishment, I received a total=20
$610,470.00 in 21 weeks, with money still coming in''. Pam=20
Hedland, Fort Lee, New Jersey.=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
Another=20
said: "this program has been around for a long time but I=20
never believed in it. But one day when I received this=20
again in the mail I decided to gamble my $6 on it. I=20
followed the simple instructions and walaa ..... 3 weeks=20
later the money started to come in. First month I only=20
made $240.00 but the next 2 months after that I made a=20
total of $290,000.00. So far, in the past 8 months by re-
entering the program, I have made over $710,000.00 and I=20
am playing it again. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=20
TESTIMONIALS=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D '' My name is Mitchell.=20
My wife, Jody and I live in Chicago. I am an accountant=20
with a major U.S. Corporation and I make pretty good=20
money. When I received this program I grumbled to Jody=20
about receiving ''junk mail''. I made fun of the whole=20
thing, spouting my knowledge of the population and=20
percentages involved. I ''knew'' it wouldn't work. Jody=20
totally ignored my supposed intelligence and few days=20
later she jumped in with both feet. I made merciless fun=20
of her, and was ready to lay the old ''I told you so'' on=20
her when the thing didn't work. Well, the laugh was on me!=20
Within 3 weeks she had received 50 responses. Within the=20
next 45 days she had received total $ 147,200.00 .........=20
all cash! I was shocked. I have joined Jodyin=20
her ''hobby ''. Mitchell Wolf M.D., Chicago, Illinois=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D '' =
Not=20
being the gambling type, it took me several weeks to make=20
up my mind to participate in this plan. But conservative=20
as I am, I decided that the initial investment was so=20
little that there was just no way that I wouldn't get=20
enough orders to at least get my money back''. '' I was=20
surprised when I found my medium size post office box=20
crammed with orders. I made $319,210.00 in the first 12=20
weeks. The nice thing about this deal is that it does not=20
matter where people live. There simply isn't a better=20
investment with a faster return and so big''. Dan=20
Sondstrom, Alberta, Canada=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =
'' I had=20
received this program before. I deleted it, but later I=20
wondered if I should have given it a try. Of course, I had=20
no idea who to contact to get another copy, so I had to=20
wait until I was e-mailed again by someone else.........11=20
months passed then it luckily came again...... I did not=20
delete this one! I made more than $490,000 on my first try=20
and all the money came within 22 weeks''. Susan De Suza,=20
New York, N.Y.=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =
'' It=20
really is a great opportunity to make relatively easy=20
money with little cost to you. I followed the simple=20
instructions carefully and within 10 days the money=20
started to come in. My first month I made $ 20, 560.00 and=20
by the end of third month my total cash count was $=20
362,840.00. Life is beautiful, Thanx to internet''. Fred=20
Dellaca, Westport, New Zealand=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D = Tag: XML serialization Tag: 66170
CounterSample class
Can some body tell me the list of performance counter
types that require CounterSample class Calculate method
for measuring performance values? Timer100NsInverse is
one of them. Are there any other counter types?
Thanks, Tag: XML serialization Tag: 66164
Regular expressions inside C#
I am trying to find how to evaluate a regular expression
(with 1's and 0') in a string form inside a source file
(*.cs in a .NET FW1.1 environment)
For eg:- result = " 1 && 0 || ( ! 1 || 1) " , where
result is a Boolean variable;
Appreciate any thoughts or help solving this. Tag: XML serialization Tag: 66162
PerformanceCounter
I'm trying to read values of some counters. Unfortunately
not all of them work properly, for example "Average Disk
Queue" always shows 0, but PerformanceMonitor Console
shows others values.
How can I solve this problem??
Thanks,
Sergey Tag: XML serialization Tag: 66157
Run .BAT file before debuging.
Hi,
How I can run script/.BAT file before the debuging is
taking place ?
Before the debuging I want copy files and delete/create
directories, Can I set something like that By
configuration ?
By configuration means that in Debug Mode the devenv will
run my .BAT file but in Release Mode it won't run it.
Thanks,
boba. Tag: XML serialization Tag: 66152
web garden parameter affects on aspnet_wp process
We've recently set the web garden value to True, on a two processor system, and have noticed that since that change we now have two aspnet_wp processes running. Is that because we are now taking advantage of both processors? If we add this parameter setting to a 4 processor system will we see 4 aspnet_wp processes? I'm asking because during some of your deployments, we need to recycle the aspnet_wp process and will need to update the documentation to reflect why there are multiple of these processes now. Tag: XML serialization Tag: 66151
Can I use a .NET app without the framework?
Could I export a .NET executable file to an executable that doesn't need the
.NET framework to function?
Thanks
Peter Tag: XML serialization Tag: 66150
Trust an assembly?
Is there a cmdline version of the "Trust an Assembly" wizard in w2ks ".Net
Wizards" tool? Put another way, can I run a command that will trust an
assembly (by name or by key pair) without having to run this wizard? TIA
--
William Stacey, MVP Tag: XML serialization Tag: 66148
Embedded Resource Id?
I have a class project with an icon included and also a .resources file
which also includes an icon. I need the resource Id to allow the host to
extract the icon from the assembly, but cannot work out how to reference
the .resources icon.
For example the ico file in my project has a filename of MyIcon.ico, and
by using ildasm I cane get the resource Id quite easily. The manifest
includes -
.mresource public SQLDTS.MyIcon.ico
{
}
..where SQLDTS is my project namespace.
So I can use the resource id of "SQLDTS.MyIcon.ico" and it works a
treat.
However the .resources file also has an icon with the "name" of "MyIcon"
as set using ResEditor.exe, but looking in the manifest I can only see
this-
.mresource public SQLDTS.MyRes.resources
{
}
How do I reference the individual icon? I have tried various
incarnations of SQLDTS.MyRes.resources.MyIcon and such like without
luck.
How do I get resource Id?
I want the old style resource Id, they all used to be 101!
Cheers
--
Darren Green
DTS - http://www.sqldts.com Tag: XML serialization Tag: 66144
Framework Configuration and MMC
I am unable to open the mmc for .NET Framework 1.0. The
mmc for 1.1 opens fine. I have tried reinstalling the
1.0 Framework. When I try to open the console, the mouse
flashes to a hour glass and then back to normal and the
console never opens. Any help would be much appreciated. Tag: XML serialization Tag: 66143
Transparency problem drawing bitmap
I am creating a custom user control and I am having problems with setting
the transparent color of the bitmap. Here is my code...
protected override void OnPaint( PaintEventArgs e )
{
System.Drawing.Imaging.ImageAttributes imageAttributes = new
System.Drawing.Imaging.ImageAttributes();
imageAttributes.SetColorKey(Color.FromArgb(231, 231, 231),
Color.FromArgb(231, 231, 231), ColorAdjustType.Bitmap);
Point ulCorner1 = new Point(0, 0);
Point urCorner1 = new Point(GetBitmapSize().Width, 0);
Point llCorner1 = new Point(0, GetBitmapSize().Height);
Point[] destPara1 = {ulCorner1, urCorner1, llCorner1};
Rectangle srcRect = new Rectangle( 0, 0, GetBitmapSize().Width,
GetBitmapSize().Height);
e.Graphics.SmoothingMode = SmoothingMode.HighQuality;
e.Graphics.InterpolationMode = InterpolationMode.HighQualityBicubic;
e.Graphics.PixelOffsetMode = PixelOffsetMode.HighQuality;
e.Graphics.DrawImage(m_SelectedImage, destPara1, srcRect,
GraphicsUnit.Pixel, imageAttributes);
}
I want the specified RGB color (231, 231, 231) to be transparent, but it
isn't. What am I doing wrong? I thought imageAttributes.SetColorKey() was
supposed to do this.
-dh Tag: XML serialization Tag: 66142
Shortcut Icon
Hello.
I created a .Net deployment package so far so good.
However, I would like to be able to remove the shortcut
icon that appears on the desktop icon I included in the
package. I learned how to remove the shortcut icon for
all icons in windows by editing the registry but I only
want to remove the shortcut icon for the desktop icon.
Any ideas?
Thanks,
Erik Tag: XML serialization Tag: 66141
NET Framework
How can I put this program on my old computer with win
98. I have a new computer with Internet excess. My old
computer has no internet axcess. I installed a new drive
to update my old computer and need this program to
correct a speaker problem. Thanking you in advance. Tag: XML serialization Tag: 66139
Credentials for LoadFrom
Question :
Using LoadFrom( "http://SomeWhere/SomeDll.dll" ).
How do you specify your credentials to the web server ? In my scenario its
in the intranet using windows authentication, no anonymous users ( NTLM or
Kerberos ).
I would have thought LoadFrom( "http://SomeWhere/SomeDll.dll",
System.Net.CredentialCache.DefaultCredentials ) would be possible but there
is no such thing.
Thanks.
Chris. Tag: XML serialization Tag: 66137
Date entering or date picking
I am not a developer but I need to understand if there is
a difference between controls for Date manual entry and
Date Picker.
example:
The date fields are heavily used fields and of these pages
being are considered for smart client, I am sure that the
end user would not react positively to using right and
left arrow keys to tab through sections of date fields.
If anything, the date format should read mm/dd/yyyy and
the user should be auto-tabbed through each section. For
example, when entering the date 01/01/04 the user should
be able to enter the '01' then automatically moved to the
day section to enter '01' then automatically moved to the
year section to enter either '04' or '2004' which ever
they choose.. The use of l/r arrows to move through
sections of a date field is archaic, it's 2004 surely we
can take the ease of f the end user rather than add more
key strokes. Tag: XML serialization Tag: 66132
subclassing System.Uri
It would be nice to be able to subclass the System.Uri class easier,
since there's no empty constructor, its not easy to define a more typed Uri
that possibly takes specific arguments and formats them to a "company
standard" or standards compliant URI
(quick example)
I eventually want to get to this:
Dim s as new SearcherUri(State:="FL", CountyName:="Sarasota",
BookType:=BookType.OfficialRecords, BookNumber:=33333, PageNumber:=444)
but currently I have to settle with, for example, the State passed through a
CountyFipsCode which is basically "FL##" (for florida) or "TN##"
so the current SearcherUri.New looks like this
MyBase.New(string.Format("searcher://servername/{0}/{1}/{2}?{3},{4}",countyF
ipsCode.Substring(0,2),countyName,iif(bookType=BookType.OfficialRecords,"OR"
),bookNumber,pageNumber)
m_state = countyFipsCode.Substring(0,2)
obviously the constructor call is VERY messy, and look at the IIF for
shortening "OfficialRecords" to "OR", and look at the inefficiency of having
to Substring(0,2) twice to extract the state...
see what i'm getting at? I propose making Uri class a little more
"subclass" friendly, whereas there's more protected variables and such for
setting the various bits of the Uri
/me wishes for a CLR wish list :-)
--
Eric Newton
C#/ASP Application Developer
http://ensoft-software.com/
eric@cc.ensoft-software.com [remove the first "CC."] Tag: XML serialization Tag: 66131
good place to submit wish list items?
is there a good place to submit wish list items?
i've heard of mswish@microsoft.com but thats probably (and ironically) the
wrong place ;-)
--
Eric Newton
C#/ASP Application Developer
http://ensoft-software.com/
eric@cc.ensoft-software.com [remove the first "CC."] Tag: XML serialization Tag: 66130
installation & compatibility
If I develop a winforms application and create an exe program what
installation is required and what windows platforms can run it? I need to
find a development environment that will allow me to run the end program
directly from a CD or floppy without a lot of install woes. Tag: XML serialization Tag: 66129
Detecting GAC assembly in use during uninstallation
Fellow Frameworkers,
Our developer tools are a set of assemblies installed in
the GAC. I use InstallShield 8.0 to create an MSI-based
installer that installs the assemblies just fine, thanks.
My problem is that on uninstallation, an assembly
currently in use by a running application (IIS, for
example) is not detected. Instead, the uninstallation
seems to complete successfully, but the assembly in use is
left in the GAC.
I want to prevent uninstallation, or at least alert the
user if any of the assemblies is in use. How can I detect
a GAC assembly in use?
BTW, I tried searching (with another search engine) this
group for "uninstall assembly GAC" and the phrase "in use"
but the one hit was irrelevant. Also, I originally posted
in platformsdk.msi, and was directed here.
Drew Liscomb
Installer Engineer
MapInfo Corporation Tag: XML serialization Tag: 66123
How to run a VB script from a .NET application
Hi.
I'm translating an old C++ project to .NET and I have a big problem.
The project has the capability of running scripts - with support for
VBScript and JScript and this feature is used extensively.
I would like my project to be backward compatible ( at least in phase 1 )
and thus it should be able to run the same scripts.
Browsing through the .NET framework I can't find any VBScript execution
capabilities. Thus I could use the same solution as in my C++
implementation - to use the MS Script Control.
!BUT!
The script control is appartment threaded. In my old application I had no
problem limiting myself to being appartment threaded. But when converting to
.NET - the project is going to run in a multithreaded appartment.
Because I am going to implement COM objects in my project that the scripts
can access - I have a situation where the script is calling ( quite a lot )
my classes across an appartment boundary - and that is a major performance
killer.
Anybody have any other suggestions as to how I can implement VBScript
functionality.
Regards,
Peter Strøiman Tag: XML serialization Tag: 66120
float to double conversion question
so my app uses float for money, and we are now consuming a webservice
that uses double for money. here is the problem i run into while
converting
float f1 = 23.32
double d1 = (double)f1;
d1=23.3199996948242
i understand that is because of the extra floating spaces (although it
still isnt making perfect sense to me, why wouldnt the extra floating
spaces just add 0's which would keep the number the same)
i suppose i could convert it to string and than parse double .. but
what is the best way to convert it keeping in mind currency with just
2 decimal places with best precision ? Tag: XML serialization Tag: 66114
EventLogger and XP question!
Hi, all!
When my application writes to event log the XP (it occurred only on XP
machine!) adds to my message not expected additional info:
For more information, see Help and Support Center at
<http://go.microsoft.com/fwlink/events.asp>
How could i prevent it?
Thanks in advance,
Evgeny Tag: XML serialization Tag: 66113
RegEx for UK car registration numbers
Does anyone have a regex for UK car registration numbers? I've done
one for UK VINs (available here
http://www.regexlib.com/REDetails.aspx?regexp_id=516) but UK car
registrations are slightly more complex and the project is already
slipping! I've looked on www.regexlib.com btw.
TIA
Edward Tag: XML serialization Tag: 66112
Problem setting HPageBreak
Hello all,
I'm exporting an Excel spreadsheet from a C# app. The problem I'm
having is that when I set a HPageBreak in an Excel worksheet, it seems
to have no effect. When I display the worksheet on the screen and
switch to Page Break Preview mode, I still can't see my page break.
The only breaks I see are the automatic ones where there was a natural
page end. However, I know it was set correctly because if I navigate
to the line where the break should be and then select Insert from the
menu, I see a Remove Page Break option. If a page break is not set at
the current line and I select Insert from the menu, it just shows a
Page Break option. So it does acknowledge that a page break was set.
Below is an example of how I'm trying to set the break.
Worksheet ws = .......;
ws.HPageBreaks.Add(ws.get_Range("A10", "F10"));
In page break preview I don't see a break at line 10, but I can tell
that a break was inserted there. Does anyone know why this is
happening and how I can get the page break to be visible?
Thanks in advance,
Shannon Tag: XML serialization Tag: 66109
enter key to call <asp:imagebutton> event
I'd like to trap the keypress event for the enter key and trigger a server
side imagebutton click event.
However,
Page.RegisterHiddenField( "__EVENTTARGET", btnSubmitTracking.ClientID );
I've also tried,
txtTrackingNumber.Attributes.Add("onKeyPress", String.Format( "if
(event.keyCode == 13) __doPostBack('{0}', 'parms')",
btnSubmitTracking.ClientID));
This doesn't work with imagebuttons. It works fine with linkbuttons and
buttons, but I need to use an image for a button. Or is there someother
control or way I can accomplish this.
-Randy Tag: XML serialization Tag: 66108
"Object reference not set to an instance of an object"
Hi!
When I am trying to drag user controls or any controls from the Toolbox to a
form in some of my projects I get a dialog messages: (Microsoft Deployment
Environment)
"Object reference not set to an instance of an object"
Notes that:
1. It's a designer problem, not a reference problem. When I am adding this
user control directly to the code it works just fine, but I can't make it
work using the designer and see it in design time.
2. It happens only in some of the projects in the solution, not all of them.
3. In my company we are working with 'Microsoft visual source safe' and
other members of the team don't suffer
from the this problem.
4. Getting the latest version from 'source safe' didn't help.
5. Reinstalling VisualStudio .Net from scratch didn't help
6. When I am logging in as a different user the problem remains.
How can I restore the functionality of the designer to work with
(is it an environment problem)?
many thanks,
Kam Tag: XML serialization Tag: 66095
Remoting exception when upgrading from .Net 1.0 to .Net 1.1
Hi,
we are trying to upgrade our application from .net 1.0
to .net 1.1 framework.
We get the following exception:
System.Security.SecurityException: Type
System.DelegateSerializationHolder and the types derived
from it (such as System.DelegateSerializationHolder) are
not permitted to be deserialized at this security level
We have read a number of posts (including
http://www.ingorammer.com/remotingFAQ/changes2003.html)
and tried to set the typeFilterLevel to "Full" as
suggested.
It did not change the problem, we still get the same
exception.
We have looked at some Remoting samples. The difference
to our application is that we start the remoting with
this function call:
RemotingConfiguration.Configure(remoteConfigFile);
We have a sample project that exposes the problem - can
we upload that to you?
br
Mads Tag: XML serialization Tag: 66092
Logging
I am developing an application in VB.NET and I require to store all the
information of the Object created during Application life cycle. That
is if there is an error occurance in the Application then the state of
the Application is saved i.e all the values of the Objects which are
present in the application are stored in a file and then the
Application exits. so what do I need to do is find out how many Object
are present in the application and then there values. So varaible may
be private or protected then how to I have access to these variable, I
was told to use ReflectionPermission class but that doesn't seems to be
working.
I am required to perform error logging sort of a thing save all the
data to a file before exiting so that error can be located.
Awating replies from ur side
Thanks for ur help and time Tag: XML serialization Tag: 66090
Installation Error!!
When installing .NET Enterprise Architect 2003 I get the error 'Internal Error 25003'
Thanx for your input! Tag: XML serialization Tag: 66085
Writing XML file
Hi all,
I have a small problem in writing XML file from VB.net. I am trying to write
the XML file using dataset.
I am able to write the XML in sequential way(one node after other). I can
write in the hierarchial(tree) structure also but only by using datagrid.
But I would like to write the XML file without using datagrid but just the
grid.
I am sending the sample. Could u please tell me how I can write
hierarchially using dataset but without using the datagrid.
Best regards,
Kelly Tag: XML serialization Tag: 66083
Runtime Compilation / Scripting
I need to be able to customise the business logic in my application by
writing code that is compiled and executed at runtime. I want to be able to
write this code using my own simple interface which compiles code entered
into a multi-line text box and also have the option of writing/editing the
code using VS.Net.
The way I see it working is that my middle tier business object loads an
assembly containing the customised code and executes the required method
passing it any required parameters.
Is VSA the way to go? I know Microsoft have pulled the VSA IDE, but I'm
happy to write my own simple IDE and use VS.Net for more complex scenarios.
Can anybody point me in the right direction and outline the principles
involved in introducing customised code to business object.
Thanks,
Peter Tag: XML serialization Tag: 66082
creating code reports
Hi,
I'm trying to document my code written in VS.NET 2003 using C#.
I'm using the Xml documentation following the recommendations found
in MSDN's "Recommended Tags for Documentation Comments".
When generating the comment web pages using the option
"Build comment web pages..." in the Tools menu the result is far from being
satisfactory. Some of the documentation is missing or, for example:
<exception>, <see> and <list> tags are not interpreted.
In addition, the private members (fields, methods, etc.) appears in the
comment web pages and there is no tag to hide them.
How cam I generate a more comprehensive documentation, like JavaDoc, using
VS.NET?
Is there an alternative freeware tool to document my code?
Thanks in advance, Ohad
--
Ohad Young
Medical Informatics Research Center
Ben Gurion University
Information System Eng
Office Phone: 972-8-6477160
Cellular Phone: 972-54-518301
E-Mail: ohadyn@bgumail.bgu.ac.il Tag: XML serialization Tag: 66074
can it possible to use windows 98 for development in C#?
Can we install .netFramework and develop c# application
using windows 98? I yes then how?
Can we install .Net command prompt in windows 98? Tag: XML serialization Tag: 66073
ReflectionPermission
I just wanted to know if someone can tell me how to use the
ReflectionPermission Class. What I am trying to do is I am trying to
list out all the Private as well as protected members of the class
using Reflection but by default I get only Public member, I think I
need to use proper Reflection permission to get access to Private as
well as Protected member but how to use the ReflectionPermission Class
Thanks for the help in advance
MMJ Tag: XML serialization Tag: 66072
.net framework and ANSI C
Hi,
Is it possible to write a util in ANSI C to detect .net framework version?
If so can anyone point me to a tutorial or something that could be of use.
Thanks in advance,
Eddie Tag: XML serialization Tag: 66071
How to secure my DLLs
Hi All
I am developing a web application in .Net technology. Usually, I create a
DLL for all of my modules to protect the logics. And it is possible to
decompile the DLL.
How do I protect DLL created using VISUAL STUDIO.NET 2002. I want to secure
component design. Give me some professional techniques to secure the codes.
Any 3rd party software must not be able to decompile it.
It is an essential part of my programming stuff. Please give solution.
Thanks and Regards
Kelly Tag: XML serialization Tag: 66070
Installation problem
When installing .net framework 1.1 from the windows update
I get a failure message. When installing via the
independent exe file I get the following error message:
error 1304:error writing to microsoft.vsa.dll. Verify
you have access to that directory
Any suggestions? Tag: XML serialization Tag: 66069
HTTP Error 404
I created a Web setup project using Visula Studio.Net
2002, .net framework 1.0. I deployed the application on a
Windows 2000 machine with IIS 5.0, .netframework 1.0. The
application setup did not give any errors. However, on
clicking one of the links i get the following
error: "Remote Server returns : (404) Not found". I have
checked for borken links/wrong URL already - there are
none. Tag: XML serialization Tag: 66063
3rd attempt: UDP Socket Bug
Using udp sockets inside a class called by ASP.NET
By impersonating you can use a TCP socket from a external class and call it
from a ASP.NET page. However, changing the socket type to UDP and binding
it to a port throws an error "An attempt was made to access a socket in a
way forbidden by its access permissions".
I tried all the methods I knew of to get this to work such as...
ASPNET added the account to the local administrators
ASPNET act as part of the os inside local policy
<identity impersonate="true" userName="administrator" password="*****" />
inside the web.config file.
System.Security.Principal.WindowsIdentity.GetCurrent.Impersonate inside code
I have seen (http://support.microsoft.com/default.aspx?scid=kb;EN-US;195445)
Environment:
W2K Advanced Server SP4 IIS 5
VS.NET 1.0
This leaves me at a loss on how to get my class to run from a ASP.NET page.
I have searched the web and msdn without success. If anyone knows something
I dont then please speak up.
Bryan
See http://myplaceinspace.com/testclass.txt file for example
class. Calling this from ASP.NET gives the same result on win2ksp4 IIS5.
"An attempt was made to access a socket in a way forbidden by its access
permissions" Tag: XML serialization Tag: 66060
"JIT" complete application?
Hello,
I'm currently wondering if it is possible to JIT a complete application at
start-up. The problem is that I have a very time-critical application, which
should be able to shoot out of the halter, and this from the first shot on.
I know that there is the possibility to use NGen. However, in several posts
I read about the trade-offs like less optimized code. Since start-up time is
not critical, my idea was to look for a way to tell the JIT compiler to
compile EVERYTHING at once in contrast to method-by-method JITting during
runtime.
Anybody any ideas?
Thanks, Christoph Tag: XML serialization Tag: 66058
IsDate or IsTime
How do you create a IsDate function using Regex in C#?
The function should check to see if the string is of a
date format (ie., 1/1/2000)
While I'm at it, how do you also create a IsTime function
using Regex? It checks to see if it's in 00:00 format,
military time (eg., from 00:00 to 23:59)
Thanks. Tag: XML serialization Tag: 66057
Checking for Valid Datatype
This is a pretty dumb question but I can't seem to find
answer.
How do you check to see if a datatype of a variable is
correct? Eg in Visual Basic:
Dim datevar
datevar= "1a/2/2004"
If IsDate(datevar) <> true then
msgbox "The value in variable 'datevar' is not a date."
End if
Thanks. Tag: XML serialization Tag: 66055
framework 1.1 instal failure
I have a site using nt4.0 sp6a with framework 1.0
installed and running .net applications OK.
Have just tried to update to framework 1.1 and receive the
following error right at the end of the installation.
Regsvc.exe
Application has generated an exception that could not be
handled.
Process Id=0x15d(349) Thread Id=0x77(119)
and the installation is rolled back.
Any help would be appreciated. Tag: XML serialization Tag: 66050
How would I?
Can someone please tell me how I would go about
retreiving a list of authorized DHCP servers from active
directory.
Thanks
Jason Tag: XML serialization Tag: 66048
system.ArithmeticException
My OS was hit with a virus not too long ago and we had to use the recovery disk to start all over. I installed VS .NET 2003 -the same version that was on my system before and worked fine - and now I get the same error every time I try to run any created application, including the samples that come with VS .NET. It compiles and builds just fine, with no errors or warnings, but gets the System.ArithmeticException in System.Drawing.dll error when I try to run the application. I have done the windows upgrade and even tried uninstalling, then reinstalling VS .NET, but no luck. The debugger always pin-points the problem to a "forms.controls()" statement in the automatically generated initialization code, but I don't know what to do about it. It even does it when I try to run a blank form with no additional code.
I recently tried it with a clean boot that I read on the Microsoft Support page, but couldn't determine if it still had the problem, because I got a different error, saying that the debugger could not be initialized. Tag: XML serialization Tag: 66045