Answer Questions
JeevesIndia Open source database
does any know of any light open source database .... This question is outside of the scope of this forum. ...Show All
Knvb1123 disabling an application
If I have an application running under IIS, such as a web service or an asp.net application, is there any way to disable this application other than stopping IIS this would be useful when upgrading an IIS served application. thanks in advance I have a shared hosting account on a server, when I upload my application using VS2005 it creates a file in same directory as web.config called 'app_offline.htm' which disables my web service. Try it. Hope this helps. paul. ...Show All
Pete Ford IIS problem after setup of VS2005 SP1
After the installation of VS2005 SP1 i get the following error on any web browser : "Active Server Pages error 'ASP 0201' Invalid Default Script Language The default script language specified for this application is invalid." Can anyone help me fix that The default language for scripts on my PC is set to VBScript as it should be.I have a WindowsXP SP2 updated machine. Thanks My IIS was corrupted after trying to update VS2003 with SP1. Ultimately we had to remove IIS, re-install VS2003 and SP1 and then reinstall IIS. I don't know if that's what you should do but it was the solution to my problem. It didn't work.Can someone else help ...Show All
TA123 How can i insert new value into an existing xml document
I'm newbie in C# and i want to insert a new data into an existing xml document in ASP.Net 2.0 , looked msdn but i couldnt understand how please help me... this is my existing xml document: < xml version = " 1.0 " > < item > < title > </ title > < description > </ description > < pubDate > 27.07.2006 16:27:31 </ pubDate > </ item > in here i want to add a value into the <item> node... Probably the easiest way is to use the XmlDocument class. Example: XmlDocument doc = new XmlDocument(); doc.Load(path); //path to xml document doc.DocumentElement.AppendChild(doc.CreateElement("myNewElement")); //insert new it ...Show All
BobH How to suppress the BOM while using XMLTextWriter?
I am using XMLTextWriter to create an UTF8 XML document. Is there a way to suppress the "EF BB BF" bytes I think default System.Text.Encoding.UTF8 is UTF8 with BOM. At least in sources it looks like public static Encoding UTF8 { get { if (utf8Encoding == null) utf8Encoding = new UTF8Encoding(true); return utf8Encoding; } } That means you are actually producing UTF-16. BOM is required in UTF-16. Show us how you write XML. That's weird. I can't reproduce this problem. provide more details please. Oleg Tkachenko wrote: I think default System.Text.Encoding.UTF8 is UTF8 with BOM. Yes, Oleg is right. thanks everyone! ...Show All
djponmsft Serialport freezes
Hello, i'm developing app which reads incoming data from GPS receiver via serial port. The problem is that app freezes sometimes, even in Visual Studio IDE, when i attempt to close the app. Thank you for any kind hint. Yeah, at least until MSFT fixes this problem, that's a workaround that seems to be most practical. Windows makes sure that the handle to the serial port gets closed when your program terminates. Thank you nobugz for your kind hint. I read all the threads thoroughly and found only one ugly solution for deadlock: do not call Close() method, just close app. Am i right, please There's a deadlock in the SerialPort.Close() method. It never ...Show All
EricGeorge XML transform
Hello everyone, I have a requirement as follows.... Sql server table is retrieved from database as a dataset. By using writexml I retrieved the dataset xml . But I have requirement which to save the xml in a different format. Can you tell me how can i transform the exisitng xml to a different format which embeds some rules. Can any one provide me a direction how to do this.... Thanks!! SqlNew One of the best ways is to apply an XSLT transformation to the xml file. Cheers, Dimitre Novatchev Study the VS2005 documentation on XslCompiledTransform . Cheers, Dimitre Novatchev. I never used XSLT be ...Show All
Caffey How do i update table with ID's from user input?
I want to be able to input what rows (ID's) that should be updated in an UPDATE query. How would you create a UI for this task, and how should i build the query string My previous solution was this: - I created a bunch of textboxes (approx 20), cause i usually did not need to update more than 20 rows. - For each row i needed to update, i filled in the ID in a textbox. Usually, there would be some empty textboxes left. - When clicking a "Update" button I ran a hardcoded a query, that took the values from the textboxes as arguments in the WHERE clause. Example (simplified) "Update Orders SET Status = 'Shipped' WHERE ID IN( "; + txtbox1 + txtbox2 + txtbox3 and so on. Of course, i controlled the data first, and ...Show All
stombiztalker WSE 3.0 and Kerberos with Windows Forms Client?
Hi. I'm trying out the QuickStart samples from the WSE 3.0 crew. I got them installed on my Server 2003 machine, logged on with my laptop and it works, with the ASP.NET client. But when i try the Windows Forms client i get this error message (same policy settings): System.Security.SecurityException: WSE594: InitializeSecurityContext call failed with the following error message: There are currently no logon servers available to service the logon request. at Microsoft.Web.Services3.Security.Tokens.Kerberos.KerberosClientContext.InitializeContext(Byte[] inToken) at Microsoft.Web.Services3.Security.Tokens.Kerberos.KerberosClientContext.InitializeContext() at Microsoft.Web.Services3.Security.Tokens.KerberosToken..ctor(String ...Show All
Luxsy CSharpCodeProvider and temporary files
I'm using CSharpCodeProvider.CompileAssemblyFromSource() to compile C# scripts from within a Windows service. Everything works great from my machine but when deployed to our test servers, this error occurs: Compilation errors: Compilation failed:error CS1619: Cannot create temporary file 'c:\WINNT\system32\CSCDBC.tmp' -- Access is denied. Is there a way to specify where this temporary file is generated I've tried everything. TempFiles collection doesn't do it. GenerateInMemory doesn't do it. Actually that doesn't work. I replied in the newsgroups about this. Basically, I used Reflector to view the internals of CSharpCodeProvider. CompileAssemblyFromSource() doesn't use the parameters like you would think. CompileAssembly ...Show All
Meggy WMI Problem
I've tried these two methods of accessing Win32_Account from WMI, from two separate PCs, each trying to access both itself and the other PC. In all cases the For Each loop does not execute as if the Instances collection is empty. Any attempt to inspect the Instances collection with a debugger hangs. I can run similar code in VB6 using objects and it works perfectly and lists accounts on each machine. Is this a bug in System.Management or am I doing it wrong Dim wmi As New System.Management.ManagementScope( "\\" & "somepc" & "\root\cimv2" ) Dim sClass As String = "Win32_Account" Dim opt As New System.Management.ObjectGetOptions( Nothing , New System.Ti ...Show All
Hilley Missing namespace error.
I am working on an ASP Classic website but am growing out of its native XML parser, MSXML. Saxon parser is available on .NET so I am thinking about migrating, at least partially. I made an sample.aspx page but it chokes on: <%@ Import Namespace="Saxon.Api" %> (Need to register the DLL) Problem: I am not sure what is involved with setting up a new .NET project. I come from a Perl/PHP background and the whole ISS Application Directory sounds a little overinvolved for me. Essentially, I just want to make 1 .NET script which performs XML Transforms. I'm just a dude trying to use Saxon's Namespace but I don't want to go through the whole VS->Add Reference ***. 1) Is there some other way to include the .DLLs so I can use the c ...Show All
DiasVFX WebException: The underlying connection was closed
Hi After upgrading our win client app to run on version 2.0 of the .net framework (prev. v1.1) on of our customers reports the following error when calling a web service on our server: System.Net.WebException: The underlying connection was closed: A connection that was expected to be kept alive was closed by the server. The customer is using a proxy-server, but it worked fine before the upgrade, and other customers who are behind proxy-servers has no problems. The error does not occur when the customer accesses the web service using Internet Explorer. The customer is behind a firewall. /Daniel This is not an answer, but similar problem. Having the same problem using .net ...Show All
Christoph Moor vb.net 2005 code doesn't work in vb.net 2003, HELP!!!!!!!!!
VbCode Why doesn't it work. Why doesn't my code work. I am working with vb.net 2003 and I was following an example in .net 2005.The code is very short. I am only having a problem with one line. If someone test this out on there 2003 version You must have an xml file in th same folder that you have you executable named cars.xml. This code was placed in a button click event. The xml Code and vb code is below. The word Oldsmobole Should appear in the textbox. HEELLLLPPP!!! I keep having a problemn with line 4, of which I highlighted in red. Im geting An unhandled exception of type 'System.Xml.XmlException' occurred in system.xml.dll Additional information: Syst ...Show All
Pushkar Tiwari XML Serialization
Hi, I'm reading about XML Serialization but I can't understand one thing: By the OO "rules" the fields should be private and accessible by properties. But XML Serialization only serializes public fields, this breaks one of the basics rules of OO programming. Can anyone show me where I am wrong or explain me thanks Just one more question: What is the difference between SOAP serialization and XML serialization Thanks I was trying whit private fields with read-only propertiers, and this was not working. But with both "operators" it worked. Thanks :) Oscar, When you deserialize xml to an object the CL ...Show All
