Performance counter installer breaks service installers?
Hello,
I ran into a strange problem related to performance counter and service
installers. I created a windows service using C#, VS.NET 2003 and
framework 1.1 SP1. Everything went smooth and I got the service up and
running.
Later, I added some performance counters to the service by dragging them
from the toolbox to the design view of the service. I set the properties
of the counters, and created installers for the counters.
When it was time to deploy the service, the problems began. "InstallUtil
MyService.exe" executes smoothly without exceptions. But the services
MMC-snapin shows no startup type for the service. Clicking properties or
trying to start the service results in an error message "The system
cannot find the file specified."
After some investigation, I noticed that if I remove the performance
counter installer calls from the code generated by Visual Studio,
service installation works again. This led me to investigate the
differences in the registry after installing the service with the two
variations.
When the performance counter installer calls are present, the
HKLM\SYSTEM\CurrentControlSet\Services\MyService key contains no values.
However, when I remove the performance counter installer calls, the same
key contains the following values: ErrorControl, ImagePath, ObjectName,
Start and Type. The service also starts just fine, and its properties
are available through the Services MMC snap-in.
The logical conclusion is that the performance counter installers break
the install process, even though there are no error messages.
Any suggestions how to fix this?
--
Jussi Isotupa
CTO
jussi@weppihiiri.fi.NOSPAM
Weppihiiri Ltd.
http://www.weppihiiri.fi/ Tag: how to get the 'Start' parameters in a windows service? Tag: 83511
Visual Studio Tools
I have installed Visual Studio Tools version 2003 Uppgrade.
I have cliced Visual Basic.NET , File, New, Project.
I look for Emty Project so I Can Click It and next Class. I want to creat
a new Class. But I can not find Emty project and not Class.
Why ?? Do I need an other Microsoft Product to create a new Class??
--
munken Tag: how to get the 'Start' parameters in a windows service? Tag: 83506
Server Client Asyn. communication
I am working on a server client asyn. socket communication via TCP in pocketPC
the program is successfully compiled
and the server and the client is successfully connected
However, when the program execute the command:
Sock.Send( byteDateLine, byteDateLine.Length, 0 );
An exception is caught:
System.InvalidOperationException:InvalidOperationException
What is the problem? Tag: how to get the 'Start' parameters in a windows service? Tag: 83496
Caching Application Block
I tried to use CAB in my smart client application to store cache using memory
mapped file. I want to create cache in a disk resident storage type so that
when application closes or the pc reboots, I can still continue working on
the data by accessing the cache. The CAB that I have downloaded stores cache
in-memory only.
Please help. Tag: how to get the 'Start' parameters in a windows service? Tag: 83495
.net Framework 1.14322
I am receiving an error message each time I run various apps, including any
Help files.
. It reads:
.net framework initialization error. To run this application you must first
install one of the following versions of the .net framework: v1.1.4322 and
v1.0.3705.
I have 1.1.4 installed, there's even a folder named
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
I even get this error while trying to install MS files I downloaded to try
to solve this problem, such as NDP1.1sp1-KB867460-X86.exe.
This can't be related to any one service that I downloaded, as it occurs in
a number of different situations. It pops up in MSN Explorer, when trying
to install MS software as noted above, and other areas.
Someone please figure out why??
I'm running Win ME, by the way. MSIE 6.x. Tag: how to get the 'Start' parameters in a windows service? Tag: 83491
Strongly Typed Collection Problem
Hi All
I have a class Persons that hold key/value pairs of Person class. My problem
is the following.
On the first screen I create an instance of Person, I then add a name and
surname and then add the class to class Persons ( I can add more than one
Person class on this screen). On the next screen I retrieve the Person I am
interested in and add Home Address or whatever I wish to add.
The problem starts when I call the Add method of the Persons class. The
value (Person that's been updated) is never stored or updated in the Persons
class.
public object Value
{
get{return this.mValue;}
set
{
if (this.mValue != value)
{
this.mValue = value;
}
}
}
Can some give some green light? Tag: how to get the 'Start' parameters in a windows service? Tag: 83485
PKCS7 padding is invalid and cannot be removed.
I'm creating a simple RinjdaelManaged class for some simple
encryption/decryption. I am not using a password to generate the Key and
IV, but am just hard-coding those values into the class. Yes, I know, but I
intend to build on it later for better security.
Problem right now is in the decryption, I am getting a "PKCS7 padding is
invalid and cannot be removed." error. What is the reason for this?
Public Class MySecurity
Private Shared KEY_128() As Byte = {--byte array--}
Private Shared IV_128() As Byte = {--byte array--}
Public cryptoObj As New RijndaelManaged
Public Shared Function Encrypt(ByVal value As String) As String
If value <> "" Then
Dim ms As MemoryStream = New MemoryStream
Dim cs As CryptoStream = New CryptoStream(ms, cryptoObj
.CreateEncryptor(KEY_128, IV_128), CryptoStreamMode.Write)
Dim sw As StreamWriter = New StreamWriter(cs)
sw.Write(value)
sw.Flush()
cs.FlushFinalBlock()
ms.Flush()
'convert back to a string
Return Convert.ToBase64String(ms.GetBuffer(), 0, ms.Length)
Else
Return ""
End If
End Function
Public Shared Function Decrypt(ByVal value As String) As String
If value <> "" Then
'convert from string to byte array
Dim buffer As Byte() = Convert.FromBase64String(value)
Dim ms As MemoryStream = New MemoryStream(buffer)
Dim cs As CryptoStream = New CryptoStream(ms,
cryptoObj.CreateDecryptor(KEY_128, IV_128), CryptoStreamMode.Read)
Dim sr As StreamReader = New StreamReader(cs)
Return sr.ReadToEnd()
Else
Return ""
End If
End Function
End Class Tag: how to get the 'Start' parameters in a windows service? Tag: 83483
Getting an array of structures from Win32 API calls
I have a small chunk of Managed C++ code that is attempting to call into an
umanaged Win32 api to retrieve a list of structures. Unfortunatly, I'm not
having any luck getting this code to work. Any help would be appriciated:
I'm defining the pointer that will hold the array of structures as:
GROUP_USERS_INFO_0* pstUsers = NULL;
The actual API call looks like:
status = ::NetGroupGetUsers(server,
unmanagedGroupname,
0,
(LPBYTE*)&pstUsers,
MAX_PREFERRED_LENGTH,
&dwEntries,
&dwTotal,
&dwResumeHandle);
I'm getting sensible results back for the dwEntries and dwTotal fields.
I then try to parse out the group names:
StringCollection* results = new StringCollection();
for (DWORD i = 0; i < dwEntries-1; i++)
{
System::String *s =
System::Runtime::InteropServices::Marshal::PtrToStringUni(pstUsers[i].lgrui0_name);
results->Add(s);
}
Much to my annoyance, my string always ends up with garbage in it. I'm not
to familure with Managed C++, so I'm probably doing some very obvious wrong,
but I'm not making too much progress...
(I can't use the DirectoryServices for this, as I'm talking to an NT4 Domain
rather than AD, and this particular method isn't supported...)
--
Chris Mullins Tag: how to get the 'Start' parameters in a windows service? Tag: 83482
Why not make all assemblies as Strong Named Assemblies
If strong-named assemblies have so many advantages, why not sign all
assemblies with strong-name. Is there any scenario, where an assembly should
not be signed with strong-name? Tag: how to get the 'Start' parameters in a windows service? Tag: 83477
how to make system independent exe. file in C#
hi everyone !!
i am nearly exhausted trying to make system independent exe. file in C# and
yet couldn't find any solution to that. I want that the exe. file of my
project should run on any computer including the ones which don't have visual
studio .Net installed on them
plz guide me how to do this.....i am using visual studio beta 2 version Tag: how to get the 'Start' parameters in a windows service? Tag: 83476
Is there an easy way to convert an ASP.NET application to an EXE?
I have an ASP.NET web application. We would like to be able to package
it up onto a CD so that someone could run it on their laptop that
doesn't have internet access or even a web server on their laptop. So
we would like it to run basically like an EXE without a web server. Is
this possible? Are there companies that sell a conversion tool like
this?
thanks in advance. Tag: how to get the 'Start' parameters in a windows service? Tag: 83473
DropDown Selected Item Default
I have a simple dropdown list with four elements. Element 0 is defined as
"Selected True".
I would like to pass this function a string and compare the string against
the Item Text field. When there is a match I want to mark that item as
"Selected True" to in essence set a new default value.
--
-- Thom Little -- www.tlaNET.net -- Thom Little Associates, Ltd.
-- Tag: how to get the 'Start' parameters in a windows service? Tag: 83458
Radio buttons inside a group box don't seem to work with .NET 1.1 SP1
I have a Windows Forms application that contains a group box that holds two
radio buttons. Ever since the application of SP1, the second radio button
does not draw. The window contents of any window placed over the control
shows up instead. Is MS aware of this?
Are there any other issues with SP1 that broke things that used to work
without it?
--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.
EmailID = varnk
Domain = Diebold.com
----------------------------------- Tag: how to get the 'Start' parameters in a windows service? Tag: 83453
reference an array of methods
I've an unusual (?) question. I want to create an array of references to
methods having identical parameters and return types. I would like to
reference the appropriate method within the array via a enum type and then
execute the corresponding method. Is this possible?
--
Steve Tag: how to get the 'Start' parameters in a windows service? Tag: 83451
Focus in datagrid after .NET Framework 1.1 SP 1
Hi,
The focus in the datagrid is not lost even after leaving the datagrid. The
selected cell is highlighted even when the focus from the datagrid is lost.
This happens only after the .NET Framework 1.1 SP 1 installation.
While using the .NET Framework version 1.1.4322.573, the selected cell is
not highlighted when the focus from the datagrid is lost. But, while using
the .NET Framework version 1.1.4322.2032, even after the focus is lost from
the datagrid the selected cell is still highlighted with the previous values.
Any help in this regard is much appreciated.
Thanks,
raj Tag: how to get the 'Start' parameters in a windows service? Tag: 83450
SQL Connection Program Name
Is there a way to set the program name for a connection so that it is a bit
more descriptive than ".Net SqlClient Data Provider"?
Thanks,
Charles Tag: how to get the 'Start' parameters in a windows service? Tag: 83449
Use reflection to call base class implementation of virtual method
I'm trying to use reflection to lookup and invoke a specific instance of a
virtual method on a class. I can get the method easy enough, but the Invoke
method of MethodInfo states that it calls the correct virtual method based on
the passed in instance type. The problem is it doesn't point out a way to
invoke a specific instance of an implementation in the inheritance hierarchy.
I'm essentially attempting to invoke the base.MyMethod through reflection,
but can't find any way to do so. Any ideas? Tag: how to get the 'Start' parameters in a windows service? Tag: 83448
Best _production ready_ O/R mapper for dot.net
Hi
Im coming from a J2EE world and have used Hibernate very succesfully.
Now I have to choose wich O/R mapping to use in my next ASP.NET project for
the persistence layer. The next projet is NOW so I can´t wait for projects
to mature.
I have looked at this list:
http://sharptoolbox.madgeek.com/Pages/Categorybf4853b9-2a87-4d40-9987-8744c3a6a9d6.aspx
But its pretty hard to judge wich project is mature to use in production:
The obvious is ADO.NET Dataset (typed/untyped) but I REALLY don´t like to
work with them. Done some testing and find them hard to work with. AIm I
really wrong here? Is ADO.NET defacto to use in dot.net today and I am the
one not undestanding the brilliance in ADO.NET?
What about:
-------------
Gentle.net
Wilson ORMapper for .NET
OJB.NET
nHibernate <<< Too bad its alpha. I need the O/R now. :(
Others wich i should be aware of?
Thank you very much
Anders, Denmark Tag: how to get the 'Start' parameters in a windows service? Tag: 83438
Is it possible to create a ForeignKeyConstraint with a static valu
I would like to create two ForeignKeyConstraints like this..
ParentTableA - ForeignKeyConstraint on ParentTableA.PrimaryKey =
ChildTableA.ForeignKey1 and ChildTableA.UseTableA = True
ParentTableB - ForeignKeyConstraint on ParentTableB.PrimaryKey =
ChildTableA.ForeignKey1 and ChildTableA.UseTableA = False
Is this possible? I have not found any way to create a ForeignKeyConstraint
on a static value. I want to be able to do this so that when I change the
PrimaryKey of a parent table, it will correctly cascade and update the child
rows. I would also like to be able to create a DataRelation this same way. Tag: how to get the 'Start' parameters in a windows service? Tag: 83430
HEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEELP. I AM AT MY WITS END. IT JUST DON'T WORK.
I posted this message a couple of weeks ago and know one answered. I am not
sure if why. I am sure that I am not the only one that has had this issue.
Or is it because I used a dirty N word. "Novell"
Here is my previous post. I really hope someone can help with this because I
don't know what else to do.
Abandoning Novell is simply not an option at this point.
UnauthorizedAccessException when trying to access a Novell network drive.
The code is very simple.
This is the line that fails when trying to create a new StreamWriter where
_filename is a string that points to a Novell network drive.
StreamWriter file = new StreamWriter(_filename,false);
The user has full access to the directory.
By the way. This line works fine on the local box as well as accessing a
Windows NT 4.0 or 200x Server drive. This issue is only with Novell Drives.
The client is Windows XP SP2 using the native Novell client drivers that
came with XP.
I have not yet Tried the Novell Client Drivers from Novell.
Any help would be greatly appreciated.
Thanks,
JT Tag: how to get the 'Start' parameters in a windows service? Tag: 83425
Debugging in IIS
My co-worker and I can not seem to set up our IIS environment to allow
debugging if we are both working on projects.
The server is win2K sp4, IIS 5, ASPNET version is 1.1, Visual Studio is
2003.
Our working directory is on the "D" drive in a folder called
ASP_Net_Projects and we have made this folder the home directory of our
default website in IIS.
We are both members of the debuggers group, and that group has full control
of our working directory.
We still get errors when we are both debugging. The error is that there is
another instance of the debugger running and the machine can not start
another.
Any advice or guidance would be greatly appreciated.
Thank you.
Michael Albanese
City of Stamford, CT
malbanese@ci.stamford.ct.us Tag: how to get the 'Start' parameters in a windows service? Tag: 83423
Converting Java-Applet -> .NET-Applet
Hi,
i've trying to convert a Java-Applet, which runs inside a HTML-Page with
Javascript and Sessiong-Management to a .NET-Applet.
The Java-Applet loads in the contend of the Browser-Session data from
the server (Java-Applet is based on java.applet.applet).
I'm trying to reimplement this in .NET (C#), but my problem is the
browser-session. When I try to load data from the server, it doesn't use
the session from the browser.
Is it possible to use the browser-session, when communicate with the server?
Best regards
Bernhard Tag: how to get the 'Start' parameters in a windows service? Tag: 83422
webbrowser control: navigate to another URL in a subdoc
Hi,
I have an application with an AxWebbrowser control, and the webpage is
a document with a frameset with multiple documents in it.
What i would like to do, is the subdocument of the frameset to
navigate to another URL, while maintaining the frameset with the
other documents in it.
The function AxWebbrowser.Navigate2 only controls the main document,
so how can I accomplish the same functionality for the subdocuments?
It's easy with HTML, but programmatically in .NET??
Please help me out!!!
Thanks! Tag: how to get the 'Start' parameters in a windows service? Tag: 83419
Where can I find a design pattern for paging through a list?
Hi,
How do websites like google page through large numbers of records?
For example; if I do a search on Google, get 187,000 matches, and go to the
22nd page of the results; I'm sure Google doesn't do a new SELECT statement
and traverse through 440 records (22pgs x 20 per page). But I'm also pretty
sure Google doesn't keep a hell of a lot of session data open either.
I know there are all kinds of ways to do this, I've created hacks which did
the job in the past. But there has to be a 'best practice' way of handling
this.
Can anybody point me in the right direction? I'm open to technology
specific ways, but would prefer generic.
Thanks,
John Tag: how to get the 'Start' parameters in a windows service? Tag: 83418
Interating over the characters in a string
Hello, I have a question in regards to .Net string maniplulation. I have a
question in regards to interating over individual characters in a string.
The problem is I have a CSV parser that will successfully parse out quoted
csv files, the only issue is it will leave the leading and ending quotes in
tact. Before I go on I do realize since it's a CSV I could do
stringval.replace( "\"", "" ); but I wanted to take the chance to learn out
to iterate over string values. Anyway, the problem is what I had written
originally to do this was:
if ( stringval[0] == '"' ) {
stringval = stringval.substring( 1, ( stringval.length - 1 ) );
}
if( stringval[( stringval.length - 1 )] == '"' ) {
stringval = stringval.substring( 0, ( stringval.length - 2 ) );
}
I wasn't stripping off the last " ever and I realize now that the problem
has to do with .Net storing strings in UNICODE, which allows for character
pairs to reprisent a single character. So my question here is, how does one
iterate over the character values in a string and replace it's value if
neccessary?
Carlo Tag: how to get the 'Start' parameters in a windows service? Tag: 83411
Serialization of HttpWebRequest
I think this was asked before, but not resolved...
I'm trying to serialize a 'HttpWebRequsest' object, send the object to
another maching to actually make the web request for me.
Since 'WebRequest' implements ISerializable and has the
SerializableAttribute, it seems this should be possible.
I've tried doing this, and it seems something gets lost, because when I
deserialize the object, I get a null reference exception ( I think the method
verb is not set among, possibly, other things).
But I don't see why this could happen since serialization serializes the
whole graph of objects.
Am I missing something?
Thanks,
-A Tag: how to get the 'Start' parameters in a windows service? Tag: 83406
.NET Printing and Windows 2003 Server VisibleClippingBounds proble
I have a DOTNet printing application I wrote and also a Crystal Reports
printing issue on a Windows 2003 Server. The visible clipping area bounds
returned is incorrect and causes the printout to be clipped to this incorrect
smaller region (about 33% of the size it should be).
The code below is from the onPagePrint method
protected override void OnPrintPage(PrintPageEventArgs e)
{
// Draw a box around VisibleClipBounds
Graphics gx = e.Graphics;
g.DrawRectangle( Pens.Black, Rectangle.Truncate
gx.VisibleClipBounds));
.....
.....
}
The properties returned are incorrect on a Windows 2003 Server and correct
on Windows XP. i.e The gx.VisibleClipBounds.Height is 1066.667 on Windows XP
and 416.3333 on Windows 2003 Server.
The printer is an HP LaserJet 5M. I have not tested any other printers as of
yet.
This incorrect value causes my program and Crystal Reports to have the
report clipped to this bounds and thus cutoff.
Any ideas or is this a bug?
Thanks
Bob Maier Tag: how to get the 'Start' parameters in a windows service? Tag: 83404
remoting-webservices
Hi ,
I am using remoting in my server application and using webreference in my
client side to work with server. everything fine... goes well.. but when i
release the assigned port from my server it is not clearly releasing port .
Without stopping client application, If open the server again with the same
port then i am getting error "Port already in use".
If i try the same after stop the client application then my server is
working fine.It is releasing / assigning the port.
How do i release the port ? Give me a hand to come out..
thanks,
rajaManickam Tag: how to get the 'Start' parameters in a windows service? Tag: 83396
Permission Requests
Hi,
I have started running FxCop on my solution. The first assemly I have done
it complains about missing Permission Request attribute for the assembly. The
assembly only contains utility classes and common types for the rest of the
solution. I can't think of any permission request attribute to put in to the
assembly.cs file.
Is there a general rule fo thumb, or maybe some tool that will calculate the
permissions I should request?
Thanks for your help. Tag: how to get the 'Start' parameters in a windows service? Tag: 83395
Cheap Dotnet training on Video
Hi there,
As we move to CD, DVD and online platforms we are clearing the last of our
Expert Instruction Pal Videos for Windows 2000, Dotnet developer, MS Office
etc.
Please go to http://www.inlearning.com.au/clearance/ for more information.
If you live outside Australia we will happily work out postage and handling
to your country. Orders by credit card or purchase order only!
--
--
Best IT Training around! Tag: how to get the 'Start' parameters in a windows service? Tag: 83394
virtual serial ports
I wrote an application in C# that uses the unmanaged Win32 calls for COMM. I
can communicate without problem on the standard comm ports (i.e. COM1, COM2)
but am having a problem with virtual ports that are using USB->serial
adapters (i.e. COM4, COM7). I can connect successfully to these ports
(CreateFile), but when I execute a ReadFile(), I hang if I have the read
timeouts set to infinite.
Here is the interesting part. If the virtual port was previously opened by
another terminal program such as Hyperterm or TeraTerm, I have no problem. If
I disconnect the adapter then reconnect it to the system (Win2k) then try my
program, I hang as described. If I then run one of the other terminal
programs, my program will now work. It appears that there is some
initialization being accomplished by the other programs that has some
persistance. Once they are run, I have no issues.
I'm using synchroneous communications with no flow control (it's to an
embedded system on a reference board). I am not using overlapped operations.
I would think that the Win32 library should be able to handle this, that the
level I'm working at should completely abstract the differences between
virtual and real serial ports.
Obviously, this assumption is not a valid one. Has anyone run into this, and
can anone offer me some advice?
Thanks,
Howard Keller Tag: how to get the 'Start' parameters in a windows service? Tag: 83393
Problem with DoEvents in vb.net
I have upgraded a vb application to vb.net. I am using Doevents in several
places to display messages inside a while loop. This used to work perfectly
in vb, but in VB.net, I get getting System.StackOverFlowException-
essentially because, once it encounters DoEvents, it is going in a loop.
Does Dovents work differently in vb.net and if yes- what is the correct way
to use it.
--
mimi Tag: how to get the 'Start' parameters in a windows service? Tag: 83391
Async Programming
When asking about my very-threaded web requestor, somone gave the following
reponse (thanks Richard):
<snip>
If you are making network calls you really want to use an async socket
request which only ties up the thread while sending the bytes to the network
and then when the response comes back as underneath they use IOCompletion
ports.
</snip>
Can someone please elaborate, or point me in the direction of some references?
Hugely appreciated,
-Andrew Tag: how to get the 'Start' parameters in a windows service? Tag: 83390
OLE(excel) and windows 98 problem
Hello
I have written a C# program that is constantly queuering an Excel 2002
spreadsheet for some
10-12 cells. for eg.
public void MAIN_LOOP()
{
while(true)
{
for(i=0;i<Count;i++)
//get excel data for diff cells using OLE
//DO mathematical operations/business logic on them
}
}
The function above (MAIN_LOOP()) is under a worker thread. This is the only
worker thread which i have in my program. But as i run the program on a
WINDOWS 98 machine, it hangs (both program and excel) after 5-10 minutes. But
the same works perfectly fine in windows 2000 and Windows XP.
Please help me to find what is the problem.
Vivek Thakur Tag: how to get the 'Start' parameters in a windows service? Tag: 83386
"Start Menu -> Run"/Shell Functionality from C#
I'm trying to duplicate the functionality of "Cmd /C" from within my C#
windows application. This means that I want to create a function which will
accept a string containing any of the things that "Start->Run" can and will
use the Windows shell's abilities to figure out what to do with a command
string, including:
* Executables themselves,
* File names without application specified which are opened in the
appropriate application for the file type.
Using the Process class to do this seems almost impossible. I tried using
Process and providing "cmd.exe" as the FileName and the " /C <string to run>"
as the Arguments. It worked except that it left a blank black command window
on the screen after launching the appropriate application. I also tried using
the VisualBasic Shell() function but also seems to demand that an executable
be presented.
I find it hard to believe that I'm going to have to do system registry
look-ups to determine what Application needs to be inserted for a given file
path provided.
Help?
Thanks.
Alex Tag: how to get the 'Start' parameters in a windows service? Tag: 83384
Multicast Socket Exception in XP Service Pack 2!!
Hi Everyone,
Just installed both .NET 1.1 SP1, and XP ServicePack 2, and am getting a
weird Multicast Exception that was NOT happening before this. It occurs when
I try to set SetSocket.
For example:
Socket s=new Socket(AddressFamily.InterNetwork,
SocketType.Dgram, ProtocolType.Udp);
IPAddress ip = IPAddress.Parse(MC_ADDR);
IPEndPoint ipep = new IPEndPoint(ip, MC_PORT);
s.SetSocketOption(SocketOptionLevel.IP,
SocketOptionName.AddMembership, new MulticastOption(ip));
the last line throws an exception:
Exception: An invalid argument was supplied
at System.Net.Sockets.Socket.setMulticastOption(SocketOptionName
optionName, MulticastOption MR)
at System.Net.Sockets.Socket.SetSocketOption(SocketOptionLevel
optionLevel, SocketOptionName optionName, Object optionValue)
Note that this worked BEFORE SP2!!
Anyone have any info/workarounds??
ps
My firewall is OFF
Thanx Tag: how to get the 'Start' parameters in a windows service? Tag: 83383
Globalization of ASP.net DataSets
Hi,
Can someone please indicate what is the prefered way of performing a runtime
translation of a dataset, including the column names.
Shai Tag: how to get the 'Start' parameters in a windows service? Tag: 83381
Add an Element when Serializing an Inherited typed dataset.
I have a typed dataset which I inherit as a business layer. I want to add
an element when the business object is serialized.
public class OrderBLL:OrderMDL //OrderMDL is a typed dataset class
{
public OrderBLL():base()
private decimal grossAmt;
public decimal GrossAmt
{
Get {return grossAmt;}
Set {grossAmt=value;}
}
}
When I serialize an instance of OrderBLL, i get the full dataset but not the
GrossAmt Element. Tag: how to get the 'Start' parameters in a windows service? Tag: 83378
Modify Crystal Report template (.rpt) using report engine object m
hi. i would like to write a program to let the user modify an existing
crystal report template and save it for later use. i'm wondering if i can do
it with the report engine object model that comes with .net.
thanks in advance. Tag: how to get the 'Start' parameters in a windows service? Tag: 83376
Can I create a delegate for a property?
I am interested in creating a delegate for an object's property, instead of a
method. Is this possible? I really only want to use it with the get
property. Thanks. Tag: how to get the 'Start' parameters in a windows service? Tag: 83375
Crystal Report : Let use customize the layout of the report.
Hi, i would like to write a function to let the user do minor changes to the
report (e.g. hide/show a field; move a field around; add text box). i'm
wondering if i can do it using the Windows Forms Viewer or do i have to do it
using the REport Engine Object Model? Thanks a million!! Tag: how to get the 'Start' parameters in a windows service? Tag: 83374
2003 very slow after .NET SP1
Hi,
Since i've installed .NET 1.1 SP1 my dotnet application is very slow when I
run it on an windows 2003 server (SBS).
Running the same app on Windwos XP is running fine as before
Has someone else the same problem and fix?
Thanks
Bart Tag: how to get the 'Start' parameters in a windows service? Tag: 83371
COM+ ActivityId Question
I have to questions regarding running .Net components in COM+.
1) Is there anyway to tell if a .Net assembly is running in COM+ before
attempting to access System.EnterpriseServices.ContextUtil to gain access to
methods such as ActivityId, IsInTransaction, etc.? These functions raise a
COMException if no COM+ Context is available. I'm want to check to see if a
COM+ Context is available without raising an exception before accessing these
static properties.
2) I have a rather simple, class that inherits from ServicedComponent that
has been installed into COM+. When accesssing the ActivityID using the above
mentioned ContextUtil.ActivityId property, I'm getting
"00000000-0000-0000-0000-000000000000". In the documentation for this
property, MSDN says:
"The GUID for an activity if the current context is part of an activity;
otherwise, GUID_NULL."
I can't find any information about "GUID_NULL", but I'm assuming that this
is what is being returned. Is there a reason that the COM+ context for my
component is NOT part of an activity? I'm not a COM+ expert, so I'm not
entirely familiar with the difference between contexts and activities, but I
do know that when creating COM+ applications using VB6, there was always an
ActivityId present. I use this value to trace activity through various COM+
calls for debugging and logging purposes.
Thank you,
Michael McGuire Tag: how to get the 'Start' parameters in a windows service? Tag: 83369
Alternative for ActiveX
I have a client who currently has an ActiveX application. They are
considering replacing this application due to business reasons and have asked
us to consider alternatives for developing it.
Our shop is a C#, .Net shop. I have identified Hosting Windows controls and
FlashMX as the closest possible current alternatives. Unfortunately, the
current application has printing as a core function. To the best of my
knowledge, this eliminates both of these choices (assuming default security
settings).
Are alternatives that I am overlooking?
Is a Windows application the only other next best alternative?
I'm assuming that there is no way to build an equivelant of an ActiveX in
.Net; is this assumption correct?
Thank you very much for your assistance.
Bob - Tag: how to get the 'Start' parameters in a windows service? Tag: 83368
Can non-admin users really change machine-level CAS settings?
Regarding .NET Runtime Security Policy settings, is it a true statement that
non-admin users can modify Machine-level Code Group settings? It would make
sense to me that non-admin users could modify User-level Code Group settings,
but it seems odd that they could make machine-level changes.
(This is the behavior that I experience, but I want to confirm this.)
Thanks,
Rob Tag: how to get the 'Start' parameters in a windows service? Tag: 83366
.NET equivalent of global hook?
Is there a way in .NET to get the same functionality as the old global hooks?
I would like to get notification when the mouse or keyboard is active, for
instance.
~BenDilts( void ); Tag: how to get the 'Start' parameters in a windows service? Tag: 83365
Recompile using 1.0 framework
On my PC I have both version 1.0 and 1.1 of the framework. I would like to
recompile a windows service project using version 1.0.
How do I do this ?
Thanks,
Craig Tag: how to get the 'Start' parameters in a windows service? Tag: 83356
collapsible panel
Hi
I want to disply some information on a form from a xml file
There is a lot of info and I want to fit all of it on one page.
I am aware of collapsible panels...have seen it used everywhere.
But I dunno how to implement it?
Can anyone please help me out in this?
Thanks and regards
MVB Tag: how to get the 'Start' parameters in a windows service? Tag: 83355
Process.Start With Microsoft Word 2003
I have a RTF document that for whatever reason when I do a
Process.Run("C:\MyRTF.rtf") the process starts, but the startinfo is set to
nothing.
Dim P as Process
p = Process.Run("C:\MyRTF.rtf")
In this case, P = nothing, but Word 2003 launches. I have tried to force it
to use WordPad, which works fine with Process.Run.
Anyone have any ideas how to force it to keep the same process with Word?
Thanks. Tag: how to get the 'Start' parameters in a windows service? Tag: 83354
Windows Service not installing
I have written a windows service that installs on my win XP PC, but will not
install on an NT4 PC. This is what I did....
1. I copied the contents of the bin folder to the NT4 PC
2. from the command prompt :
cd C:\winnt\Microsoft.NET\Framework\v1.0.3705
installutil C:\SalesUploadService\SalesUploadService.exe
This installation failed, and this is the salesuploadservice.InstallLog...
Installing assembly 'c:\salesuploadservice\salesuploadservice.exe'.
Affected parameters are:
assemblypath = c:\salesuploadservice\salesuploadservice.exe
logfile = c:\salesuploadservice\salesuploadservice.InstallLog
An exception occurred while trying to find the installers in the
c:\salesuploadservice\salesuploadservice.exe assembly.
System.Reflection.ReflectionTypeLoadException: One or more of the types in
the assembly unable to load.
Aborting installation for c:\salesuploadservice\salesuploadservice.exe.
Rolling back assembly 'c:\salesuploadservice\salesuploadservice.exe'.
Affected parameters are:
assemblypath = c:\salesuploadservice\salesuploadservice.exe
logfile = c:\salesuploadservice\salesuploadservice.InstallLog
An exception occurred while trying to find the installers in the
c:\salesuploadservice\salesuploadservice.exe assembly.
System.Reflection.ReflectionTypeLoadException: One or more of the types in
the assembly unable to load.
Aborting installation for c:\salesuploadservice\salesuploadservice.exe.
I have .net version v1.1.4322 on my PC and the NT4 has v1.0.3705. Does that
matter ?
Any help would really be appreciated
Thanks, Craig Tag: how to get the 'Start' parameters in a windows service? Tag: 83347
hi all
how can i get the 'Start' parameter specified for a windows service?
Re: how to get the 'Start' parameters in a windows service? by Girish
Girish
Fri Sep 24 07:50:14 CDT 2004
Overload ServiceBase.OnStart().
--
Girish Bharadwaj http://msmvps.com/gbvb
"assaf" <assafwo@hotmail.com> wrote in message
news:uXeAgDjoEHA.3424@TK2MSFTNGP12.phx.gbl...
> hi all
>
> how can i get the 'Start' parameter specified for a windows service?
>
>
>
> assaf
>
>
>