Bug: Localization for Button Control in inherited UserControl
Hi everyone,
After trying to make this work for a while I didn't get a chance to
obtain what i was supposed to, so here is the description of the bug (I
think) I found :
Steps to reproduce :
1. Create a new Windows Application project.
2. Create a UserControl (ex: UCMenu) and set it to localizable in
design time.
3. Put one Label and one Button on it(ex. name: buttonToLook), set on
them different Text properties values depending on languages (ex:
(default) & fr).
4. Expose Text properties of all 4 controls with localizable attribute
on it ([Localizable(true)]).
4. Create a UserControl (ex. name: UCInheritedUCMenu) inheriting from
UCMenu, set it to localizable in design time.
5. Put UCInheritedUCMenu on the project main form (and set form also to
Localizable).
6. In Program.cs, set Thread.CurrentThread.CurrentUICulture to "fr".
7. Run the application and notice that only buttonToLook does not take
its localisable value (you can add other controls on UCInheritedUCMenu
or form to see that only buttonToLook is not localized).
8. Comment Text property exposure for buttonToLook and run the
application again : text of button is now localized.
Thanks for all your help.
Hope You'll give a correction for this :-) Tag: Socket.BeginReceive with timeout Tag: 124465
Spontaneous NullReferenceException in System.Windows.Forms
In our .NET Framework 1.1 Application that is installed on about 800
PC's we have 5 PC's that has spontaneous NullReference Exceptions
(Windows XP & 2000 uptodate) in System.Windows.Forms. We already
removed any Crossthread Calls. Reinstalling and replacing the computer
hasn't brought us any better results. In some cases this exception only
appears twice a week, sometimes 20 times a day depending on workingday
or / and computer. Here are the two different call stacks (sometime it
appears also with SetActiveCore:
Stack Trace:
at System.Windows.Forms.UnsafeNativeMethods.PeekMessage(MSG& msg,
HandleRef hwnd, Int32 msgMin, Int32 msgMax, Int32 remove)
at
System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(Int32
dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32
reason, ApplicationContext context)
at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason,
ApplicationContext context)
at System.Windows.Forms.Application.RunDialog(Form form)
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at System.Windows.Forms.Form.ShowDialog()
Stack Trace:
at System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef hWnd,
Int32 nCmdShow)
at System.Windows.Forms.Control.SetVisibleCore(Boolean value)
at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at System.Windows.Forms.Form.ShowDialog() Tag: Socket.BeginReceive with timeout Tag: 124463
Other printing problem (resolution not honored)
Before printing I create an instance of PrintDocument as Follow (beware,
pseudo code)
//==============================
PrinterResolution pr = new PrinterResolution();
pr.X= 600;
pr.Y= 600;
pr.Kind = PrinterResolutionKind.High;
PrinterSettings printer = new PrinterSettings();
printer.PrinterName = "my printer";
printer.PageSettings.PrinterResolution = pr;
PrintDocument pd = new MyPrintDocument();
pd.PrinterSettings = ps;
//==============================
That seems to work, even in OnPrintPage() the printer resolution is the one
I requested.
On top of that the resolution is one supported by the printer (according to
the PrinterSettings class)
Yet it doesn't seemed to be honoured! :(
Any tip? Tag: Socket.BeginReceive with timeout Tag: 124454
an existing connection was forcibly closed by the remote host
Hello,
I am developing an HTTP/1.1 proxy server in c#.net. I am encountering
the following exception when I try to send the response body back to
the client: "An existing connection was forcibly closed by the remote
host". This exception is thrown by the Socket.Send() method (where the
specific socket in this case is the client socket).
Additionally, if I do not send the response headers back to the client,
I do not get this error when sending the response body.
Any ideas/pointers on this issue?
Thanks,
Vishal Tag: Socket.BeginReceive with timeout Tag: 124450
Printing Problem
Before printing I create an instance of PrintDocument as Follow (beware,
pseudo code)
//==============================
PaperSize ps = new PaperSize();
ps.Kind = PaperKind.A3
ps.Width = 1169;
ps.Height = 1654;
PrinterSettings printer = new PrinterSettings();
printer.PrinterName = "my printer";
printer.PageSettings.PaperSize = ps;
PrintDocument pd = new MyPrintDocument();
pd.PrinterSettings = ps;
//==============================
As you culd see I set the page's size (I set only value listed in the list
of PaperSize of the printer).
Now my problem is, whatever I do, it seems do ignore my page settings!!!
Am I missing something? Tag: Socket.BeginReceive with timeout Tag: 124449
Handling unknown elements with a ConfigurationElement
Hi,
Since the IConfigurationSectionHandler interface has been deprecated
since the introduction of .NET 2.0, I'm trying to use the new
configuration classes to handle a custom configuration section. I've
gone through all the samples and MSDN docs, but none of them answer my
question. What is specific (I think) is that I want to have a child
element that is not known until runtime:
<processingService>
<processes>
<process name="Process1" type="SomeNamespace.Process1,
SomeAssembly">
....elements specific to the Process1 class
</process>
<process name="Process2" type="SomeNamespace.Process2,
SomeAssembly">
....elements specific to the Process2 class
</process>
</processes>
</processingService>
Essentially, I want to allow each <process> element to have some child
elements only known by the class that it refers to (e.g. Process1).
I've defined the ConfigurationSection, ConfigurationElementCollection,
ConfigurationElements and ConfigurationProperties as it should, and
everything works fine until I add some arbitrary child elements. The
configuration framework then throws an exception resulting from the
unrecognized elements.
As a workaround, I can prevent that exception by overriding the
OnDeserializeUnrecognizedElement method of the ConfigurationElement
that represents the <process> element. I can even extract the child XML
and store it somewhere. But with that, I want to be able to deserialize
that XML to a ConfigurationElement subclass provided by the ProcessX
class (because they are the only ones who should know what that XML
means). Unfortunately, there is no method or interface I can find to
manually serialize some XML to a ConfigurationElement subclass.
Question 1: What is the preferred way of dealing with unknown child
elements in .NET 2.0?
Question 2: How can I programmatically (de)serialize XML to/from a
ConfigurationElement subclass which has properties that have
[ConfigurationProperty] attributes on them.
Dennis Doomen
ICT Consultant / Software Architect
Ordina SI&D Development Centre Microsoft
Ringwade 1
3439 LM Nieuwegein
Email: dennis.doomen@ordina.nl
Weblog: blog.smart-ms.ordina.nl en www.dennisdoomen.net Tag: Socket.BeginReceive with timeout Tag: 124437
Handling unknown elements with a ConfigurationElement
Hi,
Since the IConfigurationSectionHandler interface has been deprecated
since the introduction of .NET 2.0, I'm trying to use the new
configuration classes to handle a custom configuration section. I've
gone through all the samples and MSDN docs, but none of them answer my
question. What is specific (I think) is that I want to have a child
element that is not known until runtime:
<processingService>
<processes>
<process name="Process1" type="SomeNamespace.Process1,
SomeAssembly">
....elements specific to the Process1 class
</process>
<process name="Process2" type="SomeNamespace.Process2,
SomeAssembly">
....elements specific to the Process2 class
</process>
</processes>
</processingService>
Essentially, I want to allow each <process> element to have some child
elements only known by the class that it refers to (e.g. Process1).
I've defined the ConfigurationSection, ConfigurationElementCollection,
ConfigurationElements and ConfigurationProperties as it should, and
everything works fine until I add some arbitrary child elements. The
configuration framework then throws an exception resulting from the
unrecognized elements.
As a workaround, I can prevent that exception by overriding the
OnDeserializeUnrecognizedElement method of the ConfigurationElement
that represents the <process> element. I can even extract the child XML
and store it somewhere. But with that, I want to be able to deserialize
that XML to a ConfigurationElement subclass provided by the ProcessX
class (because they are the only ones who should know what that XML
means). Unfortunately, there is no method or interface I can find to
manually serialize some XML to a ConfigurationElement subclass.
Question 1: What is the preferred way of dealing with unknown child
elements in .NET 2.0?
Question 2: How can I programmatically (de)serialize XML to/from a
ConfigurationElement subclass which has properties that have
[ConfigurationProperty] attributes on them. Tag: Socket.BeginReceive with timeout Tag: 124436
How can I use Regasm on server?
Hello all. I have an assembly that needs to be registered on a server for
use with SQL Server 2k. Locally I can run Regasm from the VS.NET command
window and that's that. But how can I get the assembly registered on the (or
any) server? I have the dll, snk...all that, but I can't figure out how to
register the thing so my procs don't return the "Invalid Class String" error
(for lack of a ProgID)?
I'm very new to having to use this tool, so I may be just overlooking
something pretty basic.
Thanks for your help!
Bryan Tag: Socket.BeginReceive with timeout Tag: 124432
FileSystemWatcher help!
Okay, I am writing a service that monitors the file system on one of
our servers and I can take of that in a cinch. However, I found no
properties or methods available to see who the user is that controls
the process performing the deletion. I also need to know what
application is doing the delete. I only want to know when a user is
manually delete a file through windows explorer. Any suggestions? Any
P/Invoke hooks? Tag: Socket.BeginReceive with timeout Tag: 124424
IO.Compression and Encryption
Hi,
Environment: VB 2005 Professional
Both ends, its the application which is doing the functionalities.
At the despatch end, We have a text file which is to be compressed and
encrypted and sent over to the recepient.
At the recepient end, the file is decrypted and then decompressed.
Say the original file is CreateTestPort3.txt
CreateTestPort3.txt: 1306 KB (original file)
TestGZipped:151 KB (compressing the original file using GZipStream)
EncryptText:151 KB (encrypting the compressed file)
DecryptText: 76 KB (decrypting the earlier file)
CreateTestPort3GOriginal: 0 KB (decompressing the file)
We receive an error at this stage:
Error : An unhandled exception of type 'System.IO.InvalidDataException'
occurred in System.dll
Additional information: The magic number in GZip header is not correct. Make
sure you are passing in a GZip stream.
Can anyone point out what are we doing wrong? If we just compress and
decompress the file using the same code, its perfect. If we encrypt and
decrypt the file using the same class, its perfect. But if we do the
combination of compression and encryption, the file is totally messed up.
Any reasons?
For the sake of testing, we did both the functionalities of recepient and
despatch end in the same project...
The code for above is here:
Dim SecKey As String = "Tashgktt"
Private Sub cmdComGZipped_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmdComGZipped.Click
Dim outfile, infile As FileStream
Dim zipStream As GZipStream
Dim sw As StreamWriter
Dim sr As StreamReader
Dim ms As MemoryStream
Dim info As FileInfo
infile = New FileStream("Y:\CreateTestPort3.txt", FileMode.Open,
FileAccess.Read)
outfile = New FileStream("Y:\TestGZipped.xip", FileMode.Create,
FileAccess.Write)
zipStream = New GZipStream(outfile, CompressionMode.Compress, False)
sr = New StreamReader(infile)
sw = New StreamWriter(zipStream)
Do While Not sr.EndOfStream
sw.WriteLine(sr.ReadLine)
Loop
sw.Close()
sr.Close()
zipStream.Close() ' important to close this first to flush compressed stream
outfile.Close() ' important to close this second to flush output stream
infile.Close()
info = New FileInfo("Y:\TestGZipped.Xip")
MsgBox(info.Length.ToString)
'//Encrypt the file
EncryptFile("Y:\TestGZipped.xip", "Y:\EncryptText.enc", SecKey)
End Sub
Private Sub cmdDecomGZipped_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmdDecomGZipped.Click
Dim outfile, infile As FileStream '
Dim ZipStream As GZipStream
Dim sw As StreamWriter
Dim sr As StreamReader
Dim info As FileInfo
'//Decrypt the file
DecryptFile("Y:\EncryptText.enc", "Y:\DecryptText.XIP", SecKey)
infile = New FileStream("Y:\DecryptText.XIP", FileMode.Open,
FileAccess.Read)
outfile = New FileStream("Y:\CreateTestPort3GOriginal.txt", FileMode.Create,
FileAccess.Write)
ZipStream = New GZipStream(infile, CompressionMode.Decompress, False)
sr = New StreamReader(ZipStream)
sw = New StreamWriter(outfile)
Do While Not sr.EndOfStream
sw.WriteLine(sr.ReadLine)
Loop
sw.Close()
sr.Close()
ZipStream.Close() ' important to close this first to flush compressed stream
outfile.Close() ' important to close this second to flush output stream
infile.Close()
info = New FileInfo("Y:\CreateTestPort3GOriginal.txt")
MsgBox(info.Length.ToString)
End Sub
Error : An unhandled exception of type 'System.IO.InvalidDataException'
occurred in System.dll
Additional information: The magic number in GZip header is not correct. Make
sure you are passing in a GZip stream.
The Encrypt/Decrypt is done by the following:
Imports System.IO
Imports System.Security.Cryptography
Imports System.Runtime.InteropServices
Imports System.Text
Module EncryptDecrypt
' Call this function to remove the key from memory after it is used for
security.
<DllImport("kernel32.dll")> _
Public Sub ZeroMemory(ByVal addr As IntPtr, ByVal size As Integer)
End Sub
' Function to generate a 64-bit key.
Function GenerateKey() As String
' Create an instance of a symmetric algorithm. The key and the IV are
generated automatically.
Dim desCrypto As DESCryptoServiceProvider =
DESCryptoServiceProvider.Create()
' Use the automatically generated key for encryption.
Return ASCIIEncoding.ASCII.GetString(desCrypto.Key)
End Function
Sub EncryptFile(ByVal sInputFilename As String, _
ByVal sOutputFilename As String, _
ByVal sKey As String)
Dim fsInput As New FileStream(sInputFilename, _
FileMode.Open, FileAccess.Read)
Dim fsEncrypted As New FileStream(sOutputFilename, _
FileMode.Create, FileAccess.Write)
'Dim Key = sKey
'Dim IV = sKey
Dim DES As New DESCryptoServiceProvider()
'Set secret key for DES algorithm.
'A 64-bit key and an IV are required for this provider.
DES.Key = ASCIIEncoding.ASCII.GetBytes(sKey)
'Set the initialization vector.
DES.IV = ASCIIEncoding.ASCII.GetBytes(sKey)
'Create the DES encryptor from this instance.
Dim desencrypt As ICryptoTransform = DES.CreateEncryptor()
'Create the crypto stream that transforms the file stream by using DES
encryption.
Dim cryptostream As New CryptoStream(fsEncrypted, _
desencrypt, _
CryptoStreamMode.Write)
'Read the file text to the byte array.
Dim bytearrayinput(fsInput.Length - 1) As Byte
fsInput.Read(bytearrayinput, 0, bytearrayinput.Length)
'Write out the DES encrypted file.
cryptostream.Write(bytearrayinput, 0, bytearrayinput.Length)
cryptostream.Close()
fsInput.Close()
fsEncrypted.Close()
End Sub
Sub DecryptFile(ByVal sInputFilename As String, _
ByVal sOutputFilename As String, _
ByVal sKey As String)
'Dim Key = sKey
'Dim IV = sKey
Dim DES As New DESCryptoServiceProvider()
'A 64-bit key and an IV are required for this provider.
'Set the secret key for the DES algorithm.
DES.Key() = ASCIIEncoding.ASCII.GetBytes(sKey)
'Set the initialization vector.
DES.IV = ASCIIEncoding.ASCII.GetBytes(sKey)
'Create the file stream to read the encrypted file back.
Dim fsread As New FileStream(sInputFilename, FileMode.Open, FileAccess.Read)
'Create the DES decryptor from the DES instance.
Dim desdecrypt As ICryptoTransform = DES.CreateDecryptor()
'Create the crypto stream set to read and to do a DES decryption transform
on incoming bytes.
Dim cryptostreamDecr As New CryptoStream(fsread, desdecrypt,
CryptoStreamMode.Read)
'Print out the contents of the decrypted file.
Dim fsDecrypted As New StreamWriter(sOutputFilename)
fsDecrypted.Write(New StreamReader(cryptostreamDecr).ReadToEnd)
fsDecrypted.Flush()
fsDecrypted.Close()
fsread.Close()
cryptostreamDecr.Close()
End Sub
End Module Tag: Socket.BeginReceive with timeout Tag: 124422
combobox find item by value
Is there any way in a combobox to find the index of an item or set the item
in a combobox by the value? I know there is a FindString, and a
FindStringExact method in the combobox object, but is there anything simmilar
or any work around to getting the index of an object or setting the
selecteditem by the value? Any help is appreciated, thank you. Tag: Socket.BeginReceive with timeout Tag: 124421
Framework files location for compile
On our development machines I created some batch file for compiling our web
apps.
They make use of some environment variables and batch files that visual
studio installs.
if "%VS80COMNTOOLS%"=="" goto error_no_VS80COMNTOOLS
rem set path of aspnet_compiler for the framework in vs80
call "%VS80COMNTOOLS%vsvars32.bat"
On my machine
VS80COMNTOOLS=C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\
vsvars32.bat sets a lot of environment stuff but, basically it puts into
the path the location of
aspnet_compiler and aspnet_regiis
This is great because I don't have to hard code the path or worry about new
paths if the framework gets upgraded.
Unfortunately, I now need to compile on a computer which does not have VS
installed. Thus no environment variables or vsvars32.bat file.
Is their an automated way to get the most recent path to aspnet_compiler
and aspnet_regiis?
thanks, Tag: Socket.BeginReceive with timeout Tag: 124419
How do I Sleep for a specified amount of time and relinquish contr
In the docs for Thread.Sleep() it appears unless I specify 0 my thread will
still use the rest of its quanta (I guess doing nothing useful) as opposed to
being suspended right away to allow other runable thread to execute.
What's the best way to sleep for a specified amount of time and relinquish
control right away as opposed to using up the rest of my quanta? Do I need
to call the Win32 Sleep()? Do I need to call WaitOne() on a synchronization
object?
--
Thanks,
Nick
nicknospamdu@community.nospam
remove "nospam" change community. to msn.com Tag: Socket.BeginReceive with timeout Tag: 124418
Howto Identify an Exception?
Hi,
For some procedures that throws exceptions, I would like to show different
messages to the user depending on what type of exception he's getting. For
instance this one: when the file is locked, I want a messagebox to tell that
the user has to close the file first.
Is there a way to identify an exception by some kind of unique number or
something like this? I don't want to identify it on the Exception Message
because some users are using French OS, and it'sj sutn ot right in my
opinion :-)
Thanks a lot in advance,
Pieter
Exemple of the exception:
Exception Source: mscorlib
Exception Type: System.IO.IOException
Exception Message: The process cannot access the file 'C:\Documents and
Settings\LBN\Desktop\Proforma.xls' because it is being used by another
process.
Exception Target Site: WinIOError
---- Stack Trace ----
System.IO.__Error.WinIOError(errorCode As Int32, maybeFullPath As String)
Ghost.exe: N 2015149
System.IO.FileStream.Init(path As String, mode As FileMode, access As
FileAccess, rights As Int32, useRights As Boolean, share As FileShare,
bufferSize As Int32, options As FileOptions, secAttrs As
SECURITY_ATTRIBUTES, msgPath As String, bFromProxy As Boolean)
Ghost.exe: N 00998
System.IO.FileStream..ctor(path As String, mode As FileMode, access As
FileAccess)
Ghost.exe: N 00057
System.Windows.Forms.SaveFileDialog.OpenFile()
Ghost.exe: N 00154
Microsoft.Reporting.WinForms.ExportDialog.PromptFileName(fileExtension As
String)
Ghost.exe: N 00369
Microsoft.Reporting.WinForms.ExportDialog.OnExportCompleteUI(result As
ProcessThreadResult, data As Object)
Ghost.exe: N 00116 Tag: Socket.BeginReceive with timeout Tag: 124411
How to script the creation of a client in DHCP
Hello,
I'm trying to create a program for automaticaly create a client in the
dhcp.
I can enumerate the subnets and clients but I can't create client...
error 1783
I 'm usind the Dhcpsapi dll with the DhcpCreateClientInfo function.
Can some one have an example please ?
Thks
Sam
My code : VB 2005
Declare Unicode Function DhcpCreateClientInfo Lib "Dhcpsapi" (ByVal
ServerIpAddress As String, ByRef ClientInfo As IntPtr) As Integer
Private Structure DHCP_CLIENT_INFO
Dim ClientIpAddress As Int32
Dim SubnetMask As Int32
Dim ClientHardwareAddress As DHCP_BINARY_DATA
<MarshalAs(UnmanagedType.LPWStr)> _
Dim ClientName As String
<MarshalAs(UnmanagedType.LPWStr)> _
Dim ClientComment As String
Dim ClientLeaseExpires As DHCP_DATE_TIME
Dim OwnerHost As DHCP_HOST_INFO
End Structure
<StructLayout(LayoutKind.Sequential)> _
Private Structure DHCP_BINARY_DATA
Dim DataLength As Int32
Dim Data As IntPtr
End Structure
<StructLayout(LayoutKind.Sequential)> _
Private Structure Date_Time
<MarshalAs(UnmanagedType.U4)> _
Dim dwLowDateTime As UInt32
<MarshalAs(UnmanagedType.U4)> _
Dim dwHighDateTime As UInt32
End Structure
<StructLayout(LayoutKind.Sequential)> _
Public Structure DHCP_DATE_TIME
Dim dwLowDateTime As Integer
Dim dwHighDateTime As Integer
End Structure
Private Structure DHCP_HOST_INFO
Dim IpAddress As Int32
<MarshalAs(UnmanagedType.LPWStr)> _
Dim NetBiosName As String
<MarshalAs(UnmanagedType.LPWStr)> _
Dim HostName As String
End Structure
'************************************************************************
Sub Main()
Dim new_dhcp_client As DHCP_CLIENT_INFO
Dim new_dhcp_client_mac As DHCP_BINARY_DATA
Dim mac_memory As MAC_INFO
mac_memory.MAC5 = &H0
mac_memory.MAC4 = &HB
mac_memory.MAC3 = &H5D
mac_memory.MAC2 = &H9A
mac_memory.MAC1 = &H5C
mac_memory.MAC0 = &H3A
Dim macArray(6) As Byte
macArray(0) = mac_memory.MAC0
macArray(1) = mac_memory.MAC1
macArray(2) = mac_memory.MAC2
macArray(3) = mac_memory.MAC3
macArray(4) = mac_memory.MAC4
macArray(5) = mac_memory.MAC5
Dim pnt As IntPtr = Marshal.AllocHGlobal(6)
Marshal.Copy(macArray, 0, pnt, 6)
new_dhcp_client_mac.Data = pnt
new_dhcp_client_mac.DataLength = 6
new_dhcp_client.ClientComment = "TEST BY SAM"
new_dhcp_client.ClientName = "TESTBYSAM"
new_dhcp_client.OwnerHost.HostName = "dhcpservername"
new_dhcp_client.OwnerHost.IpAddress = -1633184056
new_dhcp_client.OwnerHost.NetBiosName = "dhcpservername"
new_dhcp_client.SubnetMask = -256
new_dhcp_client.ClientHardwareAddress = new_dhcp_client_mac
new_dhcp_client.ClientIpAddress = -1633184058
Dim xx As New IntPtr
xx = Marshal.AllocHGlobal(Marshal.SizeOf(new_dhcp_client))
Marshal.StructureToPtr(new_dhcp_client, xx, False)
Dim errortt As Integer = 0
errortt = DhcpCreateClientInfo("ipservername", xx)
end sub Tag: Socket.BeginReceive with timeout Tag: 124405
.Net 3.0 Administrative Setup
.Net 3.0 deployment via Active Directory and Group Policy seems pretty broken
to me. The most up to date info I can find is in the RTM SDK under
'Microsoft .NET Framework 3.0 Administrator Deployment Guide'.
The script at the bottom of that article ignores the WIC and XPS components
of dotnetfx3.exe and the command to extract wcf.exe does not work. WCF.exe
/? indicates there is no /c switch for wcf.exe.
Could someone from MS have a look at this and provide a working script or
other instructions on how to deploy with Group Policy?
Thanks
Michael Tag: Socket.BeginReceive with timeout Tag: 124403
Can't install hotfix for KB913384
Hello, I got the hotfix from customer support for KB913384. However, when I
attempt to install, it says I'm missing the required software. IIS is
installed, and I'm running Windows XP Pro SP2 and .NET 2.0.50727.0. It
doesn't say what software is missing. Tag: Socket.BeginReceive with timeout Tag: 124401
OE - nothing appears in message body
I've been using Outlook Express for my Hotmail account for a long time.
Suddenly it isn't working properly. It downloads messages into the inbox
fine, but for some reason when I open a message I get the hourglass and no
matter how long I wait nothing appears in the body of the message. I tried
accessing the same hotmail account via OE on another computer and it works
fine, so the problem is specific to the OE on this one computer. By
coincidence I had downloaded IE7 the day this started happening, but I can't
remember exactly if the problem started before or after the IE7 download.
Any idea what is wrong and how to fix it? I've tried deleting and recreating
the account in OE. That did no good.
By the way, why isn't there an OE7 with IE7? My OE is still version 6. Tag: Socket.BeginReceive with timeout Tag: 124398
convert DataColumn.GetType() into a DbType or SqlDbType?
I have a DataColumn, want to derive the DbType. I can do column.GetType()
but that's a system type, not a db type. How do I convert it to the
corresponding type?
Thanks much!
Chris B. Tag: Socket.BeginReceive with timeout Tag: 124396
TypeConverter and arrays
Using asp.net1.1, I have a property on a control that is an enum. I use an
accessor and set it in HTML view. So:
public enum Permission
{
None = 0,
Admin = 1,
Member = 2, ...
}
...
public class Lock : System.Web.UI.Control
{
private Permission perm;
[Bindable(true),
Category("Security"),
DefaultValue("1")]
public Permission RequiredPermission
{
get
{
return perm;
}
set
{
perm = value;
}
}
Then in html view:
<cc1:Lock ... RequiredPermission="Admin" ... >
Now, I want to make the Permission property an array of permissions:
private Permission[] perm;
My question is, how can I implement this to allow me to still specify the
list of permissions in html view, like:
<cc1:Lock ... RequiredPermission="Admin,Member" ... >
I need to convert this list into an array, is there any way to do this
within an accessor? If I try something like this, I get a parser error,
saying it can't create an object of type Permission[] from its string
representation.
public Camelot.Permission[] RequiredPermission
{
get
{
return perm;
}
set
{
// break up comma delimited string in value, create an array of
permissions, assign it to perm
}
}
Thanks! Tag: Socket.BeginReceive with timeout Tag: 124395
Client -Server in Windows Applns...
Hi All..,
I have a VB.Net Windows Application..
I need to Run this Exe From Some Other System(Client) and I need to
Upload some specified files to the Server System..
Now my doubts are..
1) Is client-Server concept is Possible in Windows Applications..
2) Can I pass some arguments to that exe.. from server..
Regards..,
Ramesh.R... Tag: Socket.BeginReceive with timeout Tag: 124390
ClickOnce Deployment on Thin Clients for ALL users
I am having a bit of a problem with my ClickOnce Deployment strategy
for vb.net 2005 apps.
I am working in a plant which has hundreds of thin clients and when I
deploy an app using ClickOnce, it asks each individual user if they
want to install. When updates are rolled out, it then asks each user
if they want to get the newest version.
Is there a way to deploy my apps globally to the terminal server
instead of having to deploy to each individual session. I.E. Install
at the Machine level and not the User level so that users are not
bothered with the install / update question?
Thanks in advance for you help!
--kaz Tag: Socket.BeginReceive with timeout Tag: 124389
Application.ThreadException not working
Hi,
I have a shoddily written application that is written in 1.1 that I've
ported to 2.0 and now occasionaly I get crashes which I suspect are
been caused by exceptions in threads, most likely due to trying to
access controls which is now stricter, I know I could just set
CheckForIllegalCrossThreadCalls = false;
But I'd rather like to understand a bit better about ways to handle
these exceptions and diagnose them so have been playing with
"Application.ThreadException" and
"AppDomain.CurrentDomain.UnhandledException", the problem I have is
"Application.ThreadException" never seems to fire and this is cunfusing
the hell out of me. I have the following simple test code
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Threading;
using System.Windows.Forms;
namespace TestApp {
public partial class Form1 : Form {
public Form1() {
InitializeComponent();
Application.ThreadException += new
ThreadExceptionEventHandler(Application_ThreadException);
AppDomain.CurrentDomain.UnhandledException += new
UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
}
void CurrentDomain_UnhandledException(object sender,
UnhandledExceptionEventArgs e) {
MessageBox.Show("CurrentDomain_UnhandledException " +
e.ExceptionObject.ToString());
}
void Application_ThreadException(object sender,
ThreadExceptionEventArgs e) {
MessageBox.Show("Application_ThreadException");
}
private void exceptionButton_Click(object sender, EventArgs e)
{
Thread t = new Thread(delegate() {
int zero = 0;
int x = 1 / zero;
});
t.IsBackground = true;
t.Start();
}
private void crossThread_Click(object sender, EventArgs e) {
Thread t = new Thread(delegate() {
crossThread.Text = "Error";
});
t.IsBackground = true;
t.Start();
}
}
}
Which is just a windows form that has 2 buttons, crossThreadButton &
exceptionButton, crossThreadButton simply creates a thread that tries
to access a control it shouldn't, and exceptionButton simply divides by
0 to create a exception, both cause the
"AppDomain.CurrentDomain.UnhandledException" event to be fired, but
niether cause the "Application.ThreadException" event to be fired which
is confusing me.
When should "Application.ThreadException" get called, am I missing a
setting or is it only for specific situations.
Also is there a way to prevent the application from exiting when there
is a exception in a thread and
"AppDomain.CurrentDomain.UnhandledException" is fired, In my main
shoddy app I'm 99.99% sure that exceptions in threads that have a long
lifetime are handled and that these problems are been caused in
shortlived threads that if they fail the work will simply be picked up
on the next iteration, there is a reasonable amount of manual work
involved in setting up and configuring the app and loosing all this is
a pain for the user, if they could be informed of the error but allowed
to continue that would be a lot easier for me while I find all the
causes of the problem. Tag: Socket.BeginReceive with timeout Tag: 124387
TimeZone.CurrentTimeZone doesn't update
I'm seeing TimeZone.CurrentTimeZone accurately reflecting the machine time
zone at the point that the assembly loads, but if the user subsequently
changes the Windows time zone the value of TimeZone.CurrentTimeZone doesnâ??t
change to reflect that.
In other words, if the system is on PST when my assembly loads then whenever
time I instantiate a TimeZone object
(System.TimeZone tz = System.TimeZone.CurrentTimeZone;)
the value of tz.StandardName returns "Pacific Standard Time" and
tz.GetUtcOffset comes back as -08:00:00 - even if I change to Brisbane time
(+10:00:00)
Is there some trick to this that I'm missing?
I've got an Outlook add-in that's passing date values to a web service. Even
though it works in UTC internally, the SOAP proxy classes expect values in
local time to which the parser then assigns an offset. The conversions to and
from UTC continue to use the original offset even if the user changes time
zones, which corrupts the data. Tag: Socket.BeginReceive with timeout Tag: 124380
embed sqlexpress installation
Hello
I have an application, which is used to install sqlexpress in quit
mode(no user interface). It is working properly.
In that installation time i want to show some progress bar
movement to the user. How I have to do this.
Pl. give any solution.
Regards,
Raju. Tag: Socket.BeginReceive with timeout Tag: 124379
Bound ComboBox for browsing _and_ editing?
Can I use a bound ComboBox for both browsing and editing?
I'm working on a small, standalone database application using Visual
C#.NET 2003 and an Access data file.
In order to keep the number of different screens down to a minimum,
I'm trying to use the same Windows Forms for both browsing and for
updating. This works fine for TextBoxes, but I'm running into
problems with my DropDownLists (ComboBoxes).
Thre's nothing special about the (string) lists in these ComboBoxes.
They're set up with DisplayMember="" and ValueMember="", they're
defined inside the VS Designer, and they're a convenience to save
the user from having to remember what the valid choices are; the
choice, once made, would simply be stored into a text field... er,
column. Or, at least, that's how I thought/hoped it would work.
Trouble is, I can't figure out how to bind these ComboBoxes in a way
that lets the user see the existing values as they browse with the
bound TextBoxes and ComboBoxes disabled (Enabled=false), yet allows
editing when these same controls are enabled.
Binding my DataView to the ComboBoxs' "Text" property is tempting.
It works very nicely for browsing; the current contents of the data
columns are displayed properly as the user "scrolls" through the
rows. When the control is enabled (for editing), the DropDownList
displays properly, a choice can be made, and all appears well...
until I attempt to update the database. According to the debugger,
the controls _are_ bound, and a changed ComboBox _does_ have new
(changed) contents in its Text property, but the supposedly bound
data column never gets updated (again, per the debugger's display of
my DataView with DataView.RowStateFilter = CurrentRows). (TextBoxes
bound to the same DataView are working just fine.)
Then there's binding to the ComboBox's SelectedValue Property (or
possibly its SelectedItem -- even after reading the online
documentation I'm not really sure what the difference is between
these two). I tried this, but I lose the "browsing" feature -- when
the ComboBox is disabled all that shows is either blanks or the last
choice made when the control _was_ enabled.
Late this afternoon, after spending another couple of hours with
Google trying to find the keywords for a magical incantation that
would take me directly to an explanation of this problem and a
workaround -- and failing -- I tried something only moderately
perverted: I bound the ComboBoxes' Text property and installed an
event handler for their SelectionChangeCommitted events. My first
attempt forcibly altered the Text property:
private void cbx1_SelectionChangeCommitted(object sender,
System.EventArgs e) {
// Warning: reconstructed from memory
ComboBox cbx = sender as ComboBox;
string s = cbx.Text;
cbx.Text = "";
cbx.Text = s;
}
Then I tried something that _seemed_ a little less klugy:
private void cbx1_SelectionChangeCommitted(object sender,
System.EventArgs e) {
// Chose a new velue?
ComboBox cbx;
cbx = sender as ComboBox;
cbx.Text = cbx.SelectedValue.ToString();
}
This one works... mostly. It occasionally throws a "null reference"
exception complaining that, in spite of the fact that the code is in
an event handler set up for the case that a selection has been made,
cbx.SelectedValue lacks a value.
SelectedIndex: 1
selectedIndex: -1
SelectedItem: "Option 2" (second string from list)
selectedValueChangedFired: true
and the embedded ListControl has:
SelectedIndex = 1
SelectedValue = <undefined value> (a.k.a. "Ka-boom!")
I can't be the first person to ever try setting up a form with
ComboBoxes to browse and edit a database. I keep feeling that I'm
missing something simple, something that's so obvious to everyone
that no-one bothers mentioning it.
I did run across a note about VisualBasic ComboBoxes in the VS
online documentation that might be relevant entitled:
Data binding for ComboBox or ListBox is read-only
but (a) it's not clear whether or not this note applies to VC#, and
(b) the note's rather terse workaround merely says to
Add code to the ListControl.SelectedValueChanged event for the
ComboBox or ListBox controls to update the database.
without providing any specifics.
It's very frustrating: with the VS debugger I can see the ComboBox
selection being stored into its Text property, but I can't seem to
home in on where the ball gets dropped, that is, what stops that
value from being stuffed into the DataView's current DataRow.
Has anyone out there been down this road before? I'm hoping someone
familiar with binding and ComboBoxes can either tell me that I'm
going at the problem from a completely wrong direction, or possibly
that my horribly ugly code is about the only way to accomplish what
I'm trying to do.
Any hints, suggestions, or clues will be appreciated.
Frank McKenney
--
A science is any discipline in which a fool of this generation can
go beyond the point reached by a genius of the last generation.
-- Max Gluckman
-- Tag: Socket.BeginReceive with timeout Tag: 124377
wsdl errors for multiple webservices with reference to same dataset
I wrote a web service projects having 2 asmx and 1 dataset, says dsTest1.
The amsx will have a parameter of the dataset as follows:
in 1st asmx:
<Wethod()> HelloWorld1 (byval a1 as dsTest1) as string
in 2nd asmx:
<Wethod()> HelloWorld2 (byval a2 as dsTest1) as string
When I ran wsdl for the dynamic discovery file, vsdisco, I got the following
error:
Microsoft (R) Web Services Description Language Utility
[Microsoft (R) .NET Framework, Version 2.0.50727.42]
Copyright (C) Microsoft Corporation. All rights reserved.
Schema validation error: Schema with
targetNamespace='http://tempuri.org/dsTest1.xsd' has invalid syntax. The
global element 'http://tempuri.org/dsTest1.xsd:dsTest1' has already been
declared. Line 3, position 4.
Schema validation error: Schema with
targetNamespace='http://tempuri.org/dsTest1.xsd' has invalid syntax. The
identity constraint 'http://tempuri.org/dsTest1.xsd:TestTableKey1' has
already been declared. Line 16, position 6.
Warning: Schema could not be validated. Class generation may fail or may
produce incorrect results.
Writing file 'D:\Program Files\Microsoft Visual Studio
8\SDK\v2.0\Service.vb'.
There's no problem when I did wsdl for only particular asmx. It seems that
wsdl processes twice for the dataset. Note: There's no problem for dotnet
framework 1.1. The problem becomes hurdle of our migration project.
Please kindly help.
Thanks in advance. Tag: Socket.BeginReceive with timeout Tag: 124376
UnauthorizedAccessException
I have a simple console application that moves some log files from one
server to another, then compresses the files for archival reasons.
.NET 1.1, C#
All was fine, no problems. We upgraded the server that has the log
files. I added the correct permissions to the share on the new server.
My process is now throwing a UnauthorizedAccessException on the
File.Move command, saying that it cannot copy the file to the
destination folder. It can access the new server but now it cannot
write to the destination folder...the destination folder has not
changed, is a local directory on the server the process is running on.
The process is running under an account that has full access to the
destination folder. I have also run the process as Administrator and I
still get this error.
Any suggestions? I have no idea why this process cannot write to a
directory that it has full access to.
thanks
James Tag: Socket.BeginReceive with timeout Tag: 124355
Adding a Crystal Report to a VB.Net Standard edition application
Hi all,
I am working with VB.Net 2005 Standard Edition and Crystal Reports 8.5
Developer Edition. I already have a report written in Crystal and I
just want to be able to add the report to my Application. I have
figured out how to add the Crystal Report Viewer to a form, but I
cannot figure out what I need to do to link my report to it.
If anybody can help, I would really appreciate it!
Thanks,
Bart Tag: Socket.BeginReceive with timeout Tag: 124343
DataGridView in 2.0 Framework - Sorting
All,
I am having a considerable amount of difficulty with what should be a
very simple problem. I have a DataGridView that is bound to a
collection of objects that displays (and edits) selected objects
appropriately. However, I can find no way to activate sorting by
column. I want to be able to do the normal thing: click on a column and
have the rows sort (alphabetically) according to the contents of the
selected column. According to the documentation, I should be able to
set the column's sort mode to "Automatic" and the sort glyph should
become available on the column. This, however, does not happen. The
sort glyph does not appear and thus I cannot sort. Anybody know what
the heck's going on here?
Thanks
Chris. Tag: Socket.BeginReceive with timeout Tag: 124342
Tracking method calling
Hi all,
I have a question about tracking of method calls. I would like to track/log
methods in code during runtime. I thought that I can write custom attribute
which I will use in method which call I want to log and in constructor of
the attribute I will write logging functionality. But this doesn't work. No
code in attribute class is executed.
Any idea how to solve this problem?
Stepan
---------------------------------------------------------
Example:
[AttributeUsage(AttributeTargets.Method)]
public class LoggerAttribute : System.Atribute {
public LoggerAttribute () {
// here is code for logging
}
}
Usage:
public class TestLoggerClass {
[Logger]
public void DoSomething() {
// here is some cod
}
}
public class TestProgram {
public static void Main(string[] params) {
TestLoggerClass x = new TestLoggerClass();
// I want to log method calling when I do next row. But it doesn't
work
x.DoSomething();
}
} Tag: Socket.BeginReceive with timeout Tag: 124341
Runtime bridges Ja.NET and JNBridgePro vs Web Service
Hi,
We are looking for arguments for using technologies that allows .NET
Framework and Java to interoperate on a point to point basis.
The two options are XML Web Services and .NET Remoting with using third
party runtimebridges likes Ja.NET and JNBridgePro.
.NET Remoting technology provides greater performance then Web Services
in a pure .NET Framework environment. But Web Services provides more
freedom from having to dsescribe methods explicitly.
I like to hear experience in using thes two interoperability
technologies.
Best regards
John
References:
Interoperability Technologies: Point to Point
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/jdni_ch01.asp Tag: Socket.BeginReceive with timeout Tag: 124338
Assembly permissions, strong name
Hi,
I am using caspol to set permissions for a .net program, which is
stored on a file server.
The permissions are set to "Full trust" for LocalIntranet_Zone at
Machine level for a given strong name.
I can then run the program as administrator.
But if I log on as a an ordinary user, I get following message
"Microsoft .net security information: this application is running in a
partially trusted context. Some functionality in this application may
be disabled due to security restrictions"
I do not understand why there is any differences between administrator
and ordinary user, as long as "Full trust" is set at for
LocalIntranet_Zone at Machine level
bjarne Tag: Socket.BeginReceive with timeout Tag: 124333
what is .NET
Dear all
Is .NET a Technolgical Platform
or
is it just a Framework
whats different b/w techonolgy and Framework
EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com Tag: Socket.BeginReceive with timeout Tag: 124328
html help files (chm) and .NET framework 2.0
Hi,
I work on a large application (relative I guess) and the help is implemented
in a CHM file converted from a Word file.
For the version of the app pending release one of the things done was to
upgrade to .NET 2.0.
As a result it seems that pressing F1, whilst bring the help up, if you
click any related links displayed on any of the pages
then after a short period of the Windows help chm viewer being unresponsive
it generates an out-of-memory error and
clicking [ok] closes both the help and the application.
My reason for suspecting this is due to the following investigation:
1) Doc-To-Help forum (product being used to convert Word file to help chm
file) some one has virtually identical
problem (except they don't get the message and the closure, just no links
work). The single response was that it was
a .NET 2.0 framework issue.
2) If I launch the CHM from Windows explorer then links work fine.
3) If I copy the help file to the install directory of the previous version
of our app (which uses .NET 1.1) and launch
the help from the previous version then links work fine.
If anybody has encountered this problem and knows of any way around it then
that would most appreciated.
Regards,
Peter Tag: Socket.BeginReceive with timeout Tag: 124327
Web Application and Memory
Hello
I m testing my application based on the framework 1.1 with few users.
I m worried about the memory of my server. I can notice a terrifying
increase of memoring using by my application server.
For example, before start application, the memory using is about 280mo.
After starting the application and 10 minutes of utilisation by 10 users....
the memory has grown to 480mo !!!
I don't understand why. I have try to be clean in my code (vb.net) and
liberate all my object as soon as i can by the nothing and dispose codes.
for example in my code :
'dispose of the Dataset/adaptater objects
myDataSet.Dispose()
myDataSet=Nothing
myAdapter.Dispose()
myAdapter=Nothing
or
'dispose command object
objCmd.Dispose()
objCmd = Nothing
or for the variable :
var1=Nothing
So do i have made a mistake or forgotten something ?
Is it normal to see this situation of the memory ? Does this increase will
stop one day ???
Thanks for your help
fabrice Tag: Socket.BeginReceive with timeout Tag: 124319
Retrieving Data
Hi
I have some 10 records in a table with a DateTime field, all the records
have the same data but the time of each records is different.
Using a stored procedure how do i retrieve all records
eg AppendParameter(cmd, "@CallDate", DbType.DateTime, dt);
TIA
Barry Tag: Socket.BeginReceive with timeout Tag: 124317
How to deserialize a SettingsProperty
Hi,
I don't know how to retrieve the default value of user properties.
For instance, I have defined 2 user properties named TheColor and TheFont,
with the type System.Drawing.Color and System.Drawing.Font. I can access
their current values like this:
dim theColor as System.Drawing.Color = My.MySettings.Default.TheColor
dim theFont as System.Drawing.Font = My.MySettings.Default.TheColor
I have found in the SettingsProperty objects, the default value in a
serialized form :
dim theColorProperty as SettingsProperty =
My.MySettings.Default.Properties("TheColor")
dim theFontProperty as SettingsProperty =
My.MySettings.Default.Properties("TheFont")
dim defaultColorValue as String = theColorProperty .DefaultValue
dim defaultFontValue as String = theFontProperty .DefaultValue
Now, how can I build the Color and Font object containing the default values
from these SettingsProperty ? Is there a way to deserialize it ?
Thanks. Tag: Socket.BeginReceive with timeout Tag: 124312
Property label
Hi,
I'm using databing with some classes, and I would like to know if
there's a way to define some sort of description Attribute for a property.
I have this Porperty:
public string ItemsInStock{
get { return _ItemsInStock;}
set {_ItemsInStock = value;} }
My problem, when DataBinding in Master or Detail mode, is I have a field
referenced as "ItemsInStock" when I want it to be referenced as "Items
in stock".
I'm expecting something as:
[Databind.Caption("Items in stock")]
TIA Tag: Socket.BeginReceive with timeout Tag: 124311
Transactions for File I/O?
I am wrapping a bunch of DB calls into an MSDTC transaction, using the
.net 2.0 System.Transactions transactionscope.
Part of the operations I need to do in this transaction include some
writing to the file system (deleting a file / creating a file).
There is no way to rollback changes to the file system correct?
Just checking... Tag: Socket.BeginReceive with timeout Tag: 124308
.net framework 2 Install breaks IE 6
Hello all,
I am using windows 2000 pro and want to install SQL express. Before I do
this, I have to install .net framework 2. I found the download here:
http://www.microsoft.com/downloads/details.aspx?familyid=0856EACB-4362-4B0D-8EDD-AAB15C5E04F5&displaylang=en
And downloaded the file named dotnetfx.exe. I did not receive any errors.
When finished, there were two windows updates to framework 2. I then
restarted machine. I can no longer get the microsoft webpages or google
websites.
Did I install the wrong version? What do I need to do to fix it? I can't
get into microsoft or google to troubleshoot!! I can't install SQL Express
if I can't get into the site. Any suggestions?
Thanks. Tag: Socket.BeginReceive with timeout Tag: 124307
creating a windows desktop search ifilter in .NET?
Hi,
does it possible to create an IFilter in .NET (VB.Net or C#)?
I see sample in C++, but not in VB.Net
any guide?
thanks.
Jerome. Tag: Socket.BeginReceive with timeout Tag: 124303
.NET 3.0 as a setup file?
Hi,
I can't seem to find a real redistributable package with .NET 3.0
runtime. The one called "redistributable" is 2.8 MB setup file which
starts downloading the whole thing. I need to install .NET 3 on 20 PC's
and on 3 disconnected ones (offline).
Any ideas where could I get the .NET 3.0 runtine as a full install package?
Thank you,
MuZZy Tag: Socket.BeginReceive with timeout Tag: 124299
GetHashCode for Objects that Compare Based on Value (Not reference equality)
Hello,
In a few classes I have overridden Equals, ==, and != and would like to
generate an optimal hash code but I am a little confused about the best
approach to take. All of the classes that I am developing use a value
comparison, not reference, to determine equality. The classes were all
originally generated from an XSD, so there is a hierarchical
organization of classes. Because I am doing a value comparison, the
actual contents of the objects are relevant, but this gets tricky
because the majority of these classes contain arrays of additional
objects, which in turn contain more objects.
For example, one boardgame is only equivalent to another board game if
it contains the same number of game pieces, and those pieces are on the
same relative spots on the board, and the pieces are the same color,
and the pieces have the same stickers on them, and the stickers have
the same adhesive, etc.. You can see how it gets laborious to generate
a hash code based on the value of one's contents if it is composed of
objects which are composed of other objects and so on. The boardgame is
not the same if the adhesive on the game pieces is different, so the
hash codes should be different in that case, right? If the hash code
were based simply on the number of pieces, their location, and their
color then I could expect collisions and that would introduce all sorts
of confusion.
Would you just use Object.GetHashCode and forget about it... or would
you generate a hash code from an exhaustive dig into an object's
contents? I was thinking of generating a hashcode from the hash codes
of the member variables? What is the best approach for this issue?
Thanks Tag: Socket.BeginReceive with timeout Tag: 124294
Exception when trying to start the windows service
Hi,
We are upgrading code from 1.1 framework to 2.0 framework. we have setup new
production servers for the same. We have a custom windows services that we
have to install and make it start on the server. We are able to install the
service but are unable to start the service. It gives us the following error
in the application log.
On one of the servers --> EventType clr20r3, P1
3llg2zudivjsxp4ylp2tew5yjj2aqayp, P2 2.1.0.1, P3 4558aaff, P4
house.leagis.systemservices.documentexchangeservice, P5 2.1.0.1, P6
4558aaff, P7 4, P8 1, P9 system.typeinitialization, P10 NIL.
On the second server --> EventType clr20r3, P1
3llg2zudivjsxp4ylp2tew5yjj2aqayp, P2 2.1.0.1, P3 455357b8, P4
house.leagis.systemservices.documentexchangeservices, P5 2.1.0.1, P6
455357b1, P7 18, P8 7, P9 system.io.filenotfoundexception, P10 NIL.
I am able to install and start the service without any issues on my local
box. Is there a server setting that is causing this issue???
Please help.
Rahul Tag: Socket.BeginReceive with timeout Tag: 124287
.NET 3.0 rtm install fails
I am getting a failure during the install of the .NET 3.0 (RTM)
redistributable. The error message is as follows:
Windows Communication Foundation: [2] Error: Installation failed for
component Windows Communication Foundation. MSI returned error code 1603
This is on a WinXP SP2 machine. I have .NET 1.1, .NET 2.0, VS2003, VS2005,
IE7 installed on it. No .NET 3.0 beta or CTP bits have ever been installed
on this machine. One thing I did notice is that I have the following .NET
hotfixes installed: KB886903, KB917283, KB922770, KB916002.
Anyone else having this problem? Tag: Socket.BeginReceive with timeout Tag: 124286
Newbie looking for explanation of why RegisterClientScriptBlock is necessary?
Good afternoon, all,
I am a experienced Web programmer, trying to learn ASP.net 2.0 and I am
stuck on the necessity of the RegisterClientScrptBlock and
RegisterStartupScript methods.
According to WROX's Professional ASP.NET 2.0, "the
RegisterClientScriptBlock method allows you to place a Javascript
function at the top of the page" and "the RegisterStartupScript places
the script at the bottom of the ASP.NET page"
Why are these necessary? Why can't I just put the Javascript functions
on the top or bottom of the page myself like I've always done?
I must be missing something; the WROX book uses simple alert('hello')
functions to illustrate these two methods. Maybe their use is more
obvious with a more complex use?
I would be very appreciative if someone could point me to a good
explanation for the necessity/use of these messages.
Thanks,
Kathryn Tag: Socket.BeginReceive with timeout Tag: 124285
How do you export table data in a DataBase project?
I posted this last week in another group with no response, so I'll try
here. I have created a database project using Visual Studio 2005 and
SQL Server 2000. In the Server Explorer, by right-clicking on a
database table with the context menu, I am able to "Generate Create
script to project".
But, In the Server Explorer, by right-clicking on database table, I am
not getting the context menu item "Export Data". Again In the Solution
Explorer, right-clicking on the Create Scripts folder, I am not getting
the context menu item "Create Command File".
I thought these things were there with Studio 2003. Have they
disappeared in 2005? I want to be able to create INSERT statements from
the data in the table.
Thanks in advance
John Tag: Socket.BeginReceive with timeout Tag: 124283
COM Interop Error on 64 bit OS
I have a VB6 executable that references a .NET 2.0 dll.
The .NET 2.0 dll project has 'Register for COM Interop' checked. Thus,
compiling the dll will generate the .tlb file. This will allow early binding
to work from VB6.
I copied the VB6 exe and the .NET dll to a 32 bit OS. I copied the tlb file
to system32. When I execute the VB6 exe and call the .NET dll it works fine.
NOW, if I copy the VB6 exe and the .NET dll to a 64 bit OS and execute it, I
get the 'ActiveX cannot create object' error. I tried both, early and late
binding but I keep getting the same error.
If I call the .NET dll from another .NET app on a 64 OS, it works fine.
Is there anything different that I would have to do in order to get the VB6
application to call a .NET dll while running on a 64 bit OS?
--
ANeelima Tag: Socket.BeginReceive with timeout Tag: 124281
assembly versions
Hi all,
Can I have 2 versions of an assembly loaded in the GAC? i.e. 1.0.0.0 and
2.0.0.0. Also, if this is possible, can I have certain web applications use
the 1.0 version and certain web apps use the 2.0 version? If yes, how can I
do this?
TIA! Tag: Socket.BeginReceive with timeout Tag: 124279
Is there any way that Callback function returns, either it has got some
data, or the time out has occured.