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: Remote Setup of Security. 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: Remote Setup of Security. Tag: 60355
New thread reference lost, can't abort
I have a Main thread that starts a named thread,
that inits and starts up events for watch a folder and monitoring a
schedule.
Later, I want to join the thread to the main thread and disable the events
or if need be abort the thread. However, the named thread continues to run
but loses it's name and main thread cannot abort it anymore.
What's happening and how can I keep a reference to it? It seems to get lost
after initializing.
Thanks in Advance,
Byron Tag: Remote Setup of Security. Tag: 60345
web-hosting to be used with Microsoft.net
would you pls. recommend me the web hosting to be used
with Microsoft.net platform?
Thanks Tag: Remote Setup of Security. Tag: 60337
ANN: October 2003 .NET Documentation Update
October 2003 .NET Framework SDK Documentation Update:
http://www.microsoft.com/downloads/details.aspx?FamilyID=2eaeb501-c197-4892-9c50-8f6be1b0d4e0
Download 48532 KB, English:
http://download.microsoft.com/download/0/b/b/0bb757a0-e734-4e78-b95b-d357e2d8635a/NDP1.1-KB827821-X86-Enu.exe
KB:
http://support.microsoft.com/?kbid=827821
October 2003 Visual Studio .NET Documentation Update:
http://www.microsoft.com/downloads/details.aspx?FamilyID=a3334aed-4803-4495-8817-c8637ae902dc
(The 'MSDN Library for Visual Studio .NET 2003' must be present on your computer...)
Download 80105 KB, English:
http://download.microsoft.com/download/6/5/a/65adca14-5813-426b-9c86-169115ee0d24/MSDNVSsp1-KB827819-X86-Enu.exe
KB:
http://support.microsoft.com/?kbid=827819
IMPORTANT:
This documentation update is also included in the MSDN Quarterly Library - October 2003
or later that is available to MSDN subscribers.
If you already have one of these libraries present on your computer,
you do not need to install this documentation update.
--
Thomas Scheidegger - MVP .NET - 'NETMaster'
http://www.cetus-links.org/oo_dotnet.html - http://dnetmaster.net/ Tag: Remote Setup of Security. Tag: 60327
App not working when moved to a new environment
Hi,
We have an ASP.NET application that works fine on my
workstation and our integration server (both of these
boxes have Visual Studio installed). When we moved the
app to our stagging server (without VS) it stopped
working. I get the following errors:
Error #1:
Description: An error occurred during the compilation of a
resource required to service this request. Please review
the following specific error details and modify your
source code appropriately.
Compiler Error Message: BC30451: Name 'm_strOnLoad' is not
declared.
Error #2
Description: An unhandled exception occurred during the
execution of the current web request. Please review the
stack trace for more information about the error and where
it originated in the code.
Exception Details: System.NullReferenceException: Object
reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution
of the current web request. Information regarding the
origin and location of the exception can be identified
using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an
instance of an object.]
Customer_Service.searchAccount.Page_Load(Object sender,
EventArgs e)
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731
So it looks to me like the aspx pages cannot find a
reference to their codebehind classes which should have
been compiled into the project DLL. I have checked the
versions of the all DLLs and aspx files in the bin
directory and they are the same as the ones on the
integration box.
A little bit about the process we are using: First I
develop and compile the project on my local box and then
check the source files (.aspx.vb, .vb, etc) and aspx files
into VSS. Then I go onto the integration server and
checkout the pertinent versions of the source files and
aspx files based on the code changes we want to
implement. Still on the integration server, I recomiple
the project DLL with the new files that I just got from
VSS, and everything is working fine on that box.
Now, for the move to the stagging server I simply copied
all the aspx files, and I have the project DLL in the bin
directory of the web application. Is this all I need to
do? It seems that I'm missing something. Any help would
be greatly appreciated! Tag: Remote Setup of Security. Tag: 60318
EventLog & EventLogEntries
I've been using System.Diagnostic.EventLog & EventLogEntries for over a year
and I still do not understand some aspects of how they are supposed to work.
Here is one particular issue I have never made sense of:
The EventLogEntries is the framework's only mechanism to fetch event logs.
This can be done by fetching by index within this special collection class.
This all seems simple and straightforward with one exception: the bounds and
contents of this collection appear to change dynamically during the lifetime
of this object. For example, I can fetch the Security log for a remote
target and see in the EventLogEntries object that this log has 1000 entries
that begin with record # 653617 and end with record # 653716. But while
iterating the collection, I can find that suddenly the object has 980
entries and all entries have moved underneath me (e.g. record # 653716 was
at index 999 and is now at index 979).
I realize the underlying cause is that the event logs on the remote target
are being pruned based on their configuration (e.g. based on the maximum log
size). However, it is undecipherable to me how anyone could be expected to
work a collection of entries whose contract with the caller appears to be
that its size and contents can change at any time, for any reason and
without any event notification.
If someone can help me make sense of this, it would be appreciated. Tag: Remote Setup of Security. Tag: 60317
Tab control with Images/ colors on tabs.
Is there any way I can change the background color of tabs (only) on the
tabcontrols
Are there any pretty tab controls. ?
Mallikarjun Tag: Remote Setup of Security. Tag: 60313
.NET GC Woes & Best Practices
To my fellow .NET developers,
When .NET came out and I attended one of its launch seminars I was
ecstatic about it's potential. I convinced my employer that his next
enterprise-level application should be developed using the
latest-and-greatest technology--.NET! Now that my application has
reach fruition and we're in the deployment stage MAJOR issues are
becoming apparent esp. dealing with memory leaks.
I was under the impression that the Garbage Collector was a godsend--a
magical force who would deal with all my memory management concerns so
that I could be freed to work on the more important issues dealing
with business logic. That assumption was far from true.
Now before I elaborate, let me say this... I realize that every major
undertaking in the programming world is bound to have its bugs. I
myself have never produced anything beyond the simplest of
applications that were without bugs. Therefore, I expect no
perfection from the .NET designers and I still believe largely in
.NET's potential and direction. It's just that I have been riddled
with memory leaks that I never had in the VB6 world. Now that I have
witnessed the power of GC, I'd rather regress to managing my own clean
up.
MY ISSUES WITH GARBAGE COLLECTION:
1. Whether or not Microsoft wants to admit it, the world of
programming is so massive that most programmers cannot be expected to
grasp all the high-level ins and outs necessary for developing
superior apps. I though GC was designed with this in mind; however,
as I read all the posts regarding it I can see that there is an
overwhelming number of confused developers who are unsure about it.
Back when I set my objects to Nothing once I finished using them,
things were easy.
2. Hanging references are rampant. Say you create an object that
contains other objects. When that object falls out of scope but has
inner-objects that go on living, although you would expect it to die,
it lives. One very common example of this arises when you create a
form and assign event handlers to the various events, but do not
remove those handlers when the form is closed. The dead form
reference exists in limbo never to be reclaimed. From a simplistic
standpoint, should GC be intelligent enough to dispose of all inner
objects when the parent object reference falls out of scope? I mean,
if it's obvious that I can never make reference to the closed form
again and all the inner objects are ONLY referenced by the form
itself--i.e. they are complete self-contained--why bother retaining it
in memory!?
3. Because of .NET it is almost a requirement that developers purchase
a memory profiling tool. If I hadn't I wouldn't have stood a chance
at eliminating my memory leaks. At present, with the tool, I have
only just begun plugging all the leaks.
4. As more and more .NET issues emerge for me, it would be nice to
have a specific Microsoft URL that has a .NET priority list of issues.
Knowing what MS was working on would help put me at ease and make me
eagerly anticipate the next release.
GARBAGE COLLECTION CONFUSIONS:
Although GC was intended to make my life easier, I have had to do
volumes of research that lead to tons of questions and some answers.
Eventually, I decided that learning from the posters on these
newsgroups had limited value--everyone kept speaking definitively on
the topic only to be contradicted by someone else who was in turn
contradicted again.
Here are some of the questions I asked...
It seems that there are several ways of cleaning up objects--use
deconstructors, implement the IDispose interface and call Dispose (or
use a using statement), set the object to null, and override the
finalizer method. (I am still uncertain as to whether the finalizer
and the deconstructor are one in the same.)
Q1: What is the train of thought I should use to know how to properly
clean up objects? Call Dispose if it exists, nullify it, or both?
Q2: Should I bother nullifying an object that is about to fall out of
scope or does GC clean up nullified objects and out-of-scope objects
the same way? (I'm guessing "yes".)
Q3: If I declare a type and instantiate an object against it is it
important to nullify it before I reuse it to instantiate another
object?
private void Show2Dialogs()
{
MyForm frm = new MyForm(); //instance 1
frm.ShowDialog();
frm = null;
frm = new MyForm(); //instance 2
frm.ShowDialog();
}
vs.
private void Show2Dialogs()
{
MyForm frm = new MyForm(); //instance 1
frm.ShowDialog();
frm = new MyForm(); //instance 2 -- is instance 1 garbage
collected?
frm.ShowDialog();
}
Q4: How does the scope of the type impact this? What if the type is
static or belongs to a static class?
MyForm frm = null;
private void Show2Dialogs()
{
frm = new MyForm(); //instance 1
frm.ShowDialog();
frm = null;
frm = new MyForm(); //instance 2
frm.ShowDialog();
}
vs.
MyForm frm = null;
private void Show2Dialogs()
{
frm = new MyForm(); //instance 1
frm.ShowDialog();
frm = new MyForm(); //instance 2 -- is instance 1 garbage
collected
frm.ShowDialog();
}
Q5: What are the GC ramifications using unassigned object references
directly?
new ToolTip().SetToolTip(MyButton, "Click me to continue...");
(Tool tips are graphical objects. Is there a difference on doing
the same with non-graphical objects?)
new MyObject().DoSomething(); //obviously a static method might be
better
Q6: From a design standpoint when should I use Dispose or
destructors/finalizers?
Here's what I think I've learned...
Dispose:
Use ONLY when your class deals with unmanaged resources.
Destructors:
Avoid them as there is no way to be sure when the GC will call them.
GC will handle the details for destroying an object's managed
resources without your help.
Q7: Even when I explicitly Dispose an object is it still a good idea
to nullify it?
I would guess "yes". The whole idea of checking at the top of every
method to see whether the object has been disposed makes for ugly code
and seems problematic--what if the programmer forgets to code the
check to determine whether the object has been disposed before
attempting to execute the method's code? By nullifying the object,
this becomes a non-issue.
Q8: Has anyone developed some general suggestions (perhaps a best
practices checklist) on designing for GC?
Q9: Any general suggestions (or a best practices checklist) for
avoiding memory leaks?
e.g. Always remove all event handlers in your disposed objects.
Q10: Regarding removing all event handlers in non-form objects... do
it in a Dispose method or in the deconstructor? Pros/cons of each? I
read some recommendations that event handlers should be removed when a
form is Disposed/Closed, yet in the Windows Form-generated code for
such events as button clicks, there is no attempt to unregister the
event handler. Why is that?
Well, that's more than enough for now. I'm just baffled that this
thing called Garbage Collection--which is supposed to ease our
burden--has done nothing but increase our workload as developers.
I am truly thankful for anyone who takes the time to offer any
feedback. I've been troubleshooting my current project's memory
issues for months (tons of hours!). I've even brought in an outside
contractor to help with the issue. His advice helped and reduced the
memory-leaks, but did not solve the issue.
Mario T. Lanza
Clarity Information Architecture, Inc. Tag: Remote Setup of Security. Tag: 60312
LDAP Provider
Hi all,
Does .Net framework have any support libraries for
implementing LDAP provider?
Thanks,
Gil Shabat Tag: Remote Setup of Security. Tag: 60306
Use public/private keys to verify sending assembly
Hello any crypto and remoting types ... can you lend an ear? I would
like to enhance the security of an existing application. Currently,
the client tier of the application makes remoting calls to the
business tier. At the business tier, I want to verify that remoting
call originated from an assembly that was signed using my company's
private key. The middle tier will assembly will signed in the same
way. Has anyone experience, or just a good idea for doing this? In
the client, I do have the freedom to send what I want in the call
context.
Any help or thoughts are deeply appreciated! Tag: Remote Setup of Security. Tag: 60305
aximp of SHDocVW.dll problem
Hi there,
As mentioned in message "aximp of shdocvw.dll -> problem with
ShellExecute" posted before, aximp creates two files:
AxSHDocVW.dll
SHDocVW.dll
The second has the same name as the original dll, and that makes
problems with internet explorer.
The offered solution was disassembly the interops using the ildasm
tool and recompile it using ilasm with new name. What I could not
understand is how I change the refernce of the AxSHDocVW.dll to point
to the new interop I created.
I also tried using the /source option when importing the library and
get a .cs file, but I could not find the refernce directive in the
code, so I created an empty project, added the source code and
referenced to the new assembly I created. Still the refernce remained
the same (looked in the manifest button of ildasm).
Help.... PPPPPLLLLEEEAAAASSEE.....
Regards,
Or Lavy Tag: Remote Setup of Security. Tag: 60303
.net framework compitabilties
Is the .Net framework can run on any win98 OS?
if I will develop with .NET and I have clients with win98,
will it work?
Thanks.
Tal Tag: Remote Setup of Security. Tag: 60296
Queue resizing
Hi,
How can I monitor the regrowing and shrinking of the Queue type? I only
have .Count visible as public.
I need to be able to determine the dequeing rate or the intiial size of
this as I would rather it "not" grow in size.
Thanks Tag: Remote Setup of Security. Tag: 60294
String conversion problem (encoders)
Hi to all,
can anyone tells me what is the correct way from the framework
to convert OEM characters to Ansi (and the opposite) ??
I mean, i am building an SMS infrastructure and one part of
it is to send sms through the help of Nokia PC Connectivity SDK.
The problem is that when the user enter Greek characters in a
textbox, they reach as empty chars in the phone,
so i have to convert them to Ansi (i guess) before sending them.
I tried the code below (taken from online help) but it gives me "??? ?????"
in a Greek string. I know i am doing something wrong with the encoders
but i still cannot find it.
Does anyone can help ??
Thanks a lot!
Anthony Boudouvas Tag: Remote Setup of Security. Tag: 60280
Queue._size = 0
Hi,
I notice in the debugger that the _size member of a Queue is 0 even tho
its been initialised, is it always 0 on construction and not the default
size? So on the first .Enqueue(object) it will then grow. Weird, why is the
_array memeber set to 32 (also the same value as _ShrinkThreshold).
So why is _size = 0 and what is _size for then if it isnt the size of the
Queue._array ?
Thanks. Tag: Remote Setup of Security. Tag: 60264
My Webservice works on Win2000 but not on Win2003
Hello
I developed a WebService that works on a Win2000 server,
but when I copies them to a new Win2003 server and
test them with the windows explorer:
url --> http:\\localhost\Webserv\Webserv.asmx
it says page not found.
(If i put a html page in the same directory it works)
I think it has to do with the association between
.asmx and some dll's.
How can I configure this easely
I have done the "Application Extension Mapping"
for:
.asmx, .asax, .cs, .csproj, .resx, .vsdisco to
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll
but it still doesn't work.
Any ideas
Torfinn Tag: Remote Setup of Security. Tag: 60261
Problem with DirectorySearcher
Hi,
i'm trying to connect to the Active Directory and perform searches
using C# but i'm getting an error when dealing with DirectorySearcher
class. Here is a piece of code:
DirectoryEntry de = new DirectoryEntry
("LDAP://OU=MYOU,DC=MYDOMAIN,DC=local", "superuser", "password");
### This works OK
DirectorySearcher ds = new DirectorySearcher
("(&(objectCategory=person)(objectclass=user))");
### OK again
ds.searchRoot = de;
### Not OK -- retrieving "CS0122:
'System.DirectoryServices.DirectorySearcher.searchRoot' is inaccessible
due to its protection level" when compiling.
I searched in the class browser and the class DirectorySearcher is
defined as 'public' as soon as all the properties themselves (.searchRoot
included), so why this message?
Thanks in advance. Tag: Remote Setup of Security. Tag: 60260
Putting a delayed sign assembly into my PC's GAC
Hi,
I don't know where's the best place to post my question.
I hope it suits this group.
I have created an assembly with a delay sign attribute
set to true in the AssemblyInfo.cs. And the key file
attribute points to a "snk" file contains only public key.
After I compile the assembly, I set it to skip
verification by using "sn.exe -Vr" tool.
Doing so, I hoped my PC's GAC won't verify the assembly.
But, apparently as I drag the assembly from its location
to the GAC folder, there's a "install failed" error: "The
check of the signature failed for assembly 'xxxxx.dll'."
My questions are: can't I put my delayed sign assembly
into GAC? If I can, how can I do it. If not, then how am I
suppose to test the whole application with so many common
assemblies with delayed signing?
Thanks a lot,
subi Tag: Remote Setup of Security. Tag: 60259
Problem with DirectorySearcher
Hi,
i'm trying to connect to the Active Directory and perform searches
using C# but i'm getting an error when dealing with DirectorySearcher
class. Here is a piece of code:
DirectoryEntry de = new DirectoryEntry
("LDAP://OU=MYOU,DC=MYDOMAIN,DC=local", "superuser", "password");
### This works OK
DirectorySearcher ds = new DirectorySearcher
("(&(objectCategory=person)(objectclass=user))");
### OK again
ds.searchRoot = de;
### Not OK -- retrieving "CS0122:
'System.DirectoryServices.DirectorySearcher.filter' is inaccessible
due to its protection level" when compiling.
I searched in the class browser and the class DirectorySearcher is
defined as 'public' as soon as all the properties themselves (.filter
included), so why this message? Tag: Remote Setup of Security. Tag: 60258
tools to convert IL to c# code
Are there any tools and techniques available for
converting a Intermediate Language code to C# code Tag: Remote Setup of Security. Tag: 60254
EMail problems
Hi folks,
I get the following error when sending an e-mail using
System.Web namespace:
Could not access 'CDO.Message' object.
My client is using Lotus Notes. It didn't help either
after he installed Outlook. Any clues?
Cheers,
Oleg Tag: Remote Setup of Security. Tag: 60250
visual studio runtime
Hi.
Is it possible to run a DOT NET application together with
crystal report just by installing a viusal studio runtime.
Is there such a runtime available to achieve this.
Or there is no other way than to install the complete
Visual studio to achieve this.
Thanks in advance
Mirza Tag: Remote Setup of Security. Tag: 60241
Find postion a string in a large text file
Hi I have just started to look at C#, so sorry if this is
a FAQ.
I have a several large text files (100MB). I need to find
the start postion of a string in these files. The reason
is that I just want to display a specific section of the
file to the user.
The file looks someting like this
texttext texttexttext text text
texttext texttexttext text text
texttext texttexttext text text
texttext texttexttext text text
texttext texttexttext text text
texttext texttexttext text text
<START_OF_SECTION:1>
texttext texttexttext text text
texttext texttexttext text text
texttext texttexttext text text
texttext texttexttext text text
<END_OF_SECTION:1>
The file is not xml it just uses tags like this to separte
the sections. Tag: Remote Setup of Security. Tag: 60238
XmlTextWriter Problem
I have an XML tag that may contain optional child element:
i.e.
<mytag myattribute="abc">
<othertag>
...
</othertag>
</mytag>
or just
<mytag myattribute="abc"></mytag>
however, if i do
WriteStartElement("mytag");
WriteAttributeString("myattribute", "abc");
WriteEndElement(); // mytag
it would become:
<mytag myattribute="abc" />
..
can i specify it to become
<mytag myattribute="abc"></mytag>
??
as when i do
ReadStartElement("mytag")
XXXX
ReadEndElement(); // This will fail if it encounter <mytag myattribute="abc"
/ >
but remember that <mytag> may contain sub elements...
..
please help! Tag: Remote Setup of Security. Tag: 60235
Drag and Drop in List Box
Hi
In a Windows Applications, i want to drag and drag multiple items between
two Listboxes.
Is it possible to drag and drop multiple items?
If yes, how to do that?
Waiting for your reply.
thanks and regards
Karuppasamy Natarajan Tag: Remote Setup of Security. Tag: 60234
Emulating EnableVisualStyles()
This is a multi-part message in MIME format.
------=_NextPart_000_00FC_01C3980D.904F51A0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
How does one write an unmanaged function that perform this =
functionality?
In short I want to turn off/on visual style in my app...
Thanks,
Stephan
PS: two people have been looking for some time, and no solution aside =
putting the manifest
in a file, and renaming the file before startup was found... very ugly =
hack ...
------=_NextPart_000_00FC_01C3980D.904F51A0
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.1264" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>How does one write an unmanaged =
function that=20
perform this functionality?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>In short I want to turn off/on visual =
style in my=20
app...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Stephan</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>PS: two people have been looking for =
some time, and=20
no solution aside putting the manifest</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>in a file, and renaming the file before =
startup was=20
found... very ugly hack ...</FONT></DIV></BODY></HTML>
------=_NextPart_000_00FC_01C3980D.904F51A0-- Tag: Remote Setup of Security. Tag: 60232
Development Environment Setup
Hi,
We are newbies and have just gotten our servers, is there
any reference documentation available that shows us how to
setup our development environment?
Thanks Tag: Remote Setup of Security. Tag: 60227
INamingContainer separator - sometimes _ sometimes :
Hello
I've created a custom web control using the INamingContainer interface.
The custom web control has four textboxes and one button. When the button
is clicked, a new window is opened and a list is displayed. When an item
on the list is selected, the textboxes are populated and the new window
is closed.
This all works fine (using window.opener in javascript to reference the
textboxes from the new window), except that the client ID of the
textboxes changes on different pages from being mycontrol_mytextbox to
mycontrol:mytextbox (which breaks my javascript code, which is hardcoded
to put an underscore between the control name and the textbox name).
I figure I have a few approaches to solve this;
1. Find out if there is some way of knowning what separator has been
used.
or
2. Find some way to force the separator to always be one or the other.
or
3. Find a more reliable way to reference the textboxes from hte new
window.
I have to use INamingContainer because there could be more than one
control on the page and the new window has to know which control to
populate.
Thanks for your help.
Craig Tag: Remote Setup of Security. Tag: 60223
AppDomain.ExecuteAssembly: want notification when executing assembly starts
Hi all,
Does anyone know howto receive a notification (event) when the assembly loaded by AppDomain.ExecuteAssembly loads the startup method
and begins executing it?
I want to give the user a visual (hour glass, etc.) that an application is being loaded while AppDomain.ExecuteAssembly is loading
assemblies. Once it begins executing the loaded assembly I want to make the visual go away. I'm using no touch deployment of
windows forms apps that are hosted on a Win2003 Server. I have a shell launcher app that calls ExecuteAssembly on the exe assembly
at the specified URL.
I tried using AppDomain.AssemblyLoad event but it fires every time each referenced assembly in the exe is loaded and I have no way
of knowing when the assembly actually begins executing.
As it stands now every time the launcher shell is started I get an AppStarting cursor until it is running (usually only takes a
second or less) but the cursor disappears from there on until the windows form app is actually up and running. This may take much
longer than a second or two because of network delays and assembly sizes. End result is the user thinks that nothing is happening
and tries to start the launcher shell again.
Thanks for any help.
Sincerely,
Gregg Walker Tag: Remote Setup of Security. Tag: 60220
Multithreaded vs Multithreaded DLL
In Project settins - C/C++ - Code Generation,
what is the difference between the option
"Multithreaded" and "Multithreaded DLL".
I understand that on selecting multithreaded option,
single and multithreaded applications can both use that
dll, but what about multithreaded DLL option.
Thanks Tag: Remote Setup of Security. Tag: 60216
[Help] Confusion about a NameSpace Name resolution issue...
I ran into something that I consider a little strange this weekend and I was
wondering if any of the Gurus out there could explain it to me. Here is a
sample piece of code that will not compile because of line 11.
1: using System;
2:
3: namespace eyecatcher.System
4: {
5: class CommandLineParser
6: {
7: private string m_sCmdLine;
8:
9: public CommandLineParser()
10: {
11: Parse(System.Environment.CommandLine); <-- Error occurs
here.
12: }
13:
14: public CommandLineParser(string sCmd)
15: {
16: Parse(sCmd);
17: }
18:
19: private void Parse(string sCmd)
20: {
21: m_sCmdLine = sCmd;
22: }
23: }
24: }
However if I change line 11 to look like this:
Parse(Environment.CommandLine);
Everything works.
I spent a large portion of this weekend looking through the language specs
and I could find no reason as to why my code failed. As a matter of fact,
it seemed more likely (according to the documentation) that my fix should
actually be causing an error and my original code should be correct.
Anyways, if anyone has any helpful insights I would greatly appreciate it.
Thanks
Shawn Anderson Tag: Remote Setup of Security. Tag: 60215
Cache class
Hello,
The Cache class is found in System.Web.Caching namespace. Does that mean it
can be used only in ASP.NET application? What about in a client/server
situation? Maybe I would like to cache data on the server app. Is there a
caching mechanism provided by the framework for that purpose? Or should I
just use the same Cache class from System.Web.Caching? I suppose this should
work, but I haven't tried it.
Thanks. Tag: Remote Setup of Security. Tag: 60214
Duplex Printing using the PrintDocument class
Hi,
I've been trying for quite some time to get duplex
printing working with .Net Framework 1.0 (I haven't tested
with 1.1 yet). As far as I can tell, I'm correctly
setting the PrinterSettings of the PrintDocument. I've
also tried setting the
PrintDocument.DefaultPageSettings.PrinterSettings.
The network printer I'm using supports duplexing, and I've
successfully constructed a simple MFC app that duplexes
correctly.
Does anyone have any ideas, or know of any issues I should
be aware of?
Thanks,
Anthony Tag: Remote Setup of Security. Tag: 60213
SQLConnection.Open error from UI Process Application Block
I am attempting to run the sample WebUI code out of the box from Microsoft's
User Interface Process Application Block (I succesfully ran the QuickStarts
script so the database, user, and PW are there).
It is failing on the SqlConnection.Open();
"The specified module could not be found"
The method is from SQLHelper.cs and is as follows:
public static SqlDataReader ExecuteReader(string connectionString,
CommandType commandType, string commandText, params SqlParameter[]
commandParameters)
{
//create & open a SqlConnection
SqlConnection cn = new SqlConnection(connectionString);
cn.Open();
try
{
//call the private overload that takes an internally owned connection in
place of the connection string
return ExecuteReader(cn, null, commandType, commandText,
commandParameters,SqlConnectionOwnership.Internal);
}
catch
{
//if we fail to return the SqlDatReader, we need to close the connection
ourselves
cn.Close();
throw;
}
}
The error is thrown on cd.Open();.
The web.config file has the following for the connectin string:
<appParams>
<add key="ConnectionString"
value="server=localhost;database=UIPStore;uid=UIP;password=U1Pr0c3ss" />
</appParams>
Anyone have any thoughts on this rather ambigous error message? Tag: Remote Setup of Security. Tag: 60210
Object Oriented and COM+
I have some doubts about object oriented development using
COM+.
To use COM+ my classes must inherits from
System.EnterpriseServices.ServicedComponent. With C# a
class can inherit only from one class. This means that I
can't have these classes:
public class Order
{
public virtual void Create()
{
// insert a record in orders table
}
}
public class SpecialOrder : Order
{
public void Create()
{
// create a order
base.Create();
// Process the special order by example
// approve the order. Insert another table.
this.Approve();
}
}
Any suggestions?
I think in use ADO.Net transactions but with this solution
I don't need COM+ for anything.
Thanks in advanced,
Paulo Monteiro Tag: Remote Setup of Security. Tag: 60206
Passive FTP
I know this is not really the right forum for this topic, but I figured
there are a lot of people here who may be able to provide me with an answer
to my question so I would give it a try.
About a year ago I wrote an FTP client in C#. It supported only 'Active'
mode as that was my requirement at the time; however I now need to support
'Passive' mode.
From what I can see, this simply means that you ask the server for the
details of the port to which the data connection should be made by using the
PASV command and then open an outbound connection to the server on the port
specified to transfer data across. Nothing else changes.
I have done this, and to a certain extent it works. I issue the PASV
command, open a connection to the port specified by the server and send the
data. I then close the connection. At this point, I get a 426 error,
Connection Closed, transfer aborted.
I figure I am missing something but cannot fathom what it is. Should I be
sending any additional messages to the server to indicate that the transfer
is complete?
Any help will be gratefully accepted.
Thanks. Tag: Remote Setup of Security. Tag: 60202
Send a DataTable to Oracle DataBase
Please, i need to transfert a block of data contain in a table from .NET Framework to Oracle database.
my table contain a set of row. i need to send rows altogether once.
is it possible?
tank.
**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources... Tag: Remote Setup of Security. Tag: 60199
Custom data import to SQL via web form
Hi guys,
Here's a problem:
My customer needs a way to import small Excel/Access-files of data into
their SQL Server. The data files all contains the same type of data; email
address, first name, last name and such basic contact information.
Now, if the data files to import would have the same field names as the ones
in the SQL Server database, this would not be a problem. But now they
differs. One file may have Swedish field names and another may have English.
How should I let the user decide which source field to be matched with the
destination?
I have the following:
I created a repeater that lists all available field names from the source
data file in the left column. The right column contains a dropdownlist of
all available destination field names for each source field. But how should
I then know what the user chose??
dt = ....
rptSourceFields.DataSource = dt.Columns
rptSourceFields.DataBind()
....
<asp:Repeater ID="rptSourceFields" runat="server">
<itemtemplate>
<tr>
<td width="70"><%# Container.DataItem.ColumnName %></td>
<td width="15">»</td>
<td><asp:dropdownlist AutoPostBack="false" ID="mnuDestinationFields"
runat="server" /></td>
</tr>
</itemtemplate>
</asp:Repeater>
How should I do this? Am I doing it all wrong?
Thanks for any kind of help!
Best regards,
Jonah Olsson Tag: Remote Setup of Security. Tag: 60197
Timers stop working?
I _think_ there was a thread not too long ago on this, but my timers seem to
stop working after a while. A Windows service using System.Timers.Timer. I
have two timers, after anywhere from a few hours to about 3 days one of them
stops working.
Was that thread here? Was there any info?
Thanks,
Mike Tag: Remote Setup of Security. Tag: 60190
How to add an assembly reference using CodeDOM?
This code (adapted from the examples in the docs) doesn't make complete
sense to me. I have it working, but I'm wondering why I need to declare an
assembly reference in 2 places. TIA.
Dave
CodeCompileUnit compileUnit = new CodeCompileUnit();
CodeNamespace myNamespace = new CodeNamespace("MyNamespace");
compileUnit.Namespaces.Add( myNamespace );
compileUnit.ReferencedAssemblies.Add(@"MyDLL.dll");//I declare an assembly
reference here first
myNamespace.Imports.Add( new CodeNamespaceImport("System") );
myNamespace.Imports.Add( new CodeNamespaceImport("MyOtherNamespace") );
[...]
ICodeCompiler compiler = provider.CreateCompiler();
CompilerParameters cp = new CompilerParameters(
new string[] {"System.dll",
"MyDLL.dll" //Now I still have to declare the assembly reference here too.
Why?
},
filepath.Substring(0, filepath.LastIndexOf(".") + 1)+"dll", false); Tag: Remote Setup of Security. Tag: 60178
Trace Listener Issues - Am I missing something
Hello,
I'm trying to do something straightforward - trying to
implement trace listeners to pepper my code with traces
triggered by trace switches. I get two problems:
1. The trace.write statements never get written to the
stream (file), it stays 0 bytes. Interestingly,
debug.write statements work.
2. If I use Trace.WriteLine I get a compile error
(intellsense too does not show the method!).
I tried to #define a trace constant at the top of my file,
no effect. Here's my code, any help appreciated...
config file:
<configuration>
<system.diagnostics>
<switches>
<add name="ATraceSwitch"
value="4" />
</switches>
</system.diagnostics>
<system.web>
public class WebForm1 : System.Web.UI.Page
{
static TraceSwitch traceSwitch = new
TraceSwitch("ATraceSwitch", "Demo trace switch");
protected System.Web.UI.WebControls.Label
Label1;
private void Page_Load(object sender,
System.EventArgs e)
{
System.IO.FileStream myTraceLog =
new
System.IO.FileStream
(@"C:\myTraceLog.txt",
System.IO.FileMode.OpenOrCreate);
// Creates the new trace listener.
System.Diagnostics.TextWriterTraceListener
myListener =
new
System.Diagnostics.TextWriterTraceListener(myTraceLog);
System.Diagnostics.Trace.Listeners.Add(myListener);
// traceSwitch.Level =
TraceLevel.Info;
if (traceSwitch.TraceVerbose)
{
Response.Write("verbose");
//Debug.WriteLine("debug
verbose message");
Trace.Write
("traceSwitch.TraceInfo is verbose nabled");
}
if (traceSwitch.TraceInfo)
{
Response.Write("info");
Trace.Write
("traceSwitch.TraceError is info enabled");
}
myListener.Flush();
myTraceLog.Close();
} Tag: Remote Setup of Security. Tag: 60176
Framework 1.0 and 1.1 side By Side
I am having problems calling a dll that was compiled in
framework 1.0 from a service compiled in 1.0.
MSDN Help states:
The application configuration file is an .xml file located
in the same directory as the application executable (.exe)
file. The configuration file name must be the same as
the .exe file name with ".config" appended to the end. For
example, the application MyApp.exe would have a
configuration file named MyApp.exe.config. Note that the
configuration file can contain settings that affect other
aspects of the application's behavior beside what version
of the Framework it should run on.
Can this process also be used for DLL's called from a
service application ie: can the service call a dll
irrespective of the version that it or the DLL were built
in?
The simple answer is to rebuild the dlls so they are
compatable with the service application, but unfortunately
this is not viable in this situation. Tag: Remote Setup of Security. Tag: 60169
.Net Runtime Error in EventLog
Hello,
I have the following event in my event log,
Event Type: Error
Event Source: .NET Runtime
Event Category: None
Description:
.NET Runtime version 1.1.4322.573- Setup Error: Failed to load resources
from resource file Please check your Setup.
Does any one know the root cause of this, or what it means...
Is this a runtime install problem or an application install problem?
I have seen other posts about this message, but now answers...
MWardell Tag: Remote Setup of Security. Tag: 60168
Complier could not be created
Hi there,
- I updated my windows XP professional with all critical updates available at windowsupdate.com
- I updated Microsoft .NET Framework 1.1.4322 from thier also
- I installed Visual Basic 6 Enterprise Edition
- Then I also installed Visual Basic .NET 2003 Professional Edition
- I created a new project in Visual Basic 6 successfully
- Here is the problem: I failed to create a new Visual Basic project in Visual Basic .NET 2002 I got the following error:
Project 'WindowsApplication1' could not be opened because the Microsoft Visual Basic .NET complier could not be created. Cannot find .NET Framework directory: System Error &H80131700&
Although Microsoft .NET Framework directory exists at C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 and I can see it in the add/remove programs
I ran the windows update again and it couldn't find an update to the version of Framework I installed from them!
I tried one more time to create another project and it gave me the following error:
Project 'WindowsApplication2' could not be opened because the Microsoft Visual Basic .NET complier could not be created. Please re-install Visual Studio.
By the way:
- The 5th CD of Visual Basic .NET 2003 Professional Edition installation is all about windows componenets update and it has Microsoft .NET Framework 1.0.3705.0
- I skipped updating this component since I have the newer version!
- I hate the option of re-installation since it took me a decade to finish the installation ;)
Please guide me guys to make my VB .NET 2002 works with less effort.
Thanx in advance guys ;) Tag: Remote Setup of Security. Tag: 60165
Memory Leak with Service?
I have created a couple of Windows Services with VB dotNet
and I am seeing the memory usage grow on them. I have
looked real hard at my code but nothing really sticks out.
I downloaded the trial version of AQTime and ran the
services in there and again, nothing is sticking out.
Are there any known memory issues with 2003 dotNet with
building services?
The services are built in an OO model. Within the context
of a timer, get DB connection from connection manager
object (Shared functions), Retrieve a dataview, for each
row in the dataview: pull xml document from web, process
the xml document into new dataviews (4 to be exact) and
save to db.
after all rows are processed, close all DB connections and
re-enable timer.
I am seeing the memory consumption grow but I have
disposed everything I can dispose of. Are there any known
issues with what I am trying to do? or does anyone have
any suggestions on what to try?
TIA
Jon Credit Tag: Remote Setup of Security. Tag: 60163
ArrayList.Add unclear on error handling
Hi,
ArrayList.Add(...) method doesnt indicate what value we can check for
error.
NotSupportedException is the only exception but thats for ReadOnly or
FixedSize lists. Will the return value be negative? The documentation is
unclear in MSDN on this.
If .Add() fails, would it return -1? If its variable size Im sure Ill get
an OutOfMemoryException before but there isnt a specific error for .Add
failure
Fanks. Tag: Remote Setup of Security. Tag: 60155
Chr()
I am wondering where I could find a table of the byteCodes
for Chr. I get all confused with ASCII, ANSI and UTF, so I
was wondering if there was a resource that cleared this
all up. Specifically, I wanted to know the max int I could
use with Chr. Or in other words, how many characters can
Chr access. I work in VB.Net Tag: Remote Setup of Security. Tag: 60151
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 ?