Support for Windows 2003 Enterprise
I am developing a component that will in some cases use
approximately 2-3GB (depends on content) of memory. Does
either version of the framework support the 3GB switch on
any supporting version of Windows 2003 Enterprise. We
are considering upgrading our Dell 2650 to 8GB RAM and
Windows 2003 Enterprise, but I don't know if that will
actually get us anything until 64-bit comes out (on
Opteron). We have tuned the component as much as possible
using a virtual object/byte array design that is about as
conservative as you can get with .NET (approx. 59.001
bits per 59 bits of data). Hardware is almost always
cheaper than development so we are investigating possible
hardware/software upgrades prior to using a disk-based
approach.
Any help is greatly appreciated,
mark Tag: Type Casting at Runtime .Net Tag: 58056
Smart Device option does not appear in Visual Studio .NET
As I've read elsewhere, I do not have the icons/options to create a
Smart Device application in my freshly-installed (and repaired and
re-installed) copy of Visual Studio .NET 2003 Pro. I re-ran the setup
program, and it also does not contain an option to select Smart
Devices anywhere in the modules/options screen. I have installed the
language for Visual Basic .NET (leaving out C++ and C#) as well as
many of the other add-ons and from what I read, that should be enough
to perform development for my Axim X5 platform.
I also installed the .NET Compact Framework 1.0 SP 1 Redistributable,
and the Pocket PC 2003 SDK in the hopes that they would add something
I needed behind the scenes.
Can anyone suggest to me why this does not appear, and how to fix it? Tag: Type Casting at Runtime .Net Tag: 58055
Converting absolute path to relative
Hi,
assume I have two paths referring to files on the same
logical volume, like "C:\Home\Dir1\file1.txt"
and "C:\Home\Dir2\file2.txt". How can I convert the
second absolute path to a relative path based on the
first one, like "..\Dir2\file2.txt"? I'm looking into the
System.IO.Path class but can't find an answer...
Thanks in advance,
Dmitry Tag: Type Casting at Runtime .Net Tag: 58053
Installation error from .net framework 1.1 and 2
I'm getting a reproducible error from when I installed the .Net
Framework 1.1 upgrade and when I try to run a pgm that I think uses it.
The error is:
Fatal execution engine error 0x7926e693
I am running WinXP Pro SP1 on a P4.
What's up?
Thanks Tag: Type Casting at Runtime .Net Tag: 58052
DataList Wrapping
Everyone,
Is there a way to set a horizontally repeating DataList to wrap after a
certain number of iterations.
Current:
1 2 3 4 5 6 7 8 9 10
Would like to see:
1 2 3 4
5 6 7 8
9 10
Thanks,
Jim Tag: Type Casting at Runtime .Net Tag: 58050
Help on C#
hi,
i wrote one small application in C# and compiled into
command prompt.
but i am getting one error i.e mscorlib.dll could not be
opened - no such interface supported.
plz suggest anyone for me.how can i rectify this error.
thanks in advance
Regards
Naren Tag: Type Casting at Runtime .Net Tag: 58044
BUG Report. Please confirm.
Hi,
I'm previously haunted by a bug which is now in Knowledge Base Article
818587 (Fix: Regression in Dataset Serialization in Visual Studio .NET 1.1
when a datarow contains a rowError or a ColumnError Property) which can be
found at http://support.microsoft.com/default.aspx?scid=kb;en-us;818587.
Please note that this bug only shows itself if the Windows Form Application
is run on dotNetFramework 1.1 but does not shows itself if the same
application is forced to run on dotNetFramework 1.0
Now, I think I found another bug which produces the same error message as
the bug above and it also has something to do with the rowError or a
ColumnError property. Even worse, the bug exists in dotNetFramework 1.1 and
also dotNetFramework 1.0. The error message is,
System.InvalidOperationException: There is an error in XML document (x,
xxxx).
---> System.NullReferenceException: Object reference not set to an
instance of an object.
To reproduce the bug,
1. Create a Web service with a dummy method.
<WebMethod()> Public Function Dummy(ByVal ds As DataSet) As DataSet
Return ds
End Function
2. Create a Windows Application or a Console Application and add the service
that you created in step 1 as a Web Reference.
3. Type in or paste the following code,
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim ws As localhost.Service1
Dim ds As DataSet
Dim dt As DataTable
Dim row As DataRow
Dim i As Integer
' Create a new DataTable
dt = New DataTable
dt.TableName = "TestTable"
dt.Columns.Add("TestColumn1", GetType(String))
dt.Columns.Add("TestColumn2", GetType(Integer))
' Create a new DataSet and add the DataTable into it
ds = New DataSet
ds.DataSetName = "TestDataSet"
ds.Tables.Add(dt)
' Fill the DataTable with dummy values
For i = 0 To 10
row = dt.NewRow
row("TestColumn1") = "This is row " & i
row("TestColumn2") = i
dt.Rows.Add(row)
Next
' Set error message to the rows
For Each row In ds.Tables("TestTable").Rows
' Setting the RowError property below will cause and
' exception is thrown when calling ws.Dummy(ds.GetChanges).
row.RowError = "Row has not been updated to the server yet."
Next
' Send DataSet to the WebService
Try
ws = New localhost.Service1
ws.Dummy(ds.GetChanges)
Catch ex As Exception
Console.WriteLine(ex.Message)
End Try
ws.Dispose()
End Sub
Can anyone confirm this? Thanks a lot. Tag: Type Casting at Runtime .Net Tag: 58043
SMTP Mail
Has anyone had any issues repeatedly sending SMTP e-mails from .Net?
I have a c# component that gets executed by multiple threads, and uses
SmtpMail.Send to send e-mails. Whilst in 80% of cases this works fine, I
sometimes get "Could not access 'CDO.Message' object" errors
The code in question is running as an AIC component under BizTalk.
The call stack is:
System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String
methodName, Object[] args)
System.Web.Mail.CdoSysHelper.Send(MailMessage message)
System.Web.Mail.SmtpMail.Send(MailMessage message)
Thanks.
Kev. Tag: Type Casting at Runtime .Net Tag: 58033
.Net Remoting with Visual C++ .NET
Hi everybody.
Is there a way to use .NET Remoting with Visual C++ .Net?
In positive case, how to build the interfaces like they're
built in C#?
Thanks,
Moises. Tag: Type Casting at Runtime .Net Tag: 58031
Remoting & Terminal Server
We have two .NET desktop applications. The applications
communicate with eachother via .NET Remoting. Application
X marshals an object on a tcp channel. Application Y
connects to that object to communicate with X.
When we install those 2 applications on a Terminal Server
(Citrix), and we start 2 sessions, then the applications
work fine on the first session. X and Y can communicate
via .NET remoting.
On the second session, the 2 applications cannot
communicate. This is because the port that is used by the
tcp channel is already in use by the first session.
Is there a solution to this problem? So that various
desktop applications can communicate with eachother in one
session?
We finally want to have 2 desktop applications communicate
with each other on each session via .NET Remoting. Tag: Type Casting at Runtime .Net Tag: 58030
DLL Hell in .NET
What are the under-lying DLLs or libraries that .NET is sitting on which
after installing another program will cause the entire .NET Framework to
fail? Tag: Type Casting at Runtime .Net Tag: 58024
Not allowed to install the .Net Framework
Can anyone tell me the most common problems when
installing the .Net Framework on to a PC running Windows
2000 Server.
I am desparately trying to convince my boss that we need
to install it on to our web server but he is reluctant to
install anything that he deems as unnecessary after we had
a few problems installing Win 2000 service pack 4!
Until I can convince him I am stuck programming using the
old ways of looping through recordsets to create html
tables etc so any help would be GREATLY appreciated.
Andy Tag: Type Casting at Runtime .Net Tag: 58019
Someone can explain this???
Hi. I wonder if someone could explain why this code gives different results
in VB.NET and C#:
C#
public enum myEnum{
One = 1,
Two = 2
}
public void Foo(){
MessageBox.Show(Convert.ToString(myEnum.One));
}
The result of Foo is message 'One'
VB.NET
public enum myEnum
One = 1
Two = 2
end enum
public sub Foo()
MessageBox.Show(Convert.ToString(myEnum.One))
end sub
The result of Foo is message '1'
Thanks Tag: Type Casting at Runtime .Net Tag: 58016
System.Console.In.Peek() behavior?
Please take a look at the following (more or less
nonsense) program.
I am trying to understand the exact behavior of
System.Console.In.Peek().
Does it block when no input is available?
From the documentation I would expect it not to block but
instead return -1.
However the first call to Peek() below seems to block -
no dots are written to the console.
Strangely enough, if you enter a text followed by return,
and then let the first call of ReadLine() "eat" all this,
I would expect to be in the same situation as at program
start up. However, this second call does not block, but
immediately returns -1 (dots appear in the output).
Whats worse - even if I type something followed by
return, this input is never detected by the sequence of
Peek() calls in the second while loop - I never get out
of it.
Am I overlooking something, or is there a bug in the .NET
framework?
peek.cs:
========
using System;
using System.IO;
using System.Threading;
public class test {
public static void Main(System.String[] args)
{
Console.Write("Enter some text: ");
// first peek will block!!
while (Console.In.Peek() == -1){
// we never get here
Console.Write('.'); Thread.Sleep(500);
}
Console.WriteLine("Input 1 available:
+ "Console.ReadLine());
Console.Write("Enter some more text: ");
// second peek is non-blocking,
// but never detects input!!
while (Console.In.Peek() == -1){
// we never get out of this loop
Console.Write('.'); Thread.Sleep(500);
}
Console.WriteLine("Input 2 available: "
+ Console.ReadLine());
}
}
Typical cmd session:
=====================
C:\>csc -t:exe -nologo peek.cs
C:\>.\peek
Enter some text: lklklklkl
Input 1 available: lklklklkl
Enter some more text: .............^C
C:\>lklklklkl
'lklklklkl' is not recognized as an internal or external
command,
operable program or batch file.
No dots appear despite waiting to respond to the first
prompt.
Input typed while the dots stream out of the second loop
is not detected by the program, but first after the
program is killed (here using Control-C)
Peter Andersen Tag: Type Casting at Runtime .Net Tag: 58010
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: Type Casting at Runtime .Net 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: Type Casting at Runtime .Net 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: Type Casting at Runtime .Net 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: Type Casting at Runtime .Net 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: Type Casting at Runtime .Net 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: Type Casting at Runtime .Net 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: Type Casting at Runtime .Net 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: Type Casting at Runtime .Net 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: Type Casting at Runtime .Net 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: Type Casting at Runtime .Net 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: Type Casting at Runtime .Net Tag: 57945