Simple problem. See if you can spot the difference: xmloutput.FileName = @"c\projects\text.xml"; xmloutput.FileName = @"c:\projects\text.xml"; In essence the path you specified is not what you had intended. You meant to specify an absolute path. The compiler didn't detect the drive (c:) and treats the whole thing as path relative to wherever the application is being run from. In your case the bin\Debug.
nelo_
Posts
-
Passing A String -
Calling a ASP.NET C# function from javascriptYou could probably implement the ICallbackEventHandler interface. The MSDN sample is clear enough. I tried it successfully last week. I used to write a simple page that generated random numbers on the server. I had a loop in javascript that would retrieve the latest number and update a label on the page on the client side. Here's a link to the MSDN article I used as a guide: Implementing Client Callbacks Programmatically Without Postbacks in ASP.NET Web Pages[^]
-
Mixing Cpp and C# -- Calling Cpp-Class-Interface from C#I don't think you can do that directly. You will have to write a C/C++ interface that will call the functions in the C++ classes. When you write your interface be careful to choose data types that will be easily marshalled by .NET.
-
I have a question about invoke function in C++ dll, please help! [modified]I can tell you that you'll have to re-define the struct on the .NET side for sure. The second parameter seems like an array of doubles. Is that so? That will map to System.Array.
-
constructors in VisualC#.NETI see where you're coming from Pete but I think you're being a bit harsh... :-D Gone are the days when students would be in class, make some notes, read the handouts, read the recommended text books, look at API documentation, or even ask the tutor. Where would we all be without google and code project hey!? :-\
-
Database connection problemGareth is right. The error message gives you a clue. By default a SQL Server 2005 database only allows connections that originate from applications running on the same database server. You need to the change the Remote Connections settings in the SQL Server 2005 Surface Area Configuration. You'll see that the default is local connections only. You need to change to local and remote connections and pick one of the sub-options. Can we have a look at the connection string?
-
ASP.Net, Multithreading, and Response objectWell I think the first thing to do is to synchronize the output. I assume you some class that is controlling all the threads. This class should compile the results. Then your page can get the information through a web service you call client side. You can use the output to update your we b page. Or perhaps another option would be to implement the ICallbackEventHandler interface and have some client side code on a timer.
modified on Friday, March 28, 2008 12:07 PM
-
Question about Smart ClientHi, Are looking to build an application that will run primarily on a windows desktop? Do you want it accessible on a browser? What version of the .NET Framework/Visual Studio are you using?
-
question with internationalizationIf you put the information in a configuration file it would mean you having a copy of the configuration file for each culture or finding a way to change the configuration setting as part of the installation of the application. Perhaps it is easier to add the culture specific email address as a string in a resource file.