How do you use OleDBLiteral?
I am completely baffled by the OleDbLiteral enumeration.
How do you get from the enumerated values to the things that they
represent?
I can't see any calls or methods that do this. ToString just returns the
name of the enumerated value.
This must be a really stupid question but I can't find a single worked
example that uses this class. either through google or in the 2 ADO.NET
books that I have bought.
You need this information to generate safe SQL that will run against a
variety of back-ends.
Tom Tag: System.Console.In.Peek() behavior? Tag: 58008
Eventlog Installing
Hi,
am creating a windows service using c# and would like it to create a
new eventlog logtype and add it to the eventlog viewer so that i can log all
messages relating to this application to this specific log. Does anyone
have any code for this which works as i have tried the examples but am
unable to find the log in the eventlogviewer or anywhere on the hard drive
afterwards.
Thanks in advance
TimB Tag: System.Console.In.Peek() behavior? Tag: 58004
ADO.Net bug
I try to update a table with 106 fields using the Dataset and get an error
on "Expression too complex....".
If I try insert, it works, only update fails. This happens in my ASP.NET
app. using ADO.NET. The same update using VB6 and ADO works.
Can someone please help? It appears there's a bug in ADO.NET when updating a
table with a lot of fields.
TIA
GP Tag: System.Console.In.Peek() behavior? Tag: 57980
write string into file
Hi group,
I try to write a string into a file. But every fonction for file use byte
array.
Is there methode to write string into file ?
if not, is there methode to cast string into byte array ??
thanks for help !
ROM Tag: System.Console.In.Peek() behavior? Tag: 57979
Service doesn't run under windows NT
Hello
I have the problem that my service under Windows NT SP 6a with Framework
1.1. doesn't run. I will receive an unknown exception from the framework all
the time. But the service runs under Windows 2000 and XP. I removed the
whole service code so that I have had only the start and stop methodes and a
little worker-thread. "Normal" Applications run very well on the NT-Machine.
Does somebody had the same problem?
Thanks for your help.
Chris.
The Exception-Message from the eventlog:
----------------------------------------------------------------------------
-
Die Beschreibung der Ereignis-ID ( 0 ) in Quelle ( .NET Runtime ) konnte
nicht gefunden werden. Sie enthält folgende Einfügezeichenkette(n):.NET
Runtime version 1.1.4322.573- testservice.exe - Common Language Runtime
Debugging Services: Application has generated an exception that could not be
handled.
Process id=0xb6 (182), Thread id=0x74 (116).
Click OK to terminate the application.
Click CANCEL to debug the application.. Tag: System.Console.In.Peek() behavior? Tag: 57976
Please, anybody. Help
When I try to create either a C# or VB.Net Web Application, the ID shows
one of two problems:
1. Tells me that there is already a services.config file in the Document
and Settings folder; when I clear this, I get problem 2.
2. Connnects to the local server and then hangs with "Initializing
offline cache" showing in the status line.
The IDE version is 7.0.9466 and it is running on Windows 2000 Server
connecting to IIS5
We have been attempting to solve this problem for months.
On one machine we succeeded in getting to work; but after an unknown
occurrence or reason, it stopped working and started showing the
problem. Curiously, the previously built Web Applications show up in the
management console for IIS, but not on the projects of the IDE. Before
the problem occurred, the projects showed the previous Web Applications.
Thanks for the help
Please also respond to
intrader@attglobal.net Tag: System.Console.In.Peek() behavior? Tag: 57969
Outlook Express-Very slow to start
Outlook Express6 on Windows XP professional has suddenly
became very slow to start.Once you click the icon the
opening logo appears and thereafter it takes more than a
minute to start outlook express,(and the address book too)
everything else is normal. I have serched for a solution
in the MS Knowledge base but there are remidies for older
Os versions and OE 5(by repairing the registry) and not
for OE6 with XP.Please refer MSKB artical NO.235300 If
any body knows the remedy without running full recovry
process and also without restoring to a previous
cofiguration please post me.
thanks,
Dhammika. Tag: System.Console.In.Peek() behavior? Tag: 57966
Help !
I have a function defined In a Class1.
Ex
Public Class1
Public Function GetData () as DataSet
******** Using SqlDatAdapter I fill the DataSet
******** It will return the Filled DataSet.
End Function
End Class
I have another Class which calls the GetData function of the first class.
Public Class2
Public Function UdateDatasetTODataBase()
Create Instance of the First class and Call the
GetData Function, which returns the DataSet.
'''''''' I want To Add/Update the Dataset and
reflect back to DataBase.. ****** How to Do this?????????????
End function
End Class
Using SqlDataAdapter this can be Done only if u fill the Dataset in the Same
Function, make Changes and Call the SqlDataAdapters Update method,
But I am filling the Dataset in Different function..
Is there anyway to assign already filled Dataset to SqlDataAdapter ?
TIA,
Gary Tag: System.Console.In.Peek() behavior? Tag: 57961
.Net Compact Framework with Visual Studio 2002
Hi, I have Visual Studio 2002 Enterprise Architecture Edition. I was
wondering if anyone has any information on how I can develop applications
for .Net Compact Framework using this IDE. I've heard Visual Studio 2003
ships with the functionality for .Net Compact Framework development. But
right now I have Visual Studio 2002. Is there anything I can do? (Other than
the obvious upgrade to 2003).
I've heard some beta version of .Net Compact Framework work on Visual Studio
2002. Don't know if its true. And I've had a real tough time trying to
figure out what to install from where to make it work. So if someone can
help me out, greatly appreciate it. Thanks.
(Or if there is some other free IDE like Web Matrix that supports .Net
Compact Framework??) Tag: System.Console.In.Peek() behavior? Tag: 57958
windows users (login/logout)
Hello
I have a dude, how I can know the time that the windows users (as
Administrator, Guest,
User, etc)login and when they logout. I need to know How I can complete
this task
having in mind that this application have to run in differents Windows
Systems like NT,
2000 Server, 98, XP, etc.
Thanks in advance
José Achig Tag: System.Console.In.Peek() behavior? Tag: 57948
Windows Server 3003 and No-Touch Deployment
We're using no-touch deployment with a particular application. We can serve
the application from a Windows 2000 Server machine with no problem. We're
not able to serve the application from a Windows 2003 Server. It appears
that the app's .config is not being transferred to the client when they try
to launch the application from the Win 2003 server.
The web.config file for the virtual directories includes entries in the
httpHandler section to allow .config files to be retrieved, and we've
deleted the .config entry from the App Mappings tab in the properties for
the virtual directories (which I think means our httpHandler mods are not
necessary). The virtual directory on the Win 2003 server allows anonymous
access. The machine.config files between the two servers in question are
identical with the exception of some database connection strings in the
appSettings section.
An examination of the IIS log files on the Win2003 server shows the last
entry for a no-touch deployment session to be a GET for the app.exe.config
file with a status 401. A FileLoadException is thrown on the client machine
when we try to run from the Win2003 server.
What other settings should we change on the Win2003 server?
Thanks,
Mike Tag: System.Console.In.Peek() behavior? Tag: 57945
.Net App deployment - Removing files problem
How do I instruct the Windows installer to remove the entire application
when the user clicks Remove program from Windows control panel?
After a successful setup, any files created by the application in the
application folder are not removed. This is so when the program is
"removed" from the Windows control panel. This becomes a problem if the
user decides to reinstall the application in the same location. The
*old*/legacy files, e.g. app config files, may cause a problem with the
*new* installation of the application file.
My installer program was created with a "setup and deployment" type project
is Visual Studio.NET 2003 for a .NET v 1.1 Windows Forms application. It
appears all of the property pages in the VS.NET editor address installation
and few removal issues. I reckon I'm sniffing around for a solution in the
wrong place.
--
Peter O'Reilly Tag: System.Console.In.Peek() behavior? Tag: 57942
Socket Receive Error
Hi,
I'm getting the strangest problem trying to receive from a socket. I'm
downloading a huge file. When I loop, receiving until I get no bytes back,
it works fine. But I wanted to update a progress bar during this process,
so I added a notification delegate and I call this each time through:
Dim Ret As Integer, Buffer(1023) As Byte
Do
Ret = theSocket.Receive(Buffer)
If Ret > 0 Then
If m_DownloadToFile Then
m_FileStream.Write(Buffer, 0, Ret)
Else
m_Data = m_Data + ASCII.GetString(Buffer, 0, Ret)
End If
m_TransferredBytes = m_TransferredBytes + Ret
'if we have a notification
If Not Notify Is Nothing Then
'notify
Call Notify(Ret) <------this causes the problem
End If
End If
Loop Until Ret = 0
But when I do this, I start losing bytes. If I don't call the Notify
delegate, the file is something like 36MB. But if I call it, I seem to lose
data, and the file only winds up at about 21MB. This is kind of hard to
debug, so before rolling up my sleeves, I was wondering if anyone with
socket experience could spot the problem right off. Any help much
appreciated. Thanks.
Cheers,
--
Joshua Frank
Senior Systems Architect
Archimetrics, L.L.C.
"Add some SpArk to your stored procedure development."
(web) http://www.archimetrics.com
(email) mailto:jfrank@nospam-archimetrics.com
(voice) (973) 727-1510 Tag: System.Console.In.Peek() behavior? Tag: 57940
Catastrophic failure
I have written an ASP.NET web app in C# that is trying to connect to a
database using OleDb. I put code in a dll that uses another dll to create a
connection object (and open it if requested) to send back to the web app to
connect to the database.
I am getting the following error when I change anything in my web app and
recompile.
Catastrophic failure
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.Data.OleDb.OleDbException: Catastrophic failure
Stack Trace:
[OleDbException (0x8000ffff): Catastrophic failure]
System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr)
System.Data.OleDb.OleDbConnection.CreateProviderError(Int32 hr)
System.Data.OleDb.OleDbConnection.CreateProvider(OleDbConnectionString
constr)
System.Data.OleDb.OleDbConnection.Open()
I reset IIS to clear the problem (the only way that I have found other than
rebooting), and it will then work just fine. But if I adjust my code (the
web app not either of the dlls) and recompile, it will throw the
Catastrophic failure when I access the page. My coworker thought that it
might be because I was using a static module to create the connection, so I
adjusted the dll to be non-static. That did not solve the problem.
Is there anyway to prevent this failure, and is there anyway to clear this
error without having to restart IIS? Tag: System.Console.In.Peek() behavior? Tag: 57939
Re: Framework and Add/Remove Programs
I tried posting the item below a few daze ago, but it has not shown up.
I connect to the MSFT news server.
--
http://www.standards.com/; See Howard Kaikow's web site.
"Howard Kaikow" <kaikow@standards.com> wrote in message news:...
> I installed VS .NET and the Framework is listed as separate item in
> Add/Remove programs.
>
> When the Framework is installed via a Windows update or via a direct
> download, does the Framework get listed in Add/Remove programs?
>
> --
> http://www.standards.com/; See Howard Kaikow's web site.
>
> Tag: System.Console.In.Peek() behavior? Tag: 57938
.Net App deployment - Removing files problem
How do I instruct the Windows installer to remove the entire application
when the user clicks Remove program from Windows control panel?
After a successful setup, any files created by the application in the
application folder are not removed. This is so when the program is
"removed" from the Windows control panel. This becomes a problem if the
user decides to reinstall the application in the same location. The
*old*/legacy files, e.g. app config files, may cause a problem with the
*new* installation of the application file.
My installer program was created with a "setup and deployment" type project
is Visual Studio.NET 2003 for a .NET v 1.1 Windows Forms application. It
appears all of the property pages in the VS.NET editor address installation
and few removal issues. I reckon I'm sniffing around for a solution in the
wrong place.
--
Peter O'Reilly Tag: System.Console.In.Peek() behavior? Tag: 57935
RSA encryption with OAEP padding
I need to implement RSA encryption with OAEP padding on a Windows 2000
server. Since the Framework only supports Windows XP, does anyone know of a
third party utility that will enable me to do this?
Thanks Tag: System.Console.In.Peek() behavior? Tag: 57934
Handling events in a Windows service from a Windows Forms app
I'm interested in handling events on distributed desktops, raised by a .NET
Windows service running on a server in the same Windows network.
I have no idea where to begin.
Can anyone point me in the right direction?
Any advice is appreciated. Thanks.
Jon Tag: System.Console.In.Peek() behavior? Tag: 57933
Handling events from a Windows Service in a Windows Forms app
I'm interested in handling events on distributed desktops, raised by a .NET
Windows service running on a server in the same Windows network.
I have no idea where to begin.
Can anyone point me in the right direction?
Any advice is appreciated. Thanks.
Jon Tag: System.Console.In.Peek() behavior? Tag: 57932
How to read listbox part of OpenFileDialog
Hi All,
I am trying to find out how many files are currently listed in the listbox
part of an OpenFileDialog. I can get to the OpenFileDialog with
system.reflection, but when I drill down I run into a wall. I know it can
be done because I can see it in various object browsers I use.
Many thanks,
Bill Tag: System.Console.In.Peek() behavior? Tag: 57931
RowFilter and Find of a DataView
In a dataview, will setting the RowFilter property increase performance for
the search when using Find Method ? Tag: System.Console.In.Peek() behavior? Tag: 57930
Printing
Hey All,
I am having trouble printing from one framework to the other. Here is what I
have.
Label Printer (SATO ct-400)
I want no margins
When I use my program in studio 2002 and print it comes out fine, then I
upgrade my project to 2003 and I get a left margin. I don't understand why
all of a sudden I have a left margin? Can anyone help?
Thanks,
Sean Tag: System.Console.In.Peek() behavior? Tag: 57925
BitOr and BitAnd Not sure how to compare values
Say you have
Bold = 1 (100)
Italic = 2 (010)
Underline = 4 (001)
So the possible style values are:
Bold = 1
Italic = 2
Bold & Italic = 3 (110)
Underline = 4
Bold & Underline = 5 (101)
Italic & Underline = 6 (011)
Bold, Italic, & Underline = 7 (111)
In code how do I determine by the style number if the text should be italic.
I thought there was someway to do a bitwise AND or OR.
Is Italic in 5? FALSE
Is Italic in 3? TRUE, and so forth.
I'm working in VB.Net.
Thanks... Tag: System.Console.In.Peek() behavior? Tag: 57910
ReadOnly look and feel in DataGrid
I need to show some data in a readonly DataGrid. I was easily able to
make the grid readonly (DataGrid1.ReadOnly = True) so that data could
not be changed. But grid cells still go in edit mode (i.e., text is
selected and cursor is blinking) giving the wrong impression that the
text can be edited. This is in my opinion a design flow, BTW.
If I lock it it looks fine, but then I can't select cells, rows, or
cols, so no good either.
I'm still pretty new at this, so please be clear and thorough in your
reply. Sample code is highly appreciated.
Thanks
Simon Tag: System.Console.In.Peek() behavior? Tag: 57909
Should I download version 1.1 of the Framework?
I'm using VS.NET 2002 which has an earlier version (something like 1.30xxx)
installed. Am I right in thinking that if I download v1.1 of the framework,
VS.NET will still continue to use the earlier version it installed?
Presumably multiple versions of the framework can be installed side-by-side?
Wayne. Tag: System.Console.In.Peek() behavior? Tag: 57904
Help !
I have a function defined In a Class1.
Ex
Public Class1
Public Function GetData () as DataSet
******** Using SqlDatAdapter I fill the DataSet
******** It will return the Filled DataSet.
End Function
End Class
I have another Class which calls the GetData function of the first class.
Public Class2
Public Function UdateDatasetTODataBase()
Create Instance of the First class and Call the
GetData Function, which returns the DataSet.
'''''''' I want To Add/Update the Dataset and
reflect back to DataBase.. ****** How to Do this?????????????
End function
End Class
Using SqlDataAdapter this can be Done only if u fill the Dataset in the Same
Function, make Changes and Call the SqlDataAdapters Update method,
But I am filling the Dataset in Different function..
Is there anyway to assign already filled Dataset to SqlDataAdapter ?
TIA,
Gary Tag: System.Console.In.Peek() behavior? Tag: 57899
Version 1.1 - remove 1.0?
When I updated to version.1 version 1.0 (folder) remained and shows in
Add/Remove. Can version 1.0 be removed without messing up the rest?
--
Colonel Blip
colonel.blip@nospambigfoot.com
Remove "nospam" when replying.
__________________________________ Tag: System.Console.In.Peek() behavior? Tag: 57898