.NET Printing
There are many good examples of printing using the
PrintDocument class. However, I can't find any mention of
printer offsets. For example, printing something at
100,100 will display in the print preview window one inch
(display inches) from the upper left corner. If the same
thing is sent to the printer, it is printed more than one
inch from the corner because most printers have a
printable area that doesn't go right to the edge. The
problem is that printers all have slightly different
printable areas. In VB 98, it was easy because you could
set the scale mode of the printer to inches and get a
scale width and height that was slightly smaller than the
width of the paper allowing you to adjust the margins.
Anyone know how to retrieve the printable area in .NET?
Thanks in advance Tag: where to download Internet Information Services 5.0 or higher? Tag: 63091
which class for InputBox
Hi all,
I used InputBox for input in VB6. Which class I can use in .Net? Thanks!
Best Regards Tag: where to download Internet Information Services 5.0 or higher? Tag: 63087
VS.NET 2003 debugging became very slow after installing VS6 side by side
I installed VS.NET 2003 and was very happy with it.
Yesterday I installed VS6 (with SP5) because I need to debug a VB6 app and
after I was done with it I noticed the debugging in VS.NET 2003 became very
slow.
Stepping through a code normally take a split second before, now it take
almost a minute per line.
I am pretty sure the installing of the VS6 has something to do with it,
unfortunately I need both VB6 and the new VS.NET both on the same machine.
Does anyone know if there is a easy way to fix it?
Thank you very much for your help,
Andy Tag: where to download Internet Information Services 5.0 or higher? Tag: 63084
PLEASE READ CAREFULLY
MAKE MONEY FAST AND EASY HURRY!!!! Make Money Fast A little while back, I was browsing these newsgroups, just like you are now, and came across an article similar to this that said you could make thousands of dollars within weeks with only an initial investment of $6.00! So I thought," Yeah, right, this must be a scam", but like most
of us, but I was curious, so I kept reading. Anyway, it said that you send $1.00 to each of the 6 names and address stated in the article. You then place your own name and address in the bottom of the list at #6, and post the article in at least 200 newsgroups. (There are thousands) No catch, that was it. The main difference between this system and others is that you have a mailing list of 6 instead of 5... This means that your average gain will be app. 15 times higher!!! So after thinking it over, and talking to a few people first, I thought about trying it. I figured what have I got to lose except 6 stamps and $6.00, right? Like most of us I was a little skeptical and a little worried about the legal aspects of 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! Then I invested the measly $6.00.............plus postage Well GUESS WHAT!!... Within 7 days, I started getting money in the mail! I was shocked! I still figured it would end soon, and didn't give it another thought. But the money just kept coming in. In my first week, I made about $20.00 to $30.00 dollars. By the end of the second week I had made a total of over $1,000.00!!!!!! In the third week I had over $10,000.00 and it's still growing. This is now my fourth week and I have made a total of just over $42,000.00 and it's still coming in rapidly....... It's certainly worth $6.00, and 6 stamps, I spent more than that on the lottery!! Let me tell you how this works and most importantly, why it works.... also, make sure you print a copy of this article NOW, so you can get the information off of it as you need it. The process is very simple and consists of 3 easy steps
STEP 1
Get 6 separate pieces of paper and write the following on each piece of paper "PLEASE PUT ME ON YOUR MAILING LIST." Now get 6 US$1.00 bills (or equivalent in your local currency) and place ONE inside EACH of the 6 pieces of paper so the bill will not be seen through the envelope to prevent thievery. Next, place one paper in each of the 6 envelopes and seal them. You should now have 6 sealed envelopes, each with a piece of paper stating the above phrase, your name and address, and a $1.00 bill. What you are doing is creating a service by this. THIS IS ABSOLUTELY LEGAL! Mail the 6 envelopes to the following
Addresses:
#1) J Alex Biley 69 Manningham St. Parkville, Vic 3052; Australi
#2) Suranga Sampath 237/a Bell St. Coburg, Vic 3058; Australi
#3) Greg Davidson 1370 South Madison Ave. Clearwater, Fl 3375
#4) J. Schlundt 190 Brookline St. Newton Ma 0245
#5) D. Hale Jr. 407 Edgewood Ave. Pittsburgh, Pa 1521
#6) Nimai Jaekley; 3311 Landon Dr. West Unit A; Bullhead City, A
8642
STEP 2
Now take the #1 name off the list that you see above, move the other names up (6 becomes 5, 5 becomes 4, etc...) and add YOUR Name as number 6 on the list. (Use your 'delete" key to remove name #1 and move all other names up. Then change numbers and add your name as #6)
STEP 3
Change anything you need to, but try to keep this article as close to original as possible. Now, post your amended article to at least 200 newsgroups. (I think there is close to 24,000 groups) All you need is 200, but remember, the more you post, the more money you make! Don't know HOW to post in the newsgroups? Well do exactly the following: THAT'S IT! All you have to do is jump to different newsgroups and post away, after you get the hang of it, it will take about 30 seconds for each newsgroup! **REMEMBER, THE MORE NEWSGROUPS YOU POST IN, THE MORE MONEY YOU WILL MAKE!! BUT YOU HAVE TO POST A MINIMUM OF 200** That's it! You will begin receiving money from around the world within days! You may eventually want to rent a P.O. Box due to the large amount of mail you receive. If you wish to stay anonymous, you can invent a name to use, as long as the postman will deliver it. **JUST MAKE SURE ALL THE ADDRESSES ARE CORRECT** Now the WHY part: Out of 200 postings, say I receive only 5 replies (a very low example). So then I made $5.00 with my name at #6 on the letter. Now, each of the 5 persons who just sent me $1.00 make the MINIMUM 200 postings, each with my name at #5 and only 5 persons respond to each of the original 5,that is another $25.00 for me, now those 25 each make 200 MINIMUM posts with my name at #4 and only 5 replies each, I will bring in an additional $125.00! Now, those 125 persons turn around and post the MINIMUM 200 with my name at #3 and only receive 5 replies each, I will make an additional $626.00! OK, now here is the fun part, each of those 625 persons post a MINIMUM 200 letters with my name at #2 and they each only receive 5 replies, that just made me $3,125.00!!! Those 3,125 persons will all deliver this message to 200 newsgroups with my name at #1 and if still 5 persons per 200 newsgroups react I will receive $15,625.00! With an original investment of only $6.00! AMAZING! And as I said 5 responses is actually VERY LOW! Average is probable 20 to 30! So lets put those figures at just 15 responses per person.
Here is what you will make:
at #6 $15.00 at #5 $225.00 at #4 $3,375.00 at #3 $50,625.00 at #2 $759,375.00 at #1 $11,390,625.00
When your name is no longer on the list, you just take the latest posting in the newsgroups, and send out another $6.00 to names on the list, putting your name at number 6 again. And start posting again. The thing to remember is, do you realize that thousands of people all over the world are joining the internet and reading these articles everyday, JUST LIKE YOU are now!! So can you afford $6.00 and see if it really works?? I think so... People have said, "what if the plan is played out and no one sends you the money? So what! What are the chances of that happening when there are tons of new honest users and new honest people who are joining the internet and newsgroups everyday and are willing to give it a try? Estimates are at 20,000 to 50,000 new users, everyday, with thousands of those joining the actual internet. Remember, play FAIRLY and HONESTLY and this will work. You just have to be honest. Make sure you print this article out RIGHT NOW, also. Try to keep a list of everyone that sends you money and always keep an eye on the newsgroups to make sure everyone is playing fairly. Remember, HONESTY IS THE BEST POLICY. You don't need to cheat the basic idea to make the money!! GOOD LUCK to all and please play fairly and reap the huge rewards from this, which is tons of extra CASH. TRUST ME IT DOES WORK! I am sure this will work out, try it and see. Tag: where to download Internet Information Services 5.0 or higher? Tag: 63082
.Net Framework Install Errors 2908 & 1935
Has anybody had any experience with the .Net Framework
install errors.
The OE is W2K Professional and installing the .Net
Framework Version 1.1 Redistributable package. The install
hangs when executing aspnet_regiis.exe and during rollback
install errors 2908 (Internal Error) and then 1935 (error
occured during the installation of an assembly component)
occur.
The install has worked succesfully on several client PC's
eexcept on this particular occasion.
Any help appreciated.
Matt Tag: where to download Internet Information Services 5.0 or higher? Tag: 63076
when will .net 2.0 roll out?
I am wondering if it is worth to create a FtpWebRequest my
own or just wait. Tag: where to download Internet Information Services 5.0 or higher? Tag: 63075
Problems w/ DataAvailable and NetworkStream
I'm using NetworkStream to read from a TCPClient.
I'm testing DataAvailable before reading to keep by thread from
blocking on read.
The docs say that if the remote end has closed the connection, a call
to DataAvailable should throw a SocketException. Unfortunatly, the
exception isn't getting thrown, so my code keeps spinning on
DataAvailable forever, never knowing that the connection has been
closed. There don't seem to be any other properties or methods in
either TCPClient or NetworkStream that I can use to get the connection
state without potentially blocking.
Am I missing something? Is there another way to determine if the
connection is active without risking a block?
Thanks.
* the reply-to mailbox is not checked
* send replies to: jj AT imtc DOT gatech DOT edu. Tag: where to download Internet Information Services 5.0 or higher? Tag: 63072
So Slow
Pfff...
I have worked on VC6 for several years, and that was ok.
Now, i' m learning .NET framework (C++), and it's sooooo sloooowww when i
run my application (1 tiny exe + 4 tiny DLLs in a single solution) in
Release mode (and much more in Debug mode).
Is it normal ???
My PC is a "AMD K7 1050 Mhz/512 Mo of RAM / 7 Go of freespace (on 70Go)",
but i don't think it comes from here.
Thanx in advance Tag: where to download Internet Information Services 5.0 or higher? Tag: 63071
License detection of runtime vs. designtime
I have an assembly that I want to license to developers.
I don't want to license the runtimes that they deliver to
their customers. There are no real design-time controls,
only some classes that they use by referencing the
assembly. If I implement the LicenseManager stuff the
LicenseContextMode of any objects is always 'Runtime'
which makes sense. How can I tell if the assembly is
being used for development and not in the resulting
product? Any ideas? Do I need to just rely on a paper
license?
Thanks!
Mark Tag: where to download Internet Information Services 5.0 or higher? Tag: 63068
Framework Installation
Cannot install Framework components downloaded from the
Framework area of MSDN. Downloaded dotnetredist.exe,
ExterpriseLocalizationToolkit.exe, setup.exe (Framework
1.1 SDK. I receive the following error message when
attempting to install any of these products: Extracting
file failed. It is most likely caused by low memory (HD)
or a corrupted cabinet file.
Computer is state-of-the-art Pentium 4 with lots of RQM
and huge hard drive.
I would appreciate any suggestions. Tag: where to download Internet Information Services 5.0 or higher? Tag: 63052
xml schema question
Is there a way to generate a xml schema from a C# class?
I have done some playing with the schema tool. I have been unable to
use the schema to generate a member that is a array of objects.
Such as
public class element
{
public int someVar;
}
public class holder
{
public elememnt [] elements;
} Tag: where to download Internet Information Services 5.0 or higher? Tag: 63050
Using CLSID to figure out COM component
Using Windows 2K & XP. My program works on my development machine but no a
client machie.
I've got an app using and Active-X control (MediaPlayer 9). I have it set
to be registered and added to the GAC during installation, which it is. But
upon my app using the control(opening a video file), I get the following
message:
COM object with CLSID {9571D958 - 9BCF - 4E19 - A374 - FC2F 321C8F61} is
either not valid or not registered.
How can I use the CLSID to track down which component it's calling and what
the specific problem is? The COM component is in the GAC and registered but
I still get this message.
thanks Tag: where to download Internet Information Services 5.0 or higher? Tag: 63044
code generation for property failed?
I created a custom control for viewing and editing an instance of my Matrix
class. It has a property called Matrix of type Matrix. It is a property I
want to use at run-time... I don't expect it to be set at design time.
Isn't there an attribute I can apply to a control's property so that the
code generator will not try and set a value for it, and so it cannot be set
via the control's property window?
Michael Lang Tag: where to download Internet Information Services 5.0 or higher? Tag: 63043
upgradation
How can i upgrade .Net Framework to 1.1.4322 from
1.0.3705?Can file dotnetfx.exe can be updated from
Microsoft site Tag: where to download Internet Information Services 5.0 or higher? Tag: 63041
separating Machine.config into Named Assemblies' configs
I have a suggestion for the Framework guys:
It would be nice to have a "default config" similar to Machine.config that
can more easily be deployed than merging my "default.config" with the
machine's machine.config
For instance, I'd like to add some deafult settings for my class library...
only way to do that is to either embed my default settings in the
machine.config or somehow encourage the users of the library to merge my
config into theirs... not very graceful...
I suggest moving to a more broken up format, whereas each Assembly's
FullName gets a config file:
System.Web, Version=1.1.4322, PublicKeyToken=XXXXXXXX.config
System.Web.Services, Version=1.1.4322, PublicKeyToken=XXXXXXX.config
and so forth, then I can do mine without merging:
Ensoft.DataComponents, Version=1.0.1000, PublicKeyToken=XXXXXXX.config
i still like the machine.config idea, but its become just like the
registry... one big area that could easily become corrupt through just one
bad character. Anyhow, thats my suggestion... maybe we'll see it in
Framework 2.0? I can only dream!
--
Eric Newton
C#/ASP Application Developer
http://ensoft-software.com/
eric@cc.ensoft-software.com [remove the first "CC."] Tag: where to download Internet Information Services 5.0 or higher? Tag: 63040
disable .net autologin
how can i stop .net from automatically logging in?
as soon as i start my computer, even without launching
outlook or msn messenger, i receive emails/messages.
im on xp pro.
tks in advance
J Tag: where to download Internet Information Services 5.0 or higher? Tag: 63033
Config file.
How can I add a config file to a windows forms project in
Visual Strudio.NET. (for example, I have Application.exe
project and I want to add new item (config file),
Application.exe.config, to the project). It doesn't seem
like there is a way to do so. I can do it by hand but I
would also have to remember to put this file into
the ..\bin\debug directory. Tag: where to download Internet Information Services 5.0 or higher? Tag: 63032
Hide forms from taskbar in Windows CE.NET v4.1
Hello!
I'm using .net Compact Framework to write an application for Windows CE
device. I know that .NET CF does not support MDI applications, only SDI.
So, my problem is: when a new form is openned, it blocks the parent window,
shows itself on the screen and in the PDA's taskbar, that is not good,
because the user can navigate through the blocked parent windows (they
redraw on demand, but do not respond the the events), and then he can be
lost.
Ok, I decided to hide parent windows before shoing the child one; but after
destroying the child, the parent stays minimized and a user must click on
taskbar app icon to bring the form on the PDA's screen.
I would like to find a solution how to hide parent winows and make them
restore their state after showing child dialog form.
Is there any solusion?
I tried to search on MSDN and inet, but no results... :(
I use .NET CF 1.1, Windows CE. NET v4.1.
Thank you!
Alex Tag: where to download Internet Information Services 5.0 or higher? Tag: 63026
missing files
When I do a windows maintaince check a problem appears, it
reads : missing file
C:\ProgramFiles\CommanFiles\InstallSheild\Professional\RunT
ime\0701\Intel32\DotNetInstaller.exe. Cannot acess
nessary file - mscoree.dll. When I do a search, the file
comes up. How can I fix this problem? I'm running Windows
ME Pent III. Tag: where to download Internet Information Services 5.0 or higher? Tag: 63025
HTTP class using same TCPIP session
Having a problem where seperate classes using seperated
instances of the HTTP class send the request over the
same TCPIP session. WHen this occurs, seems that IIS
accept the new request, but when the second request goes
to respond, the IIS server at the TCPIP layer issues
Resets. The problem i have a trace of shows that there
was 5 seconds between the two threads timing of using the
HTTP class. Is this a known bug, does anyone have a work
around? Tag: where to download Internet Information Services 5.0 or higher? Tag: 63020
multi project solution > have to BUILD whole solution to see changes in a single project (DLL)
I have this 58 project solution I maintained for 6 months now after
taking over.
Usually the advantage of having it broken down in many projects was,
that i could just edit a single .cs file, than compile the project it
is in. this would generate the appropriate DLL and i could just
"reload" the current page of the application I was on, and see the
changes take effect.
Now after installing the app on a new machine, I noticed that after i
make changes to a file in project, and build that project, and step
through it with debugger, it does not see the changes and attempts to
step on the lines as they were before my change. Until i run a BUILD
on whole solution.
i am suspecting that this might have something to do with my project
refrences.
Not exactly sure yet.
TIA. Tag: where to download Internet Information Services 5.0 or higher? Tag: 63017
Multithread Winsock
This is a multi-part message in MIME format.
------=_NextPart_000_0016_01C3AEB8.81687D30
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi all
I am a newbie to VB.NET hence I would like some help or pointers as to a =
way of developing the following:
A server which listens on a particular port for incoming client =
connection.
Upon receiving a connection the server starts to process data for that =
client and sends it back. In terms of data it will be a connection to =
Oracle, but for the purpose of this post it can be anything I.e. send =
1000 numbers back etc.
Now=20
I would like multiple connections and multiple processes to begin for eg
CLIENT 1 connects the server starts of the data preparation for CLIENT 1
CLIENT 2 Connects the server starts of the data preparation for CLIENT =
2
While the data is being prepared for CLIENT 2 CLIENT 1 data is ready and =
is being sent to CLIENT 1.
CLIENT 3 connects and data preparation starts for CLIENT 3 etc etc
I would like this things to happen simultaneously and not parallel.
hope it is clear
I would appreciate any help=20
TIA
N =20
------=_NextPart_000_0016_01C3AEB8.81687D30
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1276" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT size=3D2>Hi all</FONT></DIV>
<DIV><FONT size=3D2>I am a newbie to VB.NET hence I would like some help =
or=20
pointers as to a way of developing the following:</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>A server which listens on a particular port for =
incoming=20
client connection.</FONT></DIV>
<DIV><FONT size=3D2>Upon receiving a connection the server starts to =
process data=20
for that client and sends it back. In terms of data it will =
be a=20
connection to Oracle, but for the purpose of this post it can be =
anything=20
I.e. send 1000 numbers back etc.</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>Now </FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>I would like multiple connections and multiple =
processes to=20
begin for eg</FONT></DIV>
<DIV><FONT size=3D2>CLIENT 1 connects the server starts of the data =
preparation for CLIENT 1</FONT></DIV>
<DIV><FONT size=3D2>CLIENT 2 Connects the server =
starts of the=20
data preparation for CLIENT 2</FONT></DIV>
<DIV><FONT size=3D2>While the data is being prepared for CLIENT 2 =
CLIENT 1=20
data is ready and is being sent to CLIENT 1.</FONT></DIV>
<DIV><FONT size=3D2>CLIENT 3 connects and data preparation starts for =
CLIENT 3 etc=20
etc</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>I would like this things to happen simultaneously =
and not=20
parallel.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=3D2>hope it is clear</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>I would appreciate any help </FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>TIA<BR>N </FONT></DIV>
<DIV><FONT size=3D2><BR></FONT> </DIV></BODY></HTML>
------=_NextPart_000_0016_01C3AEB8.81687D30-- Tag: where to download Internet Information Services 5.0 or higher? Tag: 63016
.Net Class Based Framework
Hi,
I new developer in .net.
I doubt about .net resditributable.
I have develop a application in .net. I distributed this
application to many clients. This clients install my
application in automatic form. For my Application work, I
distributed .net framework, but it's necessary all .net
framework, or only Base Framework class?
An another question, Do the size of application develop in
any language of .net it's the same?
Thanks.
MPAZ Tag: where to download Internet Information Services 5.0 or higher? Tag: 63013
Read a word document
Hello
please any idea how to read a formatted word (.doc)
document using vb.net without loosing the format , also
how to insert/add a formated word document into another
word document with out loosing the format
Thank You Tag: where to download Internet Information Services 5.0 or higher? Tag: 62998
Printer Synchronization
HI,
I need to perform Synchronization of Requests to Printer.
As the printing application is deployed on many App
Servers. I would like to gain exclusive access or rather
queue my requests serially.
The Requirement: One Application Print job involves
printing of multiple Word documents which involves opening
them in Word automation objetc & then firing Printout for
the same sequentially.
The Fear: Because of Multiple App Servers performing
similar tasks, i would like one print job(having multiple
print requests) to be executed sequentially for each App
Server. so that the printout doesnt come mixed up. you can
think of a catalogue of items being printed, while the
contents of the catalogue are different Word Documents &
each catalogue request can comprise of many such print
requests.
As each App server can fire printing of the catalogue
(composed of many different Word documents), i would like
that the target printer should print out only one
catalogue request at a time (i.e from one app server)
while the next gets a chance when the first one is done)
so that the print outs of the catalogues aren't mixed up..
Something like a Semaphore implementation is needed,
currently i'm working on workarounds. Is there any proper
way to accomplish this , using APIs, etc ???
I'm developing this component in VB.NET
Kindly advise...
Thanks in advance,
Vijay Kumar Tag: where to download Internet Information Services 5.0 or higher? Tag: 62996
unhooking events
Hi,
Does anyone know a way that I can unhook an event without
passing the original event handler ?
i.e I want to do like this:
foreach(eventhandler in object.SomethingChanged)
{
object.SomethingChanged -= SomethingChanged(abc);
}
John Tag: where to download Internet Information Services 5.0 or higher? Tag: 62989
unwiring events?
Hi,
Does anyone know a way that I can unhook an event without
passing the original event handler ?
i.e I want to do like this:
foreach(eventhandler in object.SomethingChanged)
{
object.SomethingChanged -= SomethingChanged(abc);
}
John Tag: where to download Internet Information Services 5.0 or higher? Tag: 62988
1.1 Framework Upgrade Issues...
I have just upgraded from VS.NET 2002/Framework 1.0 to
VS.NET 2003/Framework 1.1 and migrated my current web dev
project to VS.NET 2003/Framework 1.1 as well. On my
local machine, this all seems to have gone well.
However, after refreshing this same project on the ISP
server that hosts my "production" version of said
project, I am getting all sorts of bizarre errors.
I am assuming this may due to the fact that my ISP is
still running .NET Framework Version:1.0.3705.288 and my
local version is 1.1.
Anybody shed any light on this or point me to a place on
Microsoft that has specific articles that might help me
figure this out.
Thanks,
Tim Heffernan Tag: where to download Internet Information Services 5.0 or higher? Tag: 62987
reducing size of .NET assembly file
i have created a .NET assembly, and even in release mode, the size of the
dll is over 1 megabyte.
i have got ~15000 lines of code, and i do link to one or two lib files.
any general advice as in to what i should be looking into for reducing
(significantly) the size of the file?
cheers,
g. Tag: where to download Internet Information Services 5.0 or higher? Tag: 62986
Caspol Issue
I have compiled some codes under .Net framework 1.0 and
run it on a PC with W2K/.Net framework 1.1. The
application uses Internet Deployment, and Caspol was set
correctly. However, the application couldn't see it.
I have tested under different environmnts as follows:
1. W2K/.Net framework 1.0 (OK)
2. W2K/.Net framework 1.1 (FAILED)
3. WXP/.Net framework 1.0 (OK)
4. WXP/.Net framework 1.1 (OK)
Any body knows how to fix this issue?
Thanks Tag: where to download Internet Information Services 5.0 or higher? Tag: 62985
install fails for .NET Framework 1.1 Doc Update Oct 2003
The installation of the .NET Framework 1.1 Documentation
Update October 2003 (file NDP1.1-KB827821-X86-Enu.exe)
fails. Visual Studio 2003 English is installed on the
Windows XP PC. The .NET Framework SDK v1.1 Documentation
is present.
The error message is:
The upgrade patch cannot be installed by the Windows
Installer Service because the program to be upgraded may
be missing, or the upgrade patch may update a different
version of the program. Verify that the program to be
upgraded exists on your computer and that you have the
correct upgrade path.
Is the upgrade already included? Tag: where to download Internet Information Services 5.0 or higher? Tag: 62980
Read stream into structure from System.IO
Hi,
I encounter one problem about System.IO. I have a binary file that contains
following structure,
struct MyFormat
{
public sbyte Type;
public sbyte[] Num;
public sbyte Flag;
public sbyte[] Name;
}
Question 1: How can I assign the length of Num to 5, such as "public
sbyte[15] Num;" like C++?
Question 2: How can I read this binary file into structure one by one?
Thanks!! Tag: where to download Internet Information Services 5.0 or higher? Tag: 62969
October 2003 .NET Framework SDK Documentation Update
Hi,
Is anybody here able to install the October 2003 SDK Documentation update
available on this page:
http://www.microsoft.com/downloads/details.aspx?FamilyId=2EAEB501-C197-4892-9C50-8F6BE1B0D4E0&displaylang=en
I got an error message saying that
"The upgrade patch cannot be installed by the Windows Installer service
because the program to be upgraded may be missing, or the updgrade patch may
update a different version of the program. Verify that the program to be
upgraded exists on your computer and that you have the correct upgrade
patch."
It's so strange since I have both .NET Framework SDK version 1.1. and MSDN
April 2003 installed on my machine. Also, I use the same language (English)
for both.
Thanks. Tag: where to download Internet Information Services 5.0 or higher? Tag: 62967
System.IO.PathTooLongException
Hi,
(This is a repost - I posted this last week, but
misspelled my email alias.)
The documentation states that this "exception is
thrown when a pathname or filename is longer than the
system-defined maximum length". In my case, this max.
length is 260 characters on WinXP. Is there any way to
change this value? If not, are there any workarounds?
Thanks,
Donald Xie Tag: where to download Internet Information Services 5.0 or higher? Tag: 62954
Problem installing .Net Framework SP2
I have 1.1 of the framework with SP1 already installed on my machine and am
trying to install the .Net Framework Service Pack 2. I get this message:
"The upgrade patch cannot be installed by the Windows Installer service
because the program to be upgraded may be missing, or the upgrade patch may
update a different version of the program. Verify that the program to be
upgraded exists on your computer and that you have the correct upgrade
patch."
Tried it on another machine with just 1.1 on it with no service packs and
still get the same message, I also have the compact framework SP1
installed.
Bit lost in all the versions and service packs at the moment
Derek Tag: where to download Internet Information Services 5.0 or higher? Tag: 62953
XmlDocument read from Network Stream
I have been using the following code (successfully) to read Xml formated
text packets from a TCP stream. The output from the server stream consists
of a sequence of well formed Xml documents written to the output stream.
We are willing to pay $ to any expert (e.g. MVP) consultant who has to time
to help us track down this problem.
(we will discuss rates if you can prove your expertise, and problem solving
approach).
The code below is for the client that is reading the stream.
All this worked well, as long as long delays were between each "packet". But
when multiple packets are sent in quick succession, it is dropping packets.
I have been trying to do this more "correctly" with using a XmlTextReader,
but with no luck.
E.g.
XmlTextReader r = new XmlTextReader();
reader.MoveToContent();
string s = reader.ReadOuterXml();
dgram.Load(s);
It basically hangs on the ReadOuterXml();
Here is the original "working" code:
--------------------------------------------
private void OrchTalk()
{
int bytesRead = 0;
XmlDocument dgram = new XmlDocument();
while (true)
{
byte[] buffer = new byte[1024]; // buffer for socket read stream
bytesRead = 0;
try { bytesRead = oStream.Read(buffer, 0, buffer.Length); }
catch (Exception e)
{
if (stateCode == Common.stateCodes.shutdown) {break;}
Tools.Debug(10, "OrchTalk: read error {0} ", e.ToString());
break;
}
if (bytesRead == 0)
{
if (this.stateCode == Common.stateCodes.shutdown)
{
Tools.Debug(10, "OrchTalk: Orchestrator died");
this.Disconnect();
return;
}
break;
}
else
{
string s = Tools.ByteToStr(buffer, 0);
try { dgram.LoadXml(s); }
catch (Exception e)
{ Tools.Debug(0, "OnReadComplete: {0} Runt packet: {1}", e.ToString(),
s); }
int endTime = Environment.TickCount;
this.inPacket = dgram.DocumentElement;
Tools.Debug(10, "packet: {0}", inPacket.OuterXml);
this.Dispatch();
int startTime = (int)this.stats["start"];
int elapsed = endTime - startTime;
this.stats["stop"] = endTime;
this.stats["time"] = elapsed;
this.stats["bytes"] = bytesRead;
this.stats["packetText"] = inPacket.OuterXml;
if (StationMaster.isConnected)
{
string outPacket = inPacket.OuterXml;
FlashComm.itself.Send(outPacket);
}
}
}
this.Disconnect();
} Tag: where to download Internet Information Services 5.0 or higher? Tag: 62952
race conditions caused by Thread.Abort
I have been looking for ways to prevent asynchronous
Thread.Abort calls from wreaking havoc in my code. I'm
working on an assembly, implemented in Managed Extensions
for C++, that makes unmanaged calls and often needs to
free resources associated with those calls:
bool allocated = false;
try
{
...
// Allocate some resources in unmanaged code
allocated = AllocateUnmanagedResources();
...
}
__finally
{
// Only free resources if allocation was successful
if (allocated)
FreeUnmanagedResources();
}
This code should work fine if the thread running it is not
aborted. However, asynchronously aborting the thread can
lead to two problems:
- The ThreadAbortException can be thrown from inside the
__finally block, causing the resources to be leaked. This
possibility is noted in the Thread.Abort documentation.
- The ThreadAbortException can be thrown after a
successful call to AllocateUnmanagedResources but before
the assignment to the boolean variable. In that case, the
code in the __finally block isn't aware of the current
state, so the resources are leaked.
Both of these scenarios seem to be the result of
deficiencies in the .NET Framework and/or CLR:
1) __finally blocks aren't guaranteed to run to completion
2) There doesn't seem to be a way to create
an "unabortable" block of code. Obviously, this kind of
feature could be abused (and would preclude the need for
(1) above), but it seems necessary in order to allow clean-
up code to know the state of the application.
Anyway, I'm looking for ways to eliminate the race
conditions described above. So far, the only solution
I've found is to surround the whole block with a
try/catch, and push the state variable assignment into
unmanaged code (which can't be aborted):
#pragma unmanaged
// Error-checking ignored for clarity
void AllocationWrapper(bool* pAllocated)
{
*pAllocated = AllocateUnmanagedResources();
}
void DeallocationWrapper(bool* pAllocated)
{
if (*pAllocated)
{
FreeUnmanagedResources();
*pAllocated = false;
}
}
#pragma managed
bool allocated = false;
try
{
try
{
...
AllocationWrapper(&allocated);
...
}
__finally
{
DeallocationWrapper(&allocated);
}
}
catch (ThreadAbortException*)
{
DeallocationWrapper(&allocated);
}
Can anyone think of a cleaner way to remove the race
conditions? Something in the language or framework I've
missed? A configuration setting that magically disables
Thread.Abort?
Thanks... Tag: where to download Internet Information Services 5.0 or higher? Tag: 62950
RunDll or remote activation needed
In the .NET Framework Developer's Guide there is a page
titled Building a Host application.
Within this page there is a note:
Unlike COM, remoting does not start the host or server
application for you. This is an important difference
between .NET remoting and remote activation in COM.
I need this functionality.
I need to be able to start a seperate win32 process and
communicate with it.
The trick is that there must not be any need for
configuration files or such.
I could approach the problem one of two ways.
Either my client dll can reference the server exe (but
referencing an exe is not allowed by the IDE).
Or I can reference and execute a dll.
The reason I want to reference it is to make sure that VS
always puts a copy of it where I can find it, so I can
execute it.
Another possibility is to make the server app also a COM
server and just register it that way, but this is not
managed and VS will not register an exe this way. Tag: where to download Internet Information Services 5.0 or higher? Tag: 62948
Accessing Form Controls From Threaded Delegate via Async Callbacks.
I have a Form that hosts a control (used for visual
feedback).
From this form a Class is created.
This Class has several events/delegates that are triggered
by a Socket (which is a member of the class)'s Async
Callbacks. [Eg OnConnected, etc ].
From within this delegate eg. OnConnected, OnReceivedData
and OnClose I need a way to be able to provide visual
feedback to the form.
I setup an event/delegate on the Form and made it public
so others could access it. A refernece to the Form was
passed to the Class when it was created.
However the minute i call Parent.Invoke
(Parent.VisualMethod,......) the program hangs. Trapped
inside a Try catch to catch any exceptions the program
just hangs. I've stepped through the code and when I step
into that line the program and debugger never come back.
I've tried Control.Invoke, new DelegateMethod(parameters),
Parent.VisualControl.Methodstoupdate
Maybe there is something here I dont quite fully
understand. Maybe there is something very simple that I'm
missing. Or Maybe there is an alternate method of
achieving my goal. Tag: where to download Internet Information Services 5.0 or higher? Tag: 62947
host normal jscript or vbscript in .net
I'd like to be able to run normal JScript or VBScript (not .Net) from inside
a dotnet application, and let the script access certain object at least
through COM.
I don't want to use the jscript.net VsaEngine implementation because I need
to compile and run ALOT of small bits of code and memory is an issue when
you can't unload those emitted assemblies. Tag: where to download Internet Information Services 5.0 or higher? Tag: 62944
working with TCP/IP
I have a client server application where the client sends mouse movements
and text to the server like "MVU 15" would move the mouse up 15 pixels and
"CHAR a" would send an 'a' to the current application. The problem I am
having is that when I try to send a string of chars I get multiple sends
when I read from the TCP/IP stream for instance on one read I might get
"CHAR aCH" then the next read I will get "AR bCH" which obviously breaks my
code.
I am using the following code to send the data
---------------------------
System.IO.StreamWriter NStream;
client = new System.Net.Sockets.TcpClient();
client.Connect(System.Net.IPAddress.Parse(strIPAddress),6254);
NStream = new System.IO.StreamWriter(client.GetStream());
NStream.Write(s);
NStream.Flush();
---------------------------
and the following to read the data
---------------------------
skt = listener.AcceptSocket();
byte[] b = new byte[15];
res = skt.Receive(b);
----------------------------------------
I was thinking i will pad the data to 15 chars but it doesn't seem to be a
problem for most things, but that might have been a result of the speed it
was sent.
Any ideas would be great.
Thanks in advance,
~Logan Tag: where to download Internet Information Services 5.0 or higher? Tag: 62943
pwdLastSet and other Active Directory Date types
Has anyone been able to get the "date" properties (pwdLastSet, lastLogon,
etc.) from Active Directory using JUST the native .Net tools (no com interop
with activeds)? When I try to do that, I get strange results. Consider the
following simple code:
(for this a .Net reference is set to System.DirectoryServices)
Private Function Test(ByVal sLDAPPath As String)
Dim de As New DirectoryEntry(sLDAPPath)
Dim sr As SearchResult
Dim ds As New DirectorySearcher(de)
Dim lTemp As Long
ds.PropertiesToLoad.Add("pwdLastSet")
ds.PropertiesToLoad.Add("lastLogon")
sr = ds.FindOne
If sr Is Nothing Then
'not found
Else
lTemp = sr.Properties.Item("pwdLastSet")(0)
End If
End Function
With MY user ID, lTemp ends up with 127133852422713849. That's fine, I can
use a DateTime.FromFileTime, but it comes back with a date that is about a
day off from what I get back using the interop (not just the UTC time
difference). I get similar results on other accounts (sometimes it is very
close, other times it is WAY off. When I use the Microsoft sample "Active
Directory Browser" (adsvw.exe) it shows this value should be
127133856717681145. Again, similar results on other accounts.
Samples:
above code adsvw.exe
127129877390570772 126626200214730160
126625284477162600 126625284477162600 (yes, this one comes out
the SAME!!!)
I know I can use something like this:
Private Sub Test(ByVal sLDAPPath As String)
Dim objUser As ActiveDs.IADsUser
objUser = GetObject(sLDAPPath)
Dim dt As Date = objUser.PasswordLastChanged()
End Sub
And it will work (as long as I referenced ActiveDS), but I do not really
want to ship the Interop.ActiveDS.dll along (or use COM) for this.
Anyone "been there, done that - solved it" that would share?
Thanks!
Jerry Tag: where to download Internet Information Services 5.0 or higher? Tag: 62939
dictionary with multiple object under the same key
Hi All,
Is the a dictionary some place where multiple objects can be collected under
one key ? like...
dictionary.add( "a", "about" );
dictionary.add( "a", "after" );
Took a look at hashtable etc. and others but they don't support it.
thanks, Tag: where to download Internet Information Services 5.0 or higher? Tag: 62937
Input panel with more then one form
Hi,
If my application has two forms and the user needs to fill in some textboxes
on each of then, how may inputpanels do I need.
When I put one on the first form it works fine, but if I put one on the
second form as well, exceptions occeur.
If I need only one, how can I enable it from the second form?
I'm using VB.NET to write a smartapplication.
thanks,
Eric Tag: where to download Internet Information Services 5.0 or higher? Tag: 62936
Any suggestions to this notouch app issue?
Hi
I have developed a little windows forms wich is supposed to be deployed with
NoTouch (smart client) technolgy.
Since a nice GUI is essential for the app i have used transparency to give i
at nice look. But then the framework wrap my nice gui in a standard form!!
Look at this: http://pings.dk/notouchgui.jpg
Any suggestions? I tried this.FormBorderStyle =
System.Windows.Forms.FormBorderStyle.None; after the app has loaded.
But i has no effect. I guess the framework is wrapping another application
around my application. But WHY!. I cant be a security restrcitions since it
does no harm to the client...(i guess?!?)
Hope some have a suggstion to remove it (still using smart client tech...of
course)
Thx in reagards
Anders, Denmark
x-postet in microsoft.public.dotnet.framework,
microsoft.public.dotnet.framework.windowsforms,
microsoft.public.dotnet.languages.csharp Tag: where to download Internet Information Services 5.0 or higher? Tag: 62935
Issue arbitrary DOS commands
Is there a way to issue an arbitrary DOS commands and see
the output? The commands will be entered by the user
into a text box. I want to be able to handle commands
like DIR, COPY, DELETE, etc. I know I could write the
code for each of these commands, but I won't necessarily
know all of the possible commands that will be issued. I
would like to take the text that the user enters into the
text box and issue that command as if the process were at
a Windows Command prompt.
I have looked at System.Diagnostics.Process and
System.Diagnostics.ProcessStartInfo but that only seems
to handle executing programs, not necessarily issuing
commands.
Mark Tag: where to download Internet Information Services 5.0 or higher? Tag: 62933
Databound Dropdownlist....
I have a databound dropdown list that is using a SQL database to pull
an ID field (CVID) as the Value and a name field (ContractVehicle) as
the Text. The dropdown populates perfectly from the database however
when I attempt to submit the selection to the database using
me.ddPMID.DataValueField I receive an error saying that string "CVID"
cannot be converted to type integer. The Value field should contain
integers as each of them are autonumbered by the database. The code I
am using to populate the dropdownlist follows. Any help would be
greatly appreciated.
Dim connString As String =
"server=192.168.25.245;uid=sa;pwd=nuts@sigcom!-1;Initial
Catalog=SIGCOMproposal"
Dim conn As SqlConnection = New SqlConnection(connString)
Dim sql As String = "SELECT * FROM tblContractVehicle ORDER BY
ContractVehicle"
Dim da As SqlDataAdapter = New SqlDataAdapter(sql, conn)
Dim ds As DataSet = New DataSet()
da.Fill(ds, "tblContractVehicle")
Dim dt As DataTable
dt = ds.Tables(0)
dt.DefaultView.Sort = "ContractVehicle"
Me.ddCVID.DataSource = dt.DefaultView
Me.ddCVID.DataTextField = "ContractVehicle"
Me.ddCVID.DataValueField = "CVID"
Me.ddCVID.DataBind()
Me.ddCVID.Items.Insert(0, "--Select a Contract Vehicle--")
Me.ddCVID.Items(0).Value = "0"
conn.Close() Tag: where to download Internet Information Services 5.0 or higher? Tag: 62932
Clearing the download cache on client machines
Is there an elegant way to clear the download cache on a client machine? We
are deploying a winforms browser and smart client application. Recently we
made a mistake with versioning (we release a version with a very large
number), and now our internal clients can't download a newer version. Since
this is still in house we can install gacutil on people's machines and get
it to clear the cache. But this got me thinking, what could we do if this
happened with an internet deployed version of application? How does a
normal end-user clear their download cache? We can't ask an end-user to
install a utility, that would violate the entire purpose of creating a
smart-client that runs at the internet trust level. We clearly can't get
people to install gacutil.
Any idea what to do?
Mark Levison "in smart client deployment heck" Tag: where to download Internet Information Services 5.0 or higher? Tag: 62929
could anybody tell me how to download and install Internet Information Services 5.0 or higher? i'm using win2000.