Form Focus Problem
I have an application which loads a main form which contains text boxes and
other details. This main form has a menu which opens another form. I want to
have both forms accessible (i.e. I don't want the second form to be modal).
However, I *do* want users to keep working in the second window and only
switch to the main window when they need to. Unfortunately, after performing
one or two functions (I'm writing in C# in the .NET Framework -- 2003) in
the second window, the FIRST WINDOW grabs the focus... and I can't find a
way of forcing the second window to KEEP THE FOCUS!!!!
Please help. Tag: Connecting stored procedure in .net crystal Reports Tag: 89683
deploying configured assemblies
I was able to use mscorcfg to create a policy that enables my app to use
version 1.5.0.0 instead of 1.4.0.0 without difficulty. How do I deploy this
change to other machines? Inside of mscorcfg you can easily create an MSI
for the runtime security policy, but I don't see an equivalent for the
"Configured Assemblies" section.
Any Ideas?
Mike Tag: Connecting stored procedure in .net crystal Reports Tag: 89677
Shell command not working from a DLL called from a windows service
I have a .NET DLL that has a shell command that maps a network drive.
When I call this dll from a windows program, it works great. When I
call the same dll from a windows service, the shell command does not
execute. It doesn't produce an exception.
Anyone seen anything like this before?
Thanks,
Jeff Tag: Connecting stored procedure in .net crystal Reports Tag: 89675
Custom Designer: CodeDom of a collection
I am building a complete custom designer, but have run into a major snag.
My primary document class contains a collection property. No matter how hard
I try, I can not get the CodeDom engine to create the Add or AddRange
statements to add elements to that collection property. When a toolbox item
is invoked, I notify the component change service about collections changing
and changed events as well as actually perform the Add to the collection, but
no Add or AddRange lines ever appear in the generated code. The property is
correctly marked as content visible for designer serialization.
What did I overlook?
Thanks a lot,
Brandon Bloom Tag: Connecting stored procedure in .net crystal Reports Tag: 89674
How to determine Logged On Users from a VB .NET Service
I wrote a VB .NET Service to restart the computer when certain business rules
are triggered (such as not being rebooted in x days, no users logged on, time
is 1-3 am, etc.).
I am currently using a sloppy technique of checking the Registry to
determine if and who is logged on.
I would like to use a Microsoft sanctioned best-practice method of
determining if anyone is logged on (and their Username and all Process Names
that the User is running, etc.) from the Service. It will run on XP Pro, but
eventually Server 2003, etc.
I think I should be using the WindowStation and Desktop related API calls,
but cannot find good documentation on how to do it from Visual Basic .NET and
the proper sequence. I need some code snippets for something like,
EnumDesktops(), OpenWindowStation(), etc.
Any help from Microsoft ? (or anyone else that has done this).
--
To email me, remove the ABCDEFG. Tag: Connecting stored procedure in .net crystal Reports Tag: 89672
Enterprise Instrumentation config file problem
Hello,
We are running into a problem I was wondering if anyone has seen
before.
We are using EIF for some of our com+ and web services and so have
the config files that need to be updated with information about each
component.
We use a internal build and move process to get our code built and
then moved to our com+ servers. I modified our internal move process
to update these config files at the time the component or web service
is being moved.
The problem is that we are getting this error during our testing:
The process cannot access the file
"WebServices.EnterpriseInstrumentation.config" because it is being used
by another process.
What I think is going on is that at the time the move process is trying
to put the new config entries into the config file, another component
is trying to use the config file for it's trace logging and thus
failing.
I have tried to find information on this out on Microsoft's site to see
if this is an issue but have had no luck. I'm wondering if others have
run into similiar issues that could give me some input? Tag: Connecting stored procedure in .net crystal Reports Tag: 89669
Enterprise Instrumentation config file problem
Hello,
We are running into a problem I was wondering if anyone has seen
before.
We are using EIF for some of our com+ and web services and so have
the config files that need to be updated with information about each
component.
We use a internal build and move process to get our code built and
then moved to our com+ servers. I modified our internal move process
to update these config files at the time the component or web service
is being moved.
The problem is that we are getting this error during our testing:
The process cannot access the file
"WebServices.EnterpriseInstrumentation.config" because it is being used
by another process.
What I think is going on is that at the time the move process is trying
to put the new config entries into the config file, another component
is trying to use the config file for it's trace logging and thus
failing.
I have tried to find information on this out on Microsoft's site to see
if this is an issue but have had no luck. I'm wondering if others have
run into similiar issues that could give me some input? Tag: Connecting stored procedure in .net crystal Reports Tag: 89668
AutoDeploy related issue using .NET
Hello,
We are providing an autodeploy that downloads a .NET application via
Internet Explorer. As part of the setup we need to add some keys to the
registry and copy an extetion dll into \windows\system32 directory.
Specifically to use the mapi (that use the outlook functionality) dlls from
the .NET application.
I know due to security reasons these are prevented.
I'm looking for possible solutions to handle this smoothly as we are trying
to integrate our application with outlook.
Thanks in advance...
with regards,
-FRSTAS
-Frstas Tag: Connecting stored procedure in .net crystal Reports Tag: 89666
Manually creating a .sln file
Hi,
Due to a project I am working in, I need to generate a solution file
automatically that includes one C# project. I have taken the format for that
.sln file from existing solution files created by VS.NET 2003. I only
generate two new GUIDs. This is the template that I use:
-----------------------
Microsoft Visual Studio Solution File, Format Version 8.00
Project("CS_GP_PackageGUID") = "CS_GP_OriginalProjName",
"CS_GP_OriginalProjName.csproj", "CS_GP_ProjectGUID"
ProjectSection(ProjectDependencies) = postProject
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfiguration) = preSolution
Debug = Debug
Release = Release
EndGlobalSection
GlobalSection(ProjectConfiguration) = postSolution
CS_GP_ProjectGUID.Debug.ActiveCfg = Debug|.NET
CS_GP_ProjectGUID.Debug.Build.0 = Debug|.NET
CS_GP_ProjectGUID.Release.ActiveCfg = Release|.NET
CS_GP_ProjectGUID.Release.Build.0 = Release|.NET
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
EndGlobalSection
GlobalSection(ExtensibilityAddIns) = postSolution
EndGlobalSection
EndGlobal
---------
I replace CS_GP_PackageGUID with a generated GUID and CS_GP_ProjectGUID with
another. The first GUID is for the solution and the second for the project.
When I try to open the .sln file with VS.NET, I get a message "The
application for project '...' is not installed. Make sure the application for
the project type (.csproj) is installed".
And the only way to incorporate the project in the solution is to open it
with VS.NET and remove it and reload it. This changes the first GUID
(CS_GP_PackageGUID). After that the project is incorportated correctly into
the solution.
It seems to me that the GUID needs to be generated by the solution.
But, there should be a way to force it to accept a GUID provided by me or to
somehow figure out what is so special about the GUID generated by VS.NET.
Please help!
Juan Dent
--
Thanks in advance,
Juan Dent, M.Sc. Tag: Connecting stored procedure in .net crystal Reports Tag: 89660
System.Net.WebException: The underlying connection was closed: The server committed an HTTP protocol violation
I have the following code:
Dim data As New System.Collections.Specialized.NameValueCollection
data.Add("SWEExtSource", "XXXProductHttp")
data.Add("SWEExtCmd", "Execute")
data.Add("UserName", "uname")
data.Add("Password", "password")
Dim wc As New System.Net.WebClient
Dim responseArray As Byte()
Dim serverURL As String = "http://myserver/eai_enu/start.swe"
responseArray = wc.UploadValues(serverURL, "POST", data)
results = System.Text.Encoding.ASCII.GetString(responseArray)
It works great on most of our servers, but on one of them I get the
following error:
System.Net.WebException: The underlying connection was closed: The
server committed an HTTP protocol violation.
The ironic thing is that the data actually posts to the server, so it's
the return message that is causing the error. This is a windows
service.
Anyone run into this?
Thanks,
Jeff Tag: Connecting stored procedure in .net crystal Reports Tag: 89656
UNC to file URI and vice versa
Surely there must be some .NET functionality which converts between the UNC
file format, including the Windows local file format, and the file URI (
file://etc. ) format, and vice versa. But no matter how hard I look I can
not find it. Does anyone know where this might be ? Tag: Connecting stored procedure in .net crystal Reports Tag: 89655
LinkDemand Error
Hello,
I have a class that implements the interface IMessageFilter. When I run
FxCop on this class the following error appears:
The virtual method IMessageFilter.PreFilterMessage(Message&):Boolean
defined by type 'System.Windows.Forms. IMessageFilter' and its override
MessageFilter.PreFilterMessage(Message&):Boolean do not have the same
LinkDemand status. Add a LinkDemand where required.
I have placed the folloing code:
[CustomPermissionAttribute(SecurityAction.LinkDemand)] but still have
the same error. I tried with the
[CustomPermissionAttribute(SecurityAction.LinkDemand),
Unrestricted=true] and also with Unrestricted=false but nothing, same
error.
Can someone tell me what I do wrong.
Thank you. Tag: Connecting stored procedure in .net crystal Reports Tag: 89651
Slow performance with garbage collection
Just wondering if someone can help me with a problem with garbage collection
that I seem to have:
I have a client/server system where the clients are experiencing quite long
delays because of bad performance on the server. The server uses Windows
Server 2003 with the .NET v1.1 Service Pack 1 update. I have used the
Performance utility on the server during these bad performance periods and
have noticed that there is a lot of time spent in the garbage collection.
Does anyone know why this might be?
***
More detail:
The nature of our system involves a lot of large objects (85KB+) being used
and the large object heap size reflects this. There also seems to be a lot
of garbage collection happening in the large object heap which I feel maybe
our problem. If the average size of one of our objects is larger than the
Generation 2 threshold (which it could easily be if the threshold is around
10MB) then as soon as our object is on the heap then it will result in a
garbage collection. This means that everytime one of our large objects goes
on the heap, there is a corresponding garbage collection (this is just guess
work though)...that would make an awful lot of garbage collections going on.
I have read up about the issue with mscorwks.dll being used for garbage
collection on a multiprocessor server. Typing in "tasklist /m mscorwks.dll"
brings a list of our applications running under this DLL.
The server I have is dual proccesor, thus I installed the .NET v1.1. SP1 to
update the config settings so mscorsvr.dll would be used instead and enable
the multiprocessor garbage collection. This has not made any noticeable
difference with performance. However, typing in the above command still
indicated our applications were running under the mscorwks.dll.
I have also tried the gcConcurrent setting as well and this has not made any
difference either.
***
It would be much appreciated if anyone can help with this problem?
Thanks
Milan Tag: Connecting stored procedure in .net crystal Reports Tag: 89648
Update from VS.NET 2002 to VS.NET 2003
Hello,
Is there anyway one can obtain the upgrade CD from VS.NET 2002 to VS.NET
2003. I bought the Visual Studio Enterprise Architect 2002 when it came out
and missed out on the opportunity to buy an update to VS.NET 2003 when it
was being offered on the Microsoft Web Site. Where can I find the update
now?
Any help would be appreciated.
I want to use the .NET Framework 1.1 and above for my development and would
also like to develop apps for PPC2003 but cannot do either with VS.NET 2002.
-----------------------------------------
Hallo,
Ich möchte gerne das Update für VS.NET 2002 auf VS.NET 2003. Wo finde ich
das?
Ich möchte Apps für PPC2003 entwickeln und auch unter .NET Framework 1.1
aber leider ist es mit VS.NET 2002 nicht möglich.
Bitte um mehr Info.
--
Danke & Regards,
Sami
[Remove Numbers from e-mail address to use it] Tag: Connecting stored procedure in .net crystal Reports Tag: 89638
An unhandled exception of type 'System.ArithmeticException'
An unhandled exception of type 'System.ArithmeticException' occurred in
system.drawing.dll
Additional information: Overflow or underflow in the arithmetic operation.
ex of line lines where it happens (diff projects for each one):
-Me.TextBox1 = New System.Windows.Forms.TextBox()
-Me.tbeepn = New System.Windows.Forms.TextBox()
-Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.ProgressBar1})
*and yes, the 1st line of code on a blank form! -Public Class Form1
This is the error i keep on receiving whenever i try and run an app in
VB.NET.
Even i place a single button on the form and on running it through this
exception.
To remove this i have reinstall visual.NET even have reinstall the windows XP.
I used visual studio .NET 2003 enterprize edition. Tag: Connecting stored procedure in .net crystal Reports Tag: 89636
Deserialize an unknown class to show it in a property grid.
Hi group
I read XML data which i sometime can't know their type. But i have to show
the property in a property grid.
for example i get the following xml :
<UnknownClass><Prop1>value1</Prop1><Prop2>value2</Prop2><Prop3>value3</Prop3
></UnknownClass>
I can't have the declaration of UnknownClass, so i can't cast it in a known
type at the deserialization time. So i can't create an instance of the
object and can't show its properties.
But i am quite sure it is possible to create some object using the XML
definition, and dynamically re-create a basic structure that match the
properties, in order to juste show it in the property grid. but how can i do
that or workaroud it ?
i have googled for that and can't find any sample to deserialize unknown
data.
Please help.
ROM Tag: Connecting stored procedure in .net crystal Reports Tag: 89635
threading
Very simple question. I need to pass a parameter to a newly created thread.
How can I accomplish it. I'm sure it must be very easy - something like it
was in Win32 CreateThread had 1 4B parameter. Tag: Connecting stored procedure in .net crystal Reports Tag: 89628
List enumeration exception under weird circumstances.
Hi,
I hv foll. code:
foreach(object obj in myChkedlistbox.CheckedItems)
{
Messagebox.show(obj.tostring());
}
It gives me the foll exception:
"The list that this enumerator is bound to has been modified. An enumerator
can only be used if the list does not change."
I dont see where am I changing contents of myChkedlistbox list. What is
more surprising, at the same time the foll. (similar) code just works fine.
for (int i=0; i< dynColumns.CheckedItems.Count;i++)
{
object itemChecked = dynColumns.CheckedItems[i];
MessageBox.Show(itemChecked.ToString());
}
One more confusing thing is that the exception doesnt come on each run.
Once in a while the exception pops up and then after that its v.consistent
to the point that I reduce my code to:
foreach(object obj in myChkedlistbox.CheckedItems)
{} //Yes empty loop.
& still throws the exception..whoa !!
However If I do a clean-rebuild it goes away and just works :-? until some
mysterios next time when it decides to revisit again. Tag: Connecting stored procedure in .net crystal Reports Tag: 89626
URGENT: Why the impersonation work in one case and not the other?
I have two computers, client and server. The client is running Windows 2000
Professional and is in a workgroup, say "MyWorkgroup". The server is running
Windows Server 2003 Standard Edition and is in a domain, say "MyDomain".
What I need is to logon to the client as some generic local administrator
user and then access resources (e.g. share folder, SQL Server using Windows
Authentication, etc.) on the server.
Here is what I did:
I create another local administrator user (user A) with on the client with
the same username and password as a domain user (user B) on the server. I
then access resources on the server by first logging on to the client as the
generic administrator user and then impersonating to user A and use user A's
credentials to access the server. I have two sets of such systems in two
environments. This works fine in one environment, but not the other. In the
environment that works fine, when accessing the server, user A is
automatically viewed as the domain user B. In the environment that fails,
user A is not recognized as a domain user on the server, i.e. it's not
automatically mapped to user B.
There're only 2 differences between the two environments:
Environemnt 1: Server is domain controller. There's no firewall between the
server and the client.
Environment 2: Server is a member server of a domain, the domain controller
is another computer residing somewhere else. There's a firewall between the
server and the client.
I don't think the problem is with the firewall, because I can get to the
server from the client successfully (I can ping), and I also did see the
logon request coming over to the server from the client. It's just that the
logon request fails (in environemnt) 2 because the client user (user A) is
not mapped to the domain user (user B). In the EventViewer (I have auditing
on), it reports logon failure because user doesn't exist (error code
0xC0000064).
Any idea on why it fails in environemnt 2? Also any idea on how to tell the
Windows server to look for the username in the server's domain rather than
just looking for it in the local user list on the server? That username is a
domain user on the server, not a local user.
Thank you very much. Tag: Connecting stored procedure in .net crystal Reports Tag: 89624
How to impersonate a remote domain user
Basically I have two computers, client and server. The client is running
Windows 2000 Professional and is in a workgroup, say "MyWorkgroup". The
server is running Windows Server 2003 Standard Edition and is in a domain,
say "MyDomain". From the client, I logon as a local user with administrator
privileges, and I then want to impersonate a domain user on the server to
access resources on the server. How can I do this? Tag: Connecting stored procedure in .net crystal Reports Tag: 89621
.NET equivalent to Java History.Back()
I have a System.Web.UI.WebControls.Button on a Web Form using VB .NET (lang.
no matter here). In the Click event (e.g. Button1_Click) I do various
things (db updates, etc.) and after all is done I want to go the user's
previous URL (just like history.back(-1)). Specifically, I want the code
that accomplishes the "back" to actually be part (at the end) of the
Button1_Click subroutine. Is this possible? Does this make sense? Tag: Connecting stored procedure in .net crystal Reports Tag: 89612
.NET equivalent to Java History.Back()
I have a System.Web.UI.WebControls.Button on a Web Form. In the Click event
(e.g. Button1_Click) I do various things (db updates, etc.) and after all is
done I want to go the user's previous URL (just like history.back(-1)).
Specifically, I want to code this "back" right in the Button1_Click
subroutine. Is this possible? Does this make sense? Tag: Connecting stored procedure in .net crystal Reports Tag: 89611
Information about the class that created a thread
Hi,
Is it possible to get the class/object name that invoked a thread, from
another process. From one process I could get another processes thread
information, but how do I get the method that created it.
Thx,
Johann Tag: Connecting stored procedure in .net crystal Reports Tag: 89610
Dynamic Assembly
Hello,
I have Assembly (A) which dynamically loads Asembly (B). Both Assemblies are
located in A's bin dir.
If I query, AppDomain.CurrentDomain.GetAssemblies
Returns an unloaded/unreferenced assembly (B) why? Assembly A does not
refernce any types in B. Is there a way to prevent this assembly from loading
on startup? Tag: Connecting stored procedure in .net crystal Reports Tag: 89608
Switch Statement in CodeDom
Any has a piece of code or give me any pointers on how to generate a switch
statement in c#, would be great. Right now I use a lot of
CodeSnippetStatements to generate my code. But was curious if there is any
other better way of doing it. Tag: Connecting stored procedure in .net crystal Reports Tag: 89601
.NET Framework 1.1
I have a client which was 98 and could not install .NEt. He has upgraded to
XP Home and still cannot install .NET 1.1.
We removed the registry entries and the directory structure and renamed the
file mscoree.dll in system folder and still no luck. All I could find on the
errors we were getting was to rename the file. But we still cannot load .Net
1.1.
We have turned off the anti-virus also with no luck. can anyone help with this
I need a way to install .Net to a XP Home client and nothing is working.
Any help would be very much appreciated.
Dave Tag: Connecting stored procedure in .net crystal Reports Tag: 89600
writing own SoapClient object
I need to create a C# dynamic soap client in a hurry. I am going to be
using it in a web page, using javascript to access it.
I was using webservice.htc for this, but dew to some live configuration
issues (Big ip, https) my boss has come to believe it is not reliable.
What I am having a little trouble with is the dynamic soap call itself.
I have only manage to read about the "WSDLReader" and I am already
confused, and time is running out.
Does anyone know of any samples on the web to make a dynamic soap call?
A method that accepts a web address, method, and parameters would be
perfect.
For helping me I will erect a giant bunny statue in your name a
sacrifice 3 carets upon it's alter. Tag: Connecting stored procedure in .net crystal Reports Tag: 89599
Embedded Control in IE Visual Styles not working.
Hello,
I have an embedded control in IE that works however, I cannot seem to
get XP style support. As a standalone app, the control contains the XP
style motif. I do the Application.EnableVisualStyles() &
Application.DoEvents() call in the code for that to work. The problem
happens when I run the control in an object tag in IE. I have tried
several things but they don't work such as embedding a manifest file
that enables xp style support as a manifest file. The only way it works
is if I put a manifest file where iexplore.exe resides. Even though
that works and my application has XP style support, it is not what i
want for my application. Is there any other way to enable XP style
support on an embedded component in IE?
Thanks,
Marco Tag: Connecting stored procedure in .net crystal Reports Tag: 89595
build / design time errors?
Hi,
Is there any way to control the raising of "build" errors? For example -
is there any possible way of, for example, raising a build error if the
object user tries to call method(x) before having set property y ?
Thanks Tag: Connecting stored procedure in .net crystal Reports Tag: 89591
Why should I install the .NET Framework v1.0 SP3
Why should I install the .NET Framework v1.0 SP3 if v1.1 SP1 is allready
present? Tag: Connecting stored procedure in .net crystal Reports Tag: 89590
HELP: Accesing a remote object using a PropertyGrid.
Hi everyone,
I'm trying to use the PropertyGrid with a remote object (MarshallByRef).
However, because several system types are not serializable (like
System.ComponentModel.AttributeCollection), the application throws an
exception. Is there ANY workarround for this??
I would appreciate any help on this subject,
Thanks in advance,
Hugo Ferreira Tag: Connecting stored procedure in .net crystal Reports Tag: 89587
XPath query with namespace scope
i got a xml file which is using a namespace declaration with no prefix, as
you can see here
----
<?xml version="1.0" encoding="utf-8"?>
<configuration
xmlns="http://www.microsoft.com/schema/EnterpriseInstrumentation/v1/EnterpriseInstrumentation.xsd">
<instrumentedApp name="SimpleInstrumentation" mode="released" />
----
when i use the following xpath expression
"/configuration/instrumentedApp/@name"
in order to get the atributte named "name" of the element named
"instrumentedApp", using the following code
----
XmlReader objXmlReader = new XmlTextReader(objFileStream);
System.Xml.XPath.XPathDocument objXPathDocument = new
XPathDocument(objXmlReader);
System.Xml.XPath.XPathNavigator objXPathNavigator =
objXPathDocument.CreateNavigator();
string result = string.Empty;
XPathNodeIterator objXPathNodeIterator =
objXPathNavigator.Select("/configuration/instrumentedApp/@name");
if (objXPathNodeIterator.MoveNext())
result = objXPathNodeIterator.Current.Value.Trim();
----
it simple does not work, because i have to indicate the namespace scope of
the element.
¿how can i do that? Tag: Connecting stored procedure in .net crystal Reports Tag: 89586
Manually Firing off Timer.ElapsedEvent
Hello,
I've got timers launching every 3 minutes to run a
somewhat lengthy process etc... and that all works fine.
What I'd like is to have the timer fire immediately after
starting then at <X> intervals.
With System.Timers.Timer, is there a way I can manually
fire off the event. Or will I just have to manually create
a thread and fire the event the first time?
Seems like its pretty common behavior to want a timer to
fire once started then fire at x intervals.
Thanks in advance
Weston Weems Tag: Connecting stored procedure in .net crystal Reports Tag: 89584
Securing DLLs, Running App and AppDomain
Hi:
I want to create a DLL that only can be used from applications signed with
my strong key file.
I have checked the StrongNameIdentityPermissionAttribute but it does not
work for me. So I did the next logic: When someone access the code in the
DLL, the class contained check the running application friendly name, find
the application executable, obtain its public key token and compare it with
the self public key token, if it is the same continue with the execution.
But the problem is i found applications can change its friendly name... how
can I be sure the application.exe that is running?
Or there is another way to secure who uses my dll file? Tag: Connecting stored procedure in .net crystal Reports Tag: 89583
windows serive message loop needed ?
hi all,
im kind of designin a windows service to handle TAPI calls and when the
service starts it created a TAPI class instance and aquire event callbacks
from TAPI, my question is if the old message loop and execte() stuff is
needed or not ? Tag: Connecting stored procedure in .net crystal Reports Tag: 89580
Message Loops and Application.Run()
My code creates a new thread and in that thread I
call System.Windows.Forms.Application.Run() to start
an application message loop. ( I also have a message
filter added on that thread to handle incoming messages.)
Now, how do I actually send messages to the
message loop since there's no window defined on that thread?
There must be a way since the MSDN doc for Application.Run()
states: "Begins running a standard application message loop on the current
thread, without a form." I looked at the System.Messaging namespace
but I'm not even sure if MSMQ is the same thing as an Application
Message loop.
Any help appreciated.
Thanks!
Steve Tag: Connecting stored procedure in .net crystal Reports Tag: 89574
how to solve prblem
how to solve this problem:
http://support.microsoft.com/default.aspx?scid=kb;en-us;329247 Tag: Connecting stored procedure in .net crystal Reports Tag: 89573
Events over LAN
Hi,
I'm developing a client / Server application that mainly comunicates via a
shared database and OPC server via DCOM.
But I need to fire events when a update is performed on the client or
server. If on of the clients is updating it should send an event to the
server, then the server would send events to all clients. The events don't
need to contain data.
What is the best way to do this when IIS and webservices are not an option ?
Tanks
Totto Tag: Connecting stored procedure in .net crystal Reports Tag: 89567
Software shut down my PC, user authorization
Hi group,
I have a Test Bench, in a workshop. It is 'embedded' with Win2000. It have
to be automatically shut down at 05h00 PM.
It can be use by different user wich have 3 profiles (user, user with power,
admin).
I want to be able to shut down the PC at 5h.
- independantly of the user or user profile
- even if nobody is logged in (during the "enter your name and password"
screen of windows)
- even if the Test Bench App is not running.
- the PC have to be shut down properly (as if the user do a start>Shut down)
I have no idea i need some links, or pists. Full working solution are also
accepted :)
thank you all for your help.
ROM
www.maintag.com Tag: Connecting stored procedure in .net crystal Reports Tag: 89564
TreeView Question
I am deriving my own TreeView control from the 1.0 Framework TreeView.
I have overriden the OnAfterSelect method and want to respond to selection
of a node.
The issue I am having is that if the user selects a node and then clicks the
node again, no OnAfterSelect event is triggered. I figure this is the way
it is supposed to work but would like to work around this.
Has anybody had this issue and found a way to work around it?
I thought I could monitor OnMouseUp events and see if the left mouse button
is clicked on the selected node and then call OnAfterSelect from with in
OnMouseUp.
This creates a new issue of when you actually do select another node, now
OnAfterSelect gets called twice (once for the select and once for the mouse
up event). Oh and in case your wondering, I'm pretty sure the OnAfterSelect
event is fired before the OnMouseUp event. A snipet of my code is shown
below:
protected override void OnAfterSelect(TreeViewEventArgs tvea)
{
base.OnAfterSelect(tvea);
...
do really cool stuff when node is selected!
...
}
protected override void OnMouseUp(MouseEventArgs mea)
{
base.OnMouseUp(mea);
if (mea.Button == MouseButtons.Left)
{
TreeNode node = GetNodeAt(mea.X, mea.Y);
if (node == this.SelectedNode)
{
OnAfterSelect(new TreeViewEventArgs(this.SelectedNode));
}
}
} Tag: Connecting stored procedure in .net crystal Reports Tag: 89563
Usage of .net class lib in a windows service
Hi,
I'm developing a windows service with c#. Now I'm trying to use a .net class
library (dll) to include.
For this I added the dll to my references. But unfortunately if i run the
service i got always this error:
File or assembly name "myClassLibrary", or one of its dependencies, was not
found.
Does someone knows where i have to place my dll that it could be found by my
windows service.
I already tryied to place it in the System32 folder and also in the same
folder as the windows service is. But without any success. :(
Thank you for your help!
Best Regards,
Michael
----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption =--- Tag: Connecting stored procedure in .net crystal Reports Tag: 89562
Apparent issues while using System.DateTime
In my application I store all transaction dates in UTC in the database.
At the time of displaying the transactions in the UI I convert the date to
local date time and then display the same to the user.
I do the following:
string LocalDtTimeString =
Convert.ToString(DtClass.ConvertToLocalDateTime(System.DateTime.Parse(strDate)));
where strDate is the string representation of the date fetched from the
database.
and the DtClass method implementation is:
public class DtClass
{
:
:
public static DateTime ConvertToLocalDateTime(DateTime UTCDateTime)
{
return UTCDateTime.ToLocalTime();
}
:
:
}
Scenario is:
My UI is in the context of PST. I perform a transaction at 4:30 PM (PST).
Database stores the date as next day morning 12:30 AM (UTC).
Now I changed the Time Zone of my machine from PST (GMT - 8) to
EST (GMT - 5).
I run my UI and see that it shows the transaction time as 10:30 PM (EST)
instead of showing it as 7:30 PM (EST).
This is happening on a test machine.
When I wrote this code and tested it on the development machine, it was
correctly converting times and giving respective local times.
Is there anything that I need to change in the code that will make it work
consistently on all machines?
I looked around regarding this issue on the internet and read some material,
which talks about behavior differences based on the culture notably with
DateTime.Parse and DateTime.ToString.
I don't understand why it subtracts 2 hours instead of 5...
I would really appreciate your help...
Thank you...
-Avinash Tag: Connecting stored procedure in .net crystal Reports Tag: 89550
Help: Wrong build assembly file caused BadImageFormatException
I have a solution with multi projects (VB.Net), but sometimes the build
output of one project get a wrong file which caused BadImageFormatException
at run time.
When you open the wrong file with ildasm, you can find that same class
appears more than once.
My question is: what's wrong with my projects? How can I solve this problem
because now there is another project starting to build wrong output too.
Thanks in advance!
BTW: If I post in wrong place, please point me the correct one.
Henry Tag: Connecting stored procedure in .net crystal Reports Tag: 89549
Array.Sort?
Can someone explain to me (as something of a .NET layman) why the Sort()
method of System.Array is static?
Is it because it's changing the array you're sorting? Is there some
limitation where if it was an instance method, it wouldn't be able to
reorder the array?
Just curious!
Cheers,
Matt Tag: Connecting stored procedure in .net crystal Reports Tag: 89548
Overflow or Underflow in the arithmetic operation
I have wrote a program using vb.net v. 2002 and this program will send print
out to a printer Xerox Phaser 3120 model. My program is installed on a
Windows 98 client. My problem is when I try to send the print out to that
printer, I 'll get this error message "Overflow or Underflow in the
arithmetic operation" and error print out will be produced (printout with
this error message:
PCL6 ERROR - FALSE
POSITION : 0x50fe58 (5307992)
SYSTEM : WSIM/xl_pa_sim
LINE : 249
VERSION : QPDL 1.14 09-28-2002
How can I solve this problem ?
Thank you,
Chin Tag: Connecting stored procedure in .net crystal Reports Tag: 89547
.NET Framework v1.1 SP1 locks PC up...
I ran the Windows Update in which it offered v1.1 SP1 of the framework. I
installed it and rebooted as required. When I came back into my pc, the
desktop appears frozen (I can't even bring up Task Manager). The bizarre
part of this problem, if I wait 15-20 minutes my PC will come back to life
and work as "normal".
I've done a google search and found several similar reported problems after
installing v1.1 SP1. Anyone hear had or having this same problem??
What is very strange is that v1.1. SP1 doesn't show up in Add/Remove
Programs?
thanks, Rob. Tag: Connecting stored procedure in .net crystal Reports Tag: 89542
Connected Status on Sockets
I have created a socket application in C++.NET that connects in non-blocking
mode. All my previous apps of this kind have used blocking mode at the
connection, but in this case I did not want the app to wait if the server was
not available. In the course of doing this, I discovered after several
hours of frustration that the Connected property of the socket is not set in
non-blocking mode even after the connection is completed. Maybe this is
documented someplace, but I could not find it. Is this behavior to be
expected or have I got an error someplace else? I got around this by using
Poll instead to check for the connect status, but I would still like to know
why Connected is not working.
Thanks,
Bill Tag: Connecting stored procedure in .net crystal Reports Tag: 89536
Postback form .NET bug
I am having a problem that I swore I read about a long time ago and it was a
.NET service-pack/hotfix bug.
The problem right now is that whenever I try to postback on form, it simply
does nothing. I distinctly remember the issue being fixed by a hotfix, but
I can't remember which one. I can't seem to find anything on google either.
Anyone remember this or have a link to a KB article?
I think it had something to do with the aspnet_client files directory and
where it was stored. Tag: Connecting stored procedure in .net crystal Reports Tag: 89534
How can I know if I am in a Service or Application?
I have a c# component that can be used in various executables. I need a way
in the code of this component to determine if the executable that loaded it
is a Windows Service -or- a Console/Windows application? i.e. within the code
of this component how can I determine if the process that loaded it is a
Service or App? I am looking for a C# sample.... thanks! Tag: Connecting stored procedure in .net crystal Reports Tag: 89530
Errors from Socket Functions
I am using C++.NET to build an application using sockets. I am connecting
to multiple servers, some of which may not always be available. I am setting
blocking off before connecting and using the poll command to detect when the
connection is complete. This works fine, but if there is an error, like
connection refused, I can't get the speicfic error. In the docs it says to
use GetLastWin32Error, but that always returns zero. In my past experience
with the function, I found that I had to use the DLLImport function to
activate the specifc API call. I feel that I must have to do something
similar in this case, but I don't know how to compose the DLLImprt to provide
this functionaltiy to the socket functions. Please let me know if I am
going down the right road, and what I need to do to make this work.
Thanks,
Bill Tag: Connecting stored procedure in .net crystal Reports Tag: 89527
Hi All,
I know how to call a stored procedure in asp crystal reports. But I
dont know how to do it in .net. So please guide me ...Urgent Pls
Thanks
Vijay