Type.GetType Access is denied
Hello,
The .NET application I have just installed at a client web site is throwing
a strange error. At first the applications works without any problems, but
after 10 mins or so Access denied error messages are thrown.
The application, web based, late binds to a series of assemblies, none of
which are in the GAC. I have configured the application to impersonate the
IIS user and have set the user to have access to all relevant directories
(wwwroot, wwwroot/bin, Microsoft.Net/framework/v1.1.4322) and disabled the
index services service.
After digging a little deeper it seems the error is thrown when calling
Type.GetType, but like I mentioned earlier everything works fine but then
suddenly dies.
Can anybody think why this is the case and what I can do to resolve this
irritating problem.
Thanks
Richard. Tag: twain scanner Tag: 80690
Oracle NET Maximum Connections reached
I am using Data.OracleClient.Dll version 1.0.1012.0 and closing the
connections in code using .close
but i still get the "Maximum connections reached" message and the
oracle server shows idle inactive connections for aspnet
The connection string used is
"Data Source=DEV001.SRV01;password=test;user id=test;Max Pool
Size=10;Min Pool Size=10"
Should i drop the use of Microsoft .NET Oracle provide and use Oracle
Net Provider, or aparently this is a know problem and microsoft has a
hotfix but i don't know where to download this from ?
any help would be greatly appreciated
Thank You Tag: twain scanner Tag: 80689
Microsoft's DNP for Oracle. HELP!! (sorry for the x-post)
Hello all,
I am currently working on a project that uses MS's .net provider for
Oracle. Now, here is where it gets WEIRD!!!
for some reason when we run it in VS.NET's IDE it is fine, a previous build
deployed (xcopy) onto a test PC is fine. However; when we have recently but
a new build on it doesn't work. The only thing (and I ain't buying it) that
my work mate says it is down to is that the path of the EXE has brackets in
it!!! When we remove the brackets it is fine (something ain't right)!!!!
Has anyone had a similar scenario or a explanation for this bizarre
behaviour????
Regards
Alan Seunarayan Tag: twain scanner Tag: 80686
httpwebrequest requeststream
I am posting to a cgi script using httpwebrequest but I have when problems
when of the parameters in the request stream has embedded spaces.
My old asp code successfully posted using a form action with fields such as
&name="Joe Jackson"
in .NET, if I pass this to the requeststream the cgi interprets some extra
double quotes
&name=""Joe Jackson""
If I leave off the quotes entirely the CGI script fails.
Does anybody know whats the best way to build the requeststream so that it
handles double quotes and spaces. Tag: twain scanner Tag: 80685
Serialized Hashtable
Hi
I've tried moving a serialized hashtable made in WinXP (std .Net
framework), to a PocketPC device (Compact Framework). I've ran in to all
kinds of problems, and have not been able to get this to work. The
problem is not in the actual filecopy.
I've tried the CompactFormatter
(http://www.freewebs.com/compactFormatter/) for binary serialization.
No luck when deserializing on the device. CF wont deserializa std
framework, vice versa.
I've tried XML serialization from opennetcf
(http://www.opennetcf.org/library/OpenNETCF.Xml.Serialization.html). Got
a problem since Hashtable implement IDictionary. For some reason.
Is there another way to do this? Is there a reason why this should not
work, or is it me who's doing this all wrong.
If Hashtable in std framework is differently implemented than the
Hashtable in CF, that would explain incompatibility when deserializing.
But is that the case?
Thanks,
Finn Tag: twain scanner Tag: 80684
cellphone bluetooth (serial) SMS receive
Hi,
does anyone know how to receive a sms from a cellphone in a c# application?
I use a Sony ericsson T610 on a bluetooth serial connection.
Thanks in advance
Jan Tag: twain scanner Tag: 80682
Binary Compatibility equivalent in .NET ?
I have a client that insists that there be some sort of binary
compatibility equivalent in the .NET assemblies I'm producing
(converted from VB6 code). I understand their concern: while you
don't *need* binary compatibility since you can just plunk in newer
versions of assemblies (unlike in COM where the entire mess had to be
recompiled if you didn't use binary compatibility), you might want
some way to warn or prevent developers from making changes that may
break an app using the assembly. I think this was the other main
advantage of binary compatibility - it prevented thoughtless breaking
changes thrown in all over the place.
Any ideas? Tag: twain scanner Tag: 80657
FileLen reports wrong file size
1. A function starts an unknown external program.
2. The external program starts writting a file.
3. The function should report the size of the file being written by the
external program.
How to achieve the 3rd point using .net framework 2003 only?
Notes:
for a certain external program
.Net's FileLen reported file size is allways 0 until the file is
closed.
Microsoft Scripting Runtime's
FileSystemObject.GetFile(FileName).Size retports the correct file size
while it is being written.
VB Tag: twain scanner Tag: 80650
Shared Static Variables in vb.net please?
Does anyone know if MS has / is planning to introduce a shared static local
variable to VB.net? I have had a few instances now where I thought this would
be a tidy way to write some code.
i.e. an instance method needs to access a shared (class) variable, and it is
the only method that needs to access it.
I really like the concept of static variables in vb.net, they make class
definitions a lot tidier I think. Just a shame they called the keyword
"static" as seems to confuse people.
Cheers. Tag: twain scanner Tag: 80649
Bug in timers.timer ?
Hi,
Maybe Iâ??m doing something wrong but I canâ??t know what.
Iâ??m using timers in my applications to do things after n seconds after do
any other thing.
Symptoms:
After a random time the Elapse event just stop to be raised. I tried to
debug and found something curious: Although I specified AutoReset property to
False, at some time in the Elapse event the Enabled property came at value of
True!!! After that happen, the Elapse event simply stop to rise. That means
that my host applications freeze will waiting some work to be done based on
that event.
Please analyze this problem. I created a simple example that demonstrates
that problem. The code is below this message. Just run it in debug mode,
click Start button and wait till form turn red. At that time the problem I
mentioned just happened. You can insert a breakpoint just after â??If
T1.Enabled Thenâ?? line at â??T1_Elapsedâ?? sub and just after â??If T2.Enabled Thenâ??
line at â??T2_Elapsedâ?? sub to analyze what is happening.
I couldnâ??t found an exact time that happened, so you can just start my
example application and do other things while wait form turn red, or
application stop at your break points.
In my example I had a button to restart timer after it stops raising events.
It seams that to restart raising Elapse events is just needed to set Enabled
property to false and call start againâ?¦ But this behavior is not good!
If I start many instances of this example app, them the error appears more
offen.
Is that a bug?
Pedro Gonçalves
Example code:
Public Class Form1
Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
End Sub
'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub
'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
Friend WithEvents Label1 As System.Windows.Forms.Label
Friend WithEvents Label4 As System.Windows.Forms.Label
Friend WithEvents Button1 As System.Windows.Forms.Button
Friend WithEvents lblCounter1 As System.Windows.Forms.Label
Friend WithEvents lblCounter2 As System.Windows.Forms.Label
Friend WithEvents Button2 As System.Windows.Forms.Button
Friend WithEvents Button3 As System.Windows.Forms.Button
<System.Diagnostics.DebuggerStepThrough()> Private Sub
InitializeComponent()
Me.Label1 = New System.Windows.Forms.Label()
Me.lblCounter1 = New System.Windows.Forms.Label()
Me.lblCounter2 = New System.Windows.Forms.Label()
Me.Label4 = New System.Windows.Forms.Label()
Me.Button1 = New System.Windows.Forms.Button()
Me.Button2 = New System.Windows.Forms.Button()
Me.Button3 = New System.Windows.Forms.Button()
Me.SuspendLayout()
'
'Label1
'
Me.Label1.Location = New System.Drawing.Point(24, 32)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(112, 16)
Me.Label1.TabIndex = 0
Me.Label1.Text = "Elapse Counter"
Me.Label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
'
'lblCounter1
'
Me.lblCounter1.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle
Me.lblCounter1.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.lblCounter1.Location = New System.Drawing.Point(24, 56)
Me.lblCounter1.Name = "lblCounter1"
Me.lblCounter1.Size = New System.Drawing.Size(112, 24)
Me.lblCounter1.TabIndex = 1
Me.lblCounter1.TextAlign =
System.Drawing.ContentAlignment.MiddleCenter
'
'lblCounter2
'
Me.lblCounter2.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle
Me.lblCounter2.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.lblCounter2.Location = New System.Drawing.Point(160, 56)
Me.lblCounter2.Name = "lblCounter2"
Me.lblCounter2.Size = New System.Drawing.Size(112, 24)
Me.lblCounter2.TabIndex = 3
Me.lblCounter2.TextAlign =
System.Drawing.ContentAlignment.MiddleCenter
'
'Label4
'
Me.Label4.Location = New System.Drawing.Point(160, 32)
Me.Label4.Name = "Label4"
Me.Label4.Size = New System.Drawing.Size(112, 16)
Me.Label4.TabIndex = 2
Me.Label4.Text = "Elapse Counter"
Me.Label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
'
'Button1
'
Me.Button1.Location = New System.Drawing.Point(24, 96)
Me.Button1.Name = "Button1"
Me.Button1.Size = New System.Drawing.Size(248, 32)
Me.Button1.TabIndex = 4
Me.Button1.Text = "Start"
'
'Button2
'
Me.Button2.Enabled = False
Me.Button2.Location = New System.Drawing.Point(28, 136)
Me.Button2.Name = "Button2"
Me.Button2.Size = New System.Drawing.Size(108, 32)
Me.Button2.TabIndex = 5
Me.Button2.Text = "Start Timer"
'
'Button3
'
Me.Button3.Enabled = False
Me.Button3.Location = New System.Drawing.Point(160, 136)
Me.Button3.Name = "Button3"
Me.Button3.Size = New System.Drawing.Size(108, 32)
Me.Button3.TabIndex = 6
Me.Button3.Text = "Start Timer"
'
'Form1
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.ClientSize = New System.Drawing.Size(304, 175)
Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.Button3,
Me.Button2, Me.Button1, Me.lblCounter2, Me.Label4, Me.lblCounter1, Me.Label1})
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle
Me.MaximizeBox = False
Me.Name = "Form1"
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
Me.Text = "Form1"
Me.ResumeLayout(False)
End Sub
#End Region
Private T1 As System.Timers.Timer
Private T2 As System.Timers.Timer
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
T1 = New System.Timers.Timer()
T1.AutoReset = False
T1.Interval = 10
T1.SynchronizingObject = Me
AddHandler T1.Elapsed, AddressOf T1_Elapsed
T2 = New System.Timers.Timer()
T2.AutoReset = False
T2.Interval = 500
T2.SynchronizingObject = Me
AddHandler T2.Elapsed, AddressOf T2_Elapsed
T1.Start()
T2.Start()
Button1.Enabled = False
End Sub
Private Sub T1_Elapsed(ByVal sender As Object, ByVal e As
System.Timers.ElapsedEventArgs) ' Handles T1.Elapsed
Static Counter As Integer
If T1.Enabled Then
' ????????????????
Me.BackColor = Color.Red
lblCounter1.BackColor = Color.LightYellow
Button2.Enabled = True
End If
Counter += 1
lblCounter1.Text = Counter
lblCounter1.Refresh()
T1.Start()
End Sub
Private Sub T2_Elapsed(ByVal sender As Object, ByVal e As
System.Timers.ElapsedEventArgs) ' Handles T2.Elapsed
Static Counter As Integer
If T2.Enabled Then
' ????????????????
Me.BackColor = Color.Red
lblCounter2.BackColor = Color.LightYellow
Button2.Enabled = True
End If
Counter += 1
lblCounter2.Text = Counter
lblCounter2.Refresh()
T2.Start()
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
T1.Enabled = False
T1.Start()
Button2.Enabled = False
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button3.Click
T2.Enabled = False
T2.Start()
Button3.Enabled = False
End Sub
End Class Tag: twain scanner Tag: 80638
propercase
ProperCase for normal usage is simple:
Dim s, s1, s2 As String
s = "DENNIS TURNER"
s1 = StrConv(s, VbStrConv.ProperCase)
Even with names it's simple Turner, Dennis
Turner, Mr. Dennis
But thereafter it can become more complicated:
Turner, Dennis Md
Turner, Dennis Phd
I can go through the 10 or 15 most likely suspects and handle them with
select case statements. However, I feel I am reinventing the wheel.
Somewhere, someplace, somebody must have created a class that already
handles a great number of these annoyances. I would appreciate being
directed to it.
Thank you.
Dennis Tag: twain scanner Tag: 80637
Function to access the encrypted filesystem.
From the explorer I can encrypt a file or directory using EFS. I would like
to do the same thing programatically. I want to write data to a file and have
it encrypted so that only I can read it. Is this possible using .NET?
Thank you.
Kevin Tag: twain scanner Tag: 80634
GetInvocationList - Getting the delegates wired up to an event
I'm wanting to retrieve a list of all the delegates that have resulted from
Events being wired up to my class.
I can see (and have been told) that "GetInvocationList" is the method to use
for this, but I can't see how, from within my class, I use this method to
achieve this. What is the delegate I'm calling GetInvocationList on??
Can someone show me what to do here please? Many thanks!
===
Phil
(Auckland | Aotearoa) Tag: twain scanner Tag: 80632
Simple question
Suppose I built an application using the .NET Framework 1.0 compiler.
Do I have to configure anything to make it run on higher versions? Tag: twain scanner Tag: 80627
installing IIS (Internet Info. Service)
I'll like to install VB.NET on my computer and do it right.
I have both: VB.NET (Standard) AND Visual Studio.NET (academic)
The book I have "warn" me:
"You must install IIS before installing VB"
So, before even placing any of those CD into my computer I'll like to know:
1. Does any of these have IIS
2. If yes, how to comply with the above warning.
3. If not - where do I get IIS
Thanks,
Uzi Tag: twain scanner Tag: 80609
is it possible
is it possible to write a tool like "netstat" and close
socket connections externally with .NET Framework
thanks,
parahat melayev Tag: twain scanner Tag: 80605
Socksified proxy ftp client ?
Hi,
I have written an FTP client in C# that communicates using sockets
(System.Net.Sockets.Socket that implements Berkeley sockets).
This does not work from behind authenticated proxies.
I have been given to understand that for the client to work from
authenticated proxies, i need to "Socksify" it.
What is this "Socksification" of client?
Any help in this direction is greatly appreciated.
Thanks in advance
regards
-Kumarforg Tag: twain scanner Tag: 80603
How to CreateDirectory to create a directory structure on a network drive
If I call CreateDirectory(\\\\devDriveA\\foo\\bar\\a\\b\\c) and
\\devDriveA\foo\bar already exists then sub directories a\b\c don't get
created. When I use CreateDirectory on my own file system, e.g.
CreateDirectory("c:\\a\\b\\c"); it works fine. Is there something that I
must do to get CreateDirectory to work on network drives? Tag: twain scanner Tag: 80599
Installing .Net Framework
Hello,
although not a typical development problem per se, it is a situation that
prevents me for developing in the .net framework v1.1.
In a Windows 2000 Server with .Net Framework version 1.0.3705 installed, all
asp & aspx files ran fine. I tried to install the newest version (1.1x)
without uninstalling version 1.0 and installation seemed fine, aspx files
were running OK. However, asp pages did not run, with an HTTP Error 500
(Internal server error). An uninstallation of the newest version, alongside a
reboot that followed, corrected the problem.
The particular server hosts numerous client asp pages, and all of them had
the Internal server error, even when application protection was at the "low"
setting.
Please note that I am not an experienced developer, so I might have missed
some tweaks that might make it work. What could have cause the problem?
TIA,
Dimitris Tag: twain scanner Tag: 80598
Accessing another domain file system in C#
If i log into my computer as domain A and user X and password Y but then I
need to give C# application access to domain B as user F and password G. Is
this possible? or do i have to log into the computer as domain B, user F and
password G in order for the application to have permissions to domain B? I
would like to stay logged in as domain A but just give my C# application
access to domain B. In my application I need file system access that users
of domain B have but from domain A. Is this possible to do programaticaly if
I have the user name and password to a domain B account? Tag: twain scanner Tag: 80595
System.Net.Sockets.Socket?
Hi, my name is Claudio.
I can't figure this out. Search the net for info..but al info is bad.
Why aren't there any events for the TcpClient and/or TcpListener.
Should I create them self? How? I tried to do this, but it seems strange to
me that this is teh correct way?
Any ideas? It would appreciate a lot!
Thank you for your time,
Claudio Tag: twain scanner Tag: 80593
Problems copying output dll's in a post build step
I have a solution that has several projects, where many of the projects
contain controls that are discovered at runtime, rather than direct
reference (this is a requirement). Therefore, the 'copy local' reference
copy mechanism of visual studio does not help me move projects around.
My first attempt at setting up the solution was to set the output directory
for the projects to a common directory. This did not work for the common
dll's that are referenced by several projects because the dll is locked,
presumeably because of intellisense. This was a while ago, so I don't
remember all the exact problems, but they all had to do with projects being
in use, preventing me to build.
My second attempt (and current) is to let each project have its own output
directory, and also copy the output in a post build step to a bin directory.
This works most of the time. However, occasionally, the post build step
will fail for some projects will fail, claiming the dll is locked -
presumeably for the same reason as my first attempt. Why this sometimes
works, and others not, I have no idea.
My question: is there any way to reliably setup a project so that I can copy
the output dll after it builds to another location. It seems like a simple
need, doesn't it?
Thanx... Tag: twain scanner Tag: 80586
Validating Email address with System.Text.RegularExpressions.RegEx
Hi John,
Using this regular expression:
"\w+([-+.]\w+)*@\w+([-.]\w+)*\.([a-zA-Z]{2,4})" and testing it with an
email address of dnlwhite@dtgnet.comabcdefg will come back and
indicate that is a valid email address but the {2,4} should restrict
the values after the '.' to no more than four characters. That's the
first part of the neither I was referring to.
Using the same expression, the email address
dnlwhite@dtgnet.com1234 also returns that it is a valid email address
but the [a-zA-Z] seems to indicate that there should not be anything
other than alphabetical characters after the '.'. That's the second
part of the neither.
However, using the ^ and $ like you indicated solves the problem
for me. Thank you for that!
Doug Tag: twain scanner Tag: 80585
Bug on DataRow object´s GetColumnsInError method
According to .NET Framework v1.1 Documentation, the DataRow object´s
GetColumnsInError method gets an array of columns that have errors. This
description made me think, develop and test a .NET Windows Application in a
disconnected scenario.
This application has a WindowsForm with a SqlDataAdapter object that fills a
DataSet object. The resultant relational data is then displayed on a
DataGrid control. At this time, the data can be modified.
In this situation, various instances of the same .NET Windows Application
running simultaneously can generate a System.Data.DBConcurrencyException
when the SqlDataAdapter object´s Update method is called. Note that the
SqlDataAdapter object is configured to use optimistic concurrency.
If this exception occurs, the exception-handling structure´s Catch block can
implement code to show, for example, a friendly message to the user
detailing the accurate cells that had caused the errors.
DataSet, DataTable and DataRow objects have the boolean property HasError
that help developers to find rows with errors. The only information missing
to show in the friendly message is the columns with these errors. To
discriminate only the rows is not enough.
To get these columns, the perfect method would be GetColumnsInError of the
DataRow object. But concurrency exceptions do not set errors in DataColumns
objects. In other words, the GetColumnsInError method do not return any
columns. I assume that this behavior is a bug.
Is there another way to reach this goal?
Thank´s,
Otávio F. Ferreira Filho
[Microsoft Certified Professional] Tag: twain scanner Tag: 80581
Compact Framework firewall issue
MS Support:
At one customer site, we can connect to the web from Pocket IE, but we can't
from our .NET CF app.
If we set the Passthrough setting in ActiveSync to "Work" and try to connect
to the web from Pocket IE, we get a popup window that gives the firewall
name and asks for a user, password, and domain. We enter an employee's
username and password and the domain name and the web site comes up ok.
In our .NET CF app, I specify the SAME user, pw, and domain as Credentials
on the WebRequest and WebProxy objects, but we still get back a "407 Proxy
Authentication" error. I think maybe their firewall might require NTLM
Authentication or the SOCKS protocol but I don't know.
Any help?
Mike Wasson
Pharmaconomics, Inc. Tag: twain scanner Tag: 80580
System.Data.OracleClient problem?
I'm having a rather strange problem calling the .NET Framework to access an
Oracle database.
I have a function that returns a dataset of all the tables on a specified
oracle server. When I call this function I get an oracle error that says
'ORA-06413: Connection not open.' Here's the strange part. Other people can
load my code in the IDE and it will run fine. I can call this exact same
function with the exact same parameters from another project and it works
fine (we both have the same reference to the same DLL file). I can also
access the Oracle server via SQLPlus with no problems. It is only in the one
app that I get the error.
The error is being thrown by the
System.Data.OracleClient.DBObjectPool.GetObject(Object owningObject, Boolean&
isInTransaction)
I think there's something set up wrong in the IDE for that project to cause
this problem, but I can't figure out what it could be. I am running the .NET
Framework 1.1
Any help would be appreciated,
Itar Tag: twain scanner Tag: 80578
MailAttachment locked...how to unlock
I've ran into the issue that while sending a MailMessage with
MailAttachments, an exception is thrown because of network issues. It
appears that the attachment file is still locked (documentation does state
that during the email xfer, the file is locked). I can't see a way to
unlock the file...MailMessage and MailAttachment objects don't have Dispose
or Close methods.
Any ideas on how to unlock the file??
Amil Tag: twain scanner Tag: 80574
namespaces - what's the point?
Hi
Can somebody please tell me what namespaces are actually for?
I notice that when I start a new project in C#, it puts everything in a
namespace of the same name as the project.
I found them a bit annoying as when I save a class's .cs file to my 'generic
code' folder, and then put it in another project, I have to manually go and
change the namespace name. This I find a bit of a PITA.
I used VB.NET for a bit and found it didn't have namespaces by default, but
that it can have them if it wants. I also found that although C# has them by
default, I don't actually have to have them in order to compile.
So - they're not necessary, and seeing as I don't like them, why can't I
turn them off?
And what's the logic behind them being optional in both languages, but on by
default in C# yet off by default in VB.NET? Tag: twain scanner Tag: 80556
Modify registry with vb.net
Hi,
i want to modify some key in my registry with a vb.net application.
all is fine except with DWORD registry key.
I don't know how to change their value !
any1 ?
thx
hegms Tag: twain scanner Tag: 80555
Can you reverse the sort order of a sortedlist class
Hi,
I am using the sortedlist class but would like the order of the class to be
reversed. I know i could loop through the sortedlist class backwards using
the index but i would rather have a method on my class which has a private
instance of the sortedlist class and be able to specify the order that the
sortedlist class is sorted by. Is this possibe? I know an alternative is to
use the arraylist class where i can reverse order but this doesn't allow me
to access the objects in the arraylist by a key which the sortedlist class
does?
ANy help would be excellent.
THanks
T Tag: twain scanner Tag: 80554
A .Net Trick Everyday! (subject of today: SHA1 - Secure Hash Algorithm Class)
Dear Member,
Today, the hot.Net members received both C# and VB.NET code with subject
"158# SHA1 (Secure Hash Algorithm) class for the passwords and the others".
If you didn't receive it, this means you are not a hot.Net member.
"HotDotNet" is a Yahoo group which sends to its members both C# and VB.NET
code (fully tested).
Please click the link below to join.
http://groups.yahoo.com/group/hotdotnet/join
Regards
Nuri Yilmaz Tag: twain scanner Tag: 80553
activating an application
I'm developing a stand-alone windows application i VB.NET. The app starts
another application via the Process class in background (no window yet) and
then establishes a socket communication between them.
The main-app has a button which shall activate the 2nd app to display it's
main frame. Arguments are sent via the socket and the 2nd app responds and
shows the desired frame.
And now to my problem: everything works fine except that the 2nd app is not
becoming the active application, it is displayed under the main app's window.
How can I force the 2nd app to become the active application?
Two desired solution alternatives could be:
1) the main app forces the 2nd app to be the active application (via the
Process instance)
2) the 2nd app forces himself to be the active application
I hope that someone has hints to this! Tag: twain scanner Tag: 80552
Unable to load dll
I am working for migrating java applet - > J# Class Library.
Applet was developed as MS VJ++ 6.0 Project .
I have VS .NET 2003.
I had loaded and installed Browser Controls Official Release v1.1b .
I had finished migrating of java code and dll was created successful .
I had loaded and installed tagconvert.exe.
I had convertred start page with definition of <APPLET> by this tool.
Please look at the modified section :
<object
MAYSCRIPT
VIEWASTEXT CLASSID="clsid:a399591c-0fd0-41f8-9d25-bd76f632415f"
ID="myapplet" VJSCODEBASE="myapplet.dll#myapplet" >
<PARAM NAME = param1 VALUE = "20000">
</object>
Then I made corresponding virtual directory under IIS and checked that
myapplet.dll is in appropriate folder.
Then I typed in IE address field: http://localhost/myapplet/main.html and
....:
1. Message box "The evaluation period of J# Browser Controls Utility v1.1b
Beta has expired.Please install a newer release of product". OK. Passed.
2. Empty 'Gray screen' and in status bar in the bottom of IE window :
Unable to load http://localhost/myapplet/myapplet.dll
What is wrong ?
What is my next step in migrating process ?
Have I to change something else before to load myapplet.dll ?
Thank you in advance ,
Eugene Tag: twain scanner Tag: 80551
Process.GetProcessesByName FileLength
Hello,
Is it true and a nown issue that I can't retrieve any process from which the
filelengt of the executable exceeds 14 characters.
In my case for example, I wanted to retreive the running process of a
windows service with the name "SomeNameOfTheService.exe" and the
Process.GetProcessesByName("SomeNameOfTheService") does return a process.
When I try to retreive the processes WorkingSet for example, I get an
exception.
If I uninstall the service, rename the executable to "MyService.exe" for
example, reinstall it and try exactly the same code
(Process.GetProcessesByName("MyService") I am able to retreive the WorkingSet
of the process.
We resolved the problem by renaming the executable to a shorter name, but we
are curious to find out if it is a known bug.
Michel Meex Tag: twain scanner Tag: 80547
.NET Framework 1.1
Hi all
Just wanted a confirmation
We want to upgrade our application written using Framework 1.0 and VS .NET
2002 to Framework 1.1. I was told that in order to use Framework 1.1, the VS
will have to be upgraded to 2003. Is this true?
TIA
Regards,
Wazir Tag: twain scanner Tag: 80543
Is COM+ include in .NET Platform Solution?
Halo,
Do anyone know that is COM+ is package together with Visual .NET Platform or
it was an old technologies lastime?
Thank you.
Regards,
Keem Tag: twain scanner Tag: 80540
Split a row in a datagrid
We need to wrap one row into two rows in a datagrid. What would be the right
approach for this ?
Thanks. Tag: twain scanner Tag: 80532
COM+
We tried to use the COM+ Transaction management system . However, we found
that it did not work with Oracle version 8.1.7. Is there any such
restriction in the compatibility of COM+ with earlier versions of Oracle ?
Thanks. Tag: twain scanner Tag: 80531
Re: Internal constructor "visible" outside of assembly. Compiler bug?
Martin,
OK... I've tried your code and yes, it doesn't compile (I guess I
should have tried to run the code before posting!!).
I agree with what JD says -- the compiler probably needs this
information to hook up the right constructor, *but* in my opinion the
accessibility of the constructor should have been checked first by the
compiler. There's no point checking if a constructor is a good match if
it can't be used anyway.
Sure enough, even after adding a reference to DataManager, the
following code doesn't compile either,
namespace Foo.UserInterface
{
public class GUI
{
public void AddItem()
{
Foo.DataManager.TransactionHandler t = null;
CategoryItem category = new CategoryItem(t);
}
}
}
with the message:
'Foo.Kernel.CategoryItem.CategoryItem
Foo.DataManager.TransactionHandler)' is inaccessible due to its
protection level
So, the bug is not with the compilers interpretation of the internal
keyword, but with the initial check for choosing the right constructor.
Would someone at MS like to confirm this? Tag: twain scanner Tag: 80522
1 and 2
Hi all,
any of u have exp with having version 1.1 of the .Net framework and version
2 (Beta) installed side by side?
is it even possible?
any input is greately appreciated.
thanks and regards
jim Tag: twain scanner Tag: 80520
Time delay/lapse when adding days to a time value
Hello,
I do the following:
DateTime dt = DateTime.Today.AddDays(0); // that's a zero
then on my machine, the DateTime.ToString("yyyy-MM-dd") returns a date that
is YESTERDAY!
Thinking that I'd be clever, I then did the following:
DateTime dt = DateTime.Today.AddDays(1); // yup, one day
this resulted in the ToString("yyyy-MM-dd") being 2 DAYS in the past!
I checked my timezone settings on the computer, and they all show the
correct time. Any ideas??
Thanks
-- Jake Tag: twain scanner Tag: 80516
JMS-style Topics
The .Net program I am writing needs to use JMS-style topics. Is there a way
to make a MS Message Queue work like a JMS Topic. Or is there a way to
access a JMS Topic (preferable WebLogic 8) from a .Net application.
Requirements:
Multiple listeners on one queue.
All listeners get all messages.
Messages are deleted after all active listeners have read them.
First Attempt
Have messages with a limited TimeToBeReceived value. Use PeekNext
instead of Receive to walk through the queue.
Failed because System.Messaging doesn't expose the PeekNext method
available to VB/C++.
Any suggestions?
Jonathan Allen Tag: twain scanner Tag: 80510
How to refresh my own quick watch window
I make a Add-in to debugger. It is a dataset quick watch. That displays a
dataset during debugging. It works fine.
I don't know how to make the quick watch window refresh itself when the
conent changes.
Thanks for any help,
Lily Tag: twain scanner Tag: 80504
How to: Object to pointer/handle and pointer/handle to Object
Hi,
I'm using message queue and would like to know how do I return a IntPtr to
the MessageQueue object I created in
IntPtr MessageQueueCreate(string name){
MessageQueue mq = new MessageQueue.Create(".\Private$\"+name);
return ??
...
}
and How do I use that IntPtr to get back the object (to enqueue a message)
MessageQueueEnqueue(IntPtr ptr, Message mes){
...
}
Thx,
Johann Tag: twain scanner Tag: 80498
zeromem strings
Since strings are immutable in .net, is there any way to do the equivalent
of a zeromem so their contents would not be part of a memory dump? Tag: twain scanner Tag: 80496
free database server for desktop application with ado.net driver
greetings
I need to develop an aplication that needs a database. The application
is small and the use of SQL Server is not a choice. Can anyone give me
hists about *free* database engines with ado.net support?
TIA
Lum Tag: twain scanner Tag: 80484
Use Load or LoadFrom to load an assembly
Hi,
Which method is recommended (load or loadfrom) for loading
assemblies, both in terms of performance and versioning of assmeblies?
Thanks
Karen Tag: twain scanner Tag: 80480
can i import images from a twain device such like scanner ?
Based on my knowledge, there is no managed class for the TWAIN so far. We
have to do that by P/Invoke the Twain_32.dll to do the job.
Here is .net sample, you may take a look.