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: Support for Windows 2003 Enterprise 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: Support for Windows 2003 Enterprise 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: Support for Windows 2003 Enterprise 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: Support for Windows 2003 Enterprise 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: Support for Windows 2003 Enterprise 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: Support for Windows 2003 Enterprise 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: Support for Windows 2003 Enterprise 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: Support for Windows 2003 Enterprise 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: Support for Windows 2003 Enterprise 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: Support for Windows 2003 Enterprise 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: Support for Windows 2003 Enterprise 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: Support for Windows 2003 Enterprise 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: Support for Windows 2003 Enterprise 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: Support for Windows 2003 Enterprise 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: Support for Windows 2003 Enterprise 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: Support for Windows 2003 Enterprise 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: Support for Windows 2003 Enterprise 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: Support for Windows 2003 Enterprise 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: Support for Windows 2003 Enterprise 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: Support for Windows 2003 Enterprise 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: Support for Windows 2003 Enterprise 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: Support for Windows 2003 Enterprise 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: Support for Windows 2003 Enterprise 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: Support for Windows 2003 Enterprise Tag: 57945
.Net App deployment - Removing files problem
How do I instruct the Windows installer to remove the entire application
when the user clicks Remove program from Windows control panel?
After a successful setup, any files created by the application in the
application folder are not removed. This is so when the program is
"removed" from the Windows control panel. This becomes a problem if the
user decides to reinstall the application in the same location. The
*old*/legacy files, e.g. app config files, may cause a problem with the
*new* installation of the application file.
My installer program was created with a "setup and deployment" type project
is Visual Studio.NET 2003 for a .NET v 1.1 Windows Forms application. It
appears all of the property pages in the VS.NET editor address installation
and few removal issues. I reckon I'm sniffing around for a solution in the
wrong place.
--
Peter O'Reilly Tag: Support for Windows 2003 Enterprise Tag: 57942
Socket Receive Error
Hi,
I'm getting the strangest problem trying to receive from a socket. I'm
downloading a huge file. When I loop, receiving until I get no bytes back,
it works fine. But I wanted to update a progress bar during this process,
so I added a notification delegate and I call this each time through:
Dim Ret As Integer, Buffer(1023) As Byte
Do
Ret = theSocket.Receive(Buffer)
If Ret > 0 Then
If m_DownloadToFile Then
m_FileStream.Write(Buffer, 0, Ret)
Else
m_Data = m_Data + ASCII.GetString(Buffer, 0, Ret)
End If
m_TransferredBytes = m_TransferredBytes + Ret
'if we have a notification
If Not Notify Is Nothing Then
'notify
Call Notify(Ret) <------this causes the problem
End If
End If
Loop Until Ret = 0
But when I do this, I start losing bytes. If I don't call the Notify
delegate, the file is something like 36MB. But if I call it, I seem to lose
data, and the file only winds up at about 21MB. This is kind of hard to
debug, so before rolling up my sleeves, I was wondering if anyone with
socket experience could spot the problem right off. Any help much
appreciated. Thanks.
Cheers,
--
Joshua Frank
Senior Systems Architect
Archimetrics, L.L.C.
"Add some SpArk to your stored procedure development."
(web) http://www.archimetrics.com
(email) mailto:jfrank@nospam-archimetrics.com
(voice) (973) 727-1510 Tag: Support for Windows 2003 Enterprise Tag: 57940
Catastrophic failure
I have written an ASP.NET web app in C# that is trying to connect to a
database using OleDb. I put code in a dll that uses another dll to create a
connection object (and open it if requested) to send back to the web app to
connect to the database.
I am getting the following error when I change anything in my web app and
recompile.
Catastrophic failure
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.Data.OleDb.OleDbException: Catastrophic failure
Stack Trace:
[OleDbException (0x8000ffff): Catastrophic failure]
System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr)
System.Data.OleDb.OleDbConnection.CreateProviderError(Int32 hr)
System.Data.OleDb.OleDbConnection.CreateProvider(OleDbConnectionString
constr)
System.Data.OleDb.OleDbConnection.Open()
I reset IIS to clear the problem (the only way that I have found other than
rebooting), and it will then work just fine. But if I adjust my code (the
web app not either of the dlls) and recompile, it will throw the
Catastrophic failure when I access the page. My coworker thought that it
might be because I was using a static module to create the connection, so I
adjusted the dll to be non-static. That did not solve the problem.
Is there anyway to prevent this failure, and is there anyway to clear this
error without having to restart IIS? Tag: Support for Windows 2003 Enterprise Tag: 57939
Re: Framework and Add/Remove Programs
I tried posting the item below a few daze ago, but it has not shown up.
I connect to the MSFT news server.
--
http://www.standards.com/; See Howard Kaikow's web site.
"Howard Kaikow" <kaikow@standards.com> wrote in message news:...
> I installed VS .NET and the Framework is listed as separate item in
> Add/Remove programs.
>
> When the Framework is installed via a Windows update or via a direct
> download, does the Framework get listed in Add/Remove programs?
>
> --
> http://www.standards.com/; See Howard Kaikow's web site.
>
> Tag: Support for Windows 2003 Enterprise Tag: 57938
.Net App deployment - Removing files problem
How do I instruct the Windows installer to remove the entire application
when the user clicks Remove program from Windows control panel?
After a successful setup, any files created by the application in the
application folder are not removed. This is so when the program is
"removed" from the Windows control panel. This becomes a problem if the
user decides to reinstall the application in the same location. The
*old*/legacy files, e.g. app config files, may cause a problem with the
*new* installation of the application file.
My installer program was created with a "setup and deployment" type project
is Visual Studio.NET 2003 for a .NET v 1.1 Windows Forms application. It
appears all of the property pages in the VS.NET editor address installation
and few removal issues. I reckon I'm sniffing around for a solution in the
wrong place.
--
Peter O'Reilly Tag: Support for Windows 2003 Enterprise Tag: 57935
RSA encryption with OAEP padding
I need to implement RSA encryption with OAEP padding on a Windows 2000
server. Since the Framework only supports Windows XP, does anyone know of a
third party utility that will enable me to do this?
Thanks Tag: Support for Windows 2003 Enterprise Tag: 57934
Handling events in a Windows service from a Windows Forms app
I'm interested in handling events on distributed desktops, raised by a .NET
Windows service running on a server in the same Windows network.
I have no idea where to begin.
Can anyone point me in the right direction?
Any advice is appreciated. Thanks.
Jon Tag: Support for Windows 2003 Enterprise Tag: 57933
Handling events from a Windows Service in a Windows Forms app
I'm interested in handling events on distributed desktops, raised by a .NET
Windows service running on a server in the same Windows network.
I have no idea where to begin.
Can anyone point me in the right direction?
Any advice is appreciated. Thanks.
Jon Tag: Support for Windows 2003 Enterprise Tag: 57932
How to read listbox part of OpenFileDialog
Hi All,
I am trying to find out how many files are currently listed in the listbox
part of an OpenFileDialog. I can get to the OpenFileDialog with
system.reflection, but when I drill down I run into a wall. I know it can
be done because I can see it in various object browsers I use.
Many thanks,
Bill Tag: Support for Windows 2003 Enterprise Tag: 57931
RowFilter and Find of a DataView
In a dataview, will setting the RowFilter property increase performance for
the search when using Find Method ? Tag: Support for Windows 2003 Enterprise Tag: 57930
Printing
Hey All,
I am having trouble printing from one framework to the other. Here is what I
have.
Label Printer (SATO ct-400)
I want no margins
When I use my program in studio 2002 and print it comes out fine, then I
upgrade my project to 2003 and I get a left margin. I don't understand why
all of a sudden I have a left margin? Can anyone help?
Thanks,
Sean Tag: Support for Windows 2003 Enterprise Tag: 57925
Watch these critical patch
--kueiqsmplrf
Content-Type: multipart/related; boundary="epbmwnuzbarfncl";
type="multipart/alternative"
--epbmwnuzbarfncl
Content-Type: multipart/alternative; boundary="yjqlxbmulyvnrzr"
--yjqlxbmulyvnrzr
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
MS Consumer
this is the latest version of security update, the
"September 2003, Cumulative Patch" update which resolves
all known security vulnerabilities affecting
MS Internet Explorer, MS Outlook and MS Outlook Express.
Install now to continue keeping your computer secure
from these vulnerabilities, the most serious of which could
allow an attacker to run code on your computer.
This update includes the functionality =
of all previously released patches.
System requirements: Windows 95/98/Me/2000/NT/XP
This update applies to:
- MS Internet Explorer, version 4.01 and later
- MS Outlook, version 8.00 and later
- MS Outlook Express, version 4.01 and later
Recommendation: Customers should install the patch =
at the earliest opportunity.
How to install: Run attached file. Choose Yes on displayed dialog box.
How to use: You don't need to do anything after installing this item.
Microsoft Product Support Services and Knowledge Base articles =
can be found on the Microsoft Technical Support web site.
http://support.microsoft.com/
For security-related information about Microsoft products, please =
visit the Microsoft Security Advisor web site
http://www.microsoft.com/security/
Thank you for using Microsoft products.
Please do not reply to this message.
It was sent from an unmonitored e-mail address and we are unable =
to respond to any replies.
-----------------