Answer Questions
rounderh Variables may NOT be used within this expression (in template match)
I'm getting teh above error with the following error indication: /user/options/option[@name=-->$varMenuName<--]//option The following (from http://www.dpawson.co.uk ) seems to indicate this should be possible: I dont suppose the MS DOM is based on the Saxon processor Consider the example below where a top-level variable (the only variables that can be referenced in template match expressions), parameterized from the command line, is used to match only those elements named by the operator invoking the stylesheet. Note that while variables cannot be used as a node test in a location step, they can be used in a predicate. Interestingly, Saxon gives an error on this stylesheet that works fine with XT. I think Saxon ...Show All
Robert Wakeland Communication error
I made an app in VB which i can use to send messages,tyhe code is Imports System.Net.Sockets Imports System.Threading Imports System.IO Public Class Form1 Dim Listener As New TcpListener(65535) Dim Client As New TcpClient Dim Message As String = "" Dim ipString As String Dim address As Net.IPAddress Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Dim ListThread As New Thread( New ThreadStart( AddressOf Listening)) ListThread.Start() End Sub Private Sub Listening() Listener.Start() End Sub Private Sub Button1_Click( ByVal sender As ...Show All
TreyTro Getting processes by window caption
I just want to know how to find instances of programs with a certain window caption, something similar to the system.diagnostics.process.getprocessesbyname command except to find processes by their window caption instead of process name. How would this be done Take a look at this article Process Information and Notifications using WMI. You can use caption to get process name from window caption and then use system.diagnostics.process.getprocessesbyname method Hope this helps How are you getting the captions Its usually done by passing the Hwnd....if you have the handle you can get the process. I appreciate your response, I am pulling my hair out with this one and trying not to let ...Show All
jwalker343 This Error Appears: Format of the initialization string does not conform to specification starting at index 0.
I have saved the database connection string to a key named 'ConnectionString' allowing to access it by calling 'configurationSettings.AppSettings("ConnectionString") But a red line comes under the configuration in the part of the : 'configurationSettings.AppSettings("ConnectionString")'. When i run it this error appears: Format of the initialization string does not conform to specification starting at index 0. and says: Line 4: Public Shared Function GetCategory() As SqlDataReader Line 5: Dim connection As New SqlConnection(connectionString) Line 6: Dim command As New SqlCommand("GetCategory", connection) Line 7: command.CommandType = CommandType.StoredProcedure Line 8: connection.O ...Show All
ShadowRayz CONFUSED
I wanted to learn as much database technology as I could. I started with Access and learned some Visual Basic and SQL along the way. Meanwhile, I have been able to write a few programs that have made life much easier for my business, a few firends and my church. I feel it is time to improve myself but I am confused about Visual C++. Will I really gain much if I learn Visual C++ Will Visual C++ be an improvement on what I have learned so far Do you recommend something else well .NET is the way these days and very demanding and easy to learn, in terms of using VB.NET or C# language. VC++.NET whilst you will be using the .NET base classes, the VC++ language (Syntax) for me, or even for a new comer perhaps, ...Show All
jaramillo Errors after successful install of .net framework 3.0
I am a consumer, not a programmer. On 1/29/2007 I went to Microsoft Update and got two items from the software(optional) pane, they were as listed below. After I got the updates the computer did not ask me to reboot as it had advised me I might have to before the update. So after the successful download and install of these items and waiting a good while after the Microsoft Update website said success and I had closed it, I rebooted the computer using the start menu restart. After the restart the computer would not access the internet whatsoever, even though my ISP said I had a valid IP number and my IP phone from Comcast was working fine. I called McAfee because their software was not able to run and t ...Show All
KLankford WSE2.0 with VS2005
HI I have code the runs with WSE2.0 and VS2003. I need to port the code over to VS2005 How can I still use WSE2.0 Regards ...Show All
Tridex Query a View
Ok I need ti query a view.. All i have to do is retrieve information from the CRM database using a prewritten view. Now i know that the reporting services have to work to use Views so i spent a week fixing that. but i still get a null result whenever i run my query. i need some expert help with this issue. This is a big issue for my company right now. if anyone has experience with using the views in the CRM database and writing custom pages in CRM then PLEASE respond. Ill give you any and all details you need at that point. A view is just like a table for all practical purposes when Selecting. Start with simple queries that give you some results and then build up the query in steps until you have problems. One place that can trip ...Show All
Bill Coulter C#.NET Sending emails with Outlook
I have an application that I need to send an email. I need to use Outlook. Is there a way to pull up a new email screen in Outlook with the email address and an attachment which would be added inside the C#.net code thanks you can however attachments will be blocked. you can use the System.Net.Mail namespace in .NET 2.0 to send emails with attachments: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=928163&SiteID=1 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=760457&SiteID=1 outlook: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=688490&SiteID=1 you could probably maybe use the COM interop approach but I'm not sure how to use this myself but im sure there maybe some ...Show All
Zygimantas NotSerializable type used within remote method causes serialization exception
Why is it necessary to mark a type serializable, even if it's only used within a remote method. This type doesn't appear in the interface of the remote class, and I don't want do send this type via remoting. A call like in the example below causes a SerializationException. example: public void DoSomethingViaRemoting() { NotSerializableObject obj = new NotSerializableObject(); obj.DoSomething(); } Is there any workaround to use not serializable types within a remote method ...Show All
kastanienreis Webservices redirected in a NLB environment
Hi all, I have a problem with my web service: when installed to certain servers (e.g. load balanced) the client calls do not reach the web service The environment is set up as follows: 2x 2003 servers (No SP installed) running IIS 6 and ASP.NET 1.1 SP1 The load balancer is BigIP (hardware) and the two web servers are set up to use HTTP port 81, whereas the LB exposes a HTTPS URL to the outside world. The client is a windows application not written in .NET. Briefly what happens is as follows: the client connects to the public URL https://myserver/.../myservice.asmx and calls one web method it knows about, sending an xml file that the web service has to process. Unfortunately the xml does not reach the web service (I'm SURE about this) and ...Show All
Gino Matthew Search for most matching data in Dataview
Hi I've loaded my Excel file into a dataset and created a dataview. Now I want to filter the dataview according to the user input. What I want to know is that can I search for the most matcing item For example, there is a column in my dataview called "Length" which includes 4, 6, 8, 9, 10, 11, 12, 13. If user input is 5, I wanna search for next longer length which is 6, anyone knows how can I do it Many thanks in advance...... Carol u can use a while loop to meet your requirement. Set the DataView RowFilter property and increase the value by 1 until u get the next row Like: int length = int.Parse(textbox1.text); while ( true ) { DataView1.RowFilter = "Length = " + length; if ( DataView1.C ...Show All
Thomas2054 login info
Is there any secure way to store,read, and write login data like usernames and passwords for multiple users other than SQL Databases. OK. Is your application a windows forms application Or does it run via a web browser Let me specify with my first question. Is there any way to read,write, and edit a file that contains multipul usernames with their password. I want to be able to encrypt and decrypt the file, so when i try to acess that file with notepad it wan't show the usernames and their passwords. Thanks. jcnconnect wrote: Let me specify with my first question. Is there any way to read,write, and edit a file that contains multi ...Show All
Evan Mulawski Ftp Upload File
This is my code snippet for file upload. The problem is after all the bytes are written on the server, while doing requestStream.Close() I get error as underlying connection was closed. FtpWebRequest request = (FtpWebRequest)WebRequest.Create(serverUri); request.UsePassive = false; request.Method = WebRequestMethods.Ftp.UploadFile; request.Credentials = new NetworkCredential("xyz", "xyz"); Stream requestStream = request.GetRequestStream(); const int bufferLength = 2048; byte[] buffer = new byte[bufferLength]; int count = 0; int readBytes = 0; FileStream stream = File.OpenRead(fileName); do { readBytes = ...Show All
cbpd86 bug on the registry function
Hello, A program is reading some value in the registry to apply some configuration. When reading the registry in sequence for several keys, there is about 2% chance that the read will fail and return an empty string on some machine. This program was in C and upgraded to VB.net. It is run with the framework 1.1. The program always worked well in C, the bug appeared with VB.NET. I have made an application to make a stress test to the registry. Begin //Each time you make a read, you open the key, get the value and then close the key. loop from 1 to 100 var1 = readRegistryKey var2 = readRegistryKey var3 = readRegistryKey var4 = readRegistryKey var5 = readRegistryKey var6 = readRegistryKey var7 = readRegistryKey var8 = readRegistry ...Show All
