Answer Questions
nonno Publishform just shows up and can't be closed
Has anyone else had this problem a form called Publishform just suddenly shows up on the screen and in the taskbar and it can't be closed. It usually shows after using "copy web site". This last time I had used "copy web site" an hour ago and suddenly now it shows up. Any idea how to deal with this besides restarting vs Thanks Simmy There was nothing in that forum about PublishForm. Why was this post moved This isn't connected to web services or xml! ! ! ! The Visual Studio fourms here: http://forums.asp.net/138/ShowForum.aspx will be better able to answer this question. Thanks. ...Show All
Avi_harush System.AccessViolationException GDI+ System.Drawing
We are getting an access violation error when attempting to utilize the Frameworks GDI+ utilities. We are drawing an image that is outputed as a jpg file. Any help is appreciated. The stack trace is below. I can't figure out what to do with this. Is this a problem that microsoft should know about I couldn't find this error anywhere on MSDN, where it occurs in System.Drawing.dll. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at System.Drawing.SafeNativeMethods.Gdip.GdipCreateSolidFill(Int32 color, IntPtr& brush) at System.Drawing.SolidBrush..ctor(Color color) at Hansen.UI.Web.Controls.ChartImage..ctor() in C:\\ ...Show All
somegai System.Diagnostics.Process.Start not work with IIS, but on ASP.NET Development Server (Please help urgently)
Dear all: I am using VS2005 C# and testing on my local XP Pro PC with local IIS, I have wrote a web service to call a third party software .exe file to use CSV file to insert data in its OLEDB database, which use System.Diagnostics.Process.Start . The same codes did work when I use VS2005 build-in ASP.NET Development Server( http://localhost:2999/MyServices/MyServices.asmx ). but when I use IIS normal URL( http://developer/MyServices/MyServices.asmx ) to run Process.Start on the web service, it just haunlted and not doing anything. So I put the kill statment to kill the process after 1 mins, however, the process stopped, but did not do anything. T ...Show All
prasad_8104 specified cast is not valid
im developing a web service that interacts with sql server express. When i test out 1 service, this error pops up. below is my code in the web service. (note. Alarm and SMS are bot in INT but i have to cast them into String to insert into array). string[] aryAlert = new string[3]; dc.ConnectToDB(); command = new SqlCommand("SELECT SMS, Email, isDefault, UID, Alarm FROM Alert where (UID =" + uid + ") AND (isDefault='Y')", dc.Connection); command.ExecuteNonQuery(); reader = command.ExecuteReader(); while (reader.Read()) { try { &nb ...Show All
Luigi Fonti Conference app
I want to create a conference software. I'm new to C#, I've worked until now with Visual Basic 6, Java and C++. The basic modules are: - video module - audio module For the video part I managed to sort it out... take pictures at every 10-20 ms with the webcam, save them and then send the files to the other end. Now the next thing... how can I send audio streams between 2 computers I'm thinking at the following algorithm: record 10 seconds then save it as a wav file and send it to the other end, but I think this is a rudimentary method and also I want to create the conference in real time . Can you suggest me something I just need a little push meaning some links that I could study. Thanks in advance. For ...Show All
Marlin7 Image Upload Recommendation
I have developed a client/server application using a PocketPC2003 device and a local Windows PC. One of the features of the application is the ability to take pictures and assign them to a record. I'm able to upload the record to the server quite simply using sockets and a message system I've developed(using xml), but I'm a little stuck with the best way of sending the images. Currently I'm trying to investigate configuring a local website (as I need to send updates to my server as well), and being able to send/receive files within the website (simply because the customer will want to view the images on remote sites) But I can't quite figure out the best way to transmit my images up to the server. Really, I'm just looki ...Show All
john82 Error while trying insert values into a database table. Help!
I keep getting an error that says Incorrect syntax near ','. When I try to insert values into a database table. Here's the code: =================================================================== using System; using System.IO; using System.Data; using System.Data.SqlClient; using System.Collections.Generic; using System.Text; public class MemberFileReader { private MemberFileReader() { } public static void ParsePositional(string FileName) { String strSQLInsert = "INSERT INTO Members VALUES(" + tempCType+ "," +tempNRDS+ "," +tempLastName+ "," + tempFirstName+ "," +tempMiddleName+ ",&quo ...Show All
giftgirls Download Of Binary Files??
I am trying to download files in VB 2005 Asynchronously (To avoid UI JAM) , I need to HTTP POST the filename to the server and the file is being supplied as server response. Pls. guide. This is what I am currrently using but its OK only for Text, Html files. Public Sub PostData(ByVal strURL As String, Optional ByVal POST1 As String = "") ' Declare a variable named client of type WebClient. Dim myWebClient As WebClient ' Instantiate a WebClient object and assign it to the 'client' variable. myWebClient = New WebClient ' Add handler to process theWebClient's DownloadProgressChanged events. AddHandler myWebClient.UploadProgressChanged, AddressOf UploadProgress ' Add handler to process theWebClient's DownloadComple ...Show All
Keith27 WSE versus SSL
If I'm securing a web service using WSE, does that mean that SSL is redundant, or does having SSL as well give me some additional benefits What about performance - will using both make performance much worse than if I just used one Thanks. shellshock, whether using WSE and SSL is redundant depends on how are you using WSE. WSE can be used either for Message and Transport security. Message security represents the process of authenticate or authorize the client user.... so WSE provides you with 3 ways to send user credentials to web services: usernameToken, kerberosToken or digital certificates. Apart from that you can also use WSE to implement Transport security.... that means to encrypt th ...Show All
Ion101 .NET Runtime 2.0 Error Reporting
I run a VS2005 application on a Win XP (Greek localized version) that connects to a remote SQL 2005. The application run smoothly but when I shutdown the application I get, sometimes, the error: EventType clr20r3 , P1 itemtracker.exe, P2 1.0.0.0, P3 45b8c139, P4 microsoft.visualbasic, P5 8.0.0.0, P6 4333d6d8, P7 5e, P8 29a, P9 34ssps20bdj3nj0wmit5kamzhvglfzcc, P10 NIL. I also use Framework 2.0 Any ideas how can I get around this No, I haven't sort it out yet... Hi, I'm very interested in that problem. Have you resolved it If yes what was the reason I also have the same erro ...Show All
Axe22 FileStream running slow in Window's forms but not in a windows service
Hi, I'm runnning the same piece of FileStream code (see below) in a simple windows form and in a service but the code in the windows form is running 50 odd seconds slower (7 seconds in the service, 59 seconds in the form) . The file that i'm running the test on has a size of '1.56 MB (1,641,874 bytes)'. using (FileStream s = new FileStream(@"c:\ss.drs", FileMode.Open, FileAccess.Read)) { DateTime start = DateTime.Now; while (s.Position != s.Length) { s.ReadByte(); } TimeSpan ts = DateTime.Now - start; Debug.WriteLine(ts.ToString()); } Any ideas anyone Thanks in advance JK It aint anything to do with caching. The pro ...Show All
Chrismanster Update Fail
hi, when i update records in the database, the updates dose'nt show up when i re_run the program why is that I used DataGridView to update Records. I use VB 2005 express edition and Microsoft SQL Server 2005 Express Edition with Advanced Services. In my sample code I just specified the DataSet not only the DataTable. Does that make a difference for you Me.CustomerTableAdapter.Update(Me.Database1DataSet) -- SvenC When you created the DataGridView you should have been asked to set up a new DataSource. That should have created three additional members of your form: YourTableNameTableAdapter YourTableNameBindingSource and a typed DataSet See your form in the designer. At to ...Show All
amendez What is wrong with following code to get webrequest and save it locally
I am working on a desktop application.I have to download some file from the web then replace some token in the stream and then save it to locally. Some time source will be xml some time it will be html and some time csv so the content type is not strict. My code is following HttpWebRequest request = (HttpWebRequest)WebRequest.Create(" http://localhost/xml/mytest.xml "); HttpWebResponse response = (HttpWebResponse)request.GetResponse(); StreamReader reader = new StreamReader(response.GetResponseStream()); System.Text.StringBuilder strb = new System.Text.StringBuilder(); strb.Append(reader.ReadToEnd().ToString()); strb.Replace(" ",""); reader.Close(); StreamWriter sw = new StreamWri ...Show All
CJSingh i want to serialize a file into new structure?
hi i want to serialize a file into new structure of my own also can i serialize any data into a field of an access database and what is the maximum size i want to know any crazy ideas about serialization just any creative ideas about it thanks in advance. thanks for help how can i serialize audio file into a database field and the audio file at the bin directory thanks in advance. hi any help i'm not sure about what is the NEW STRUCTURE u want, but i think u can save ur object into a field in database via serialize. here is an ex: //o is your object , and it's instance of classX XmlSerializer serializer = new XmlSerializer(typeof(classX)); MemoryStream s = new Me ...Show All
Andy Ho Can a WSE 3.0 client talk to a WSE 2.0 server
I have developed a new client webservice using .net 2.0 so I had to upgrade to WSE 3.0 security. The webservice that I have been using is secured with WSE 2.0. Is it possible to encrypt and sign my usernameToken using 3.0 in a way that the 2.0 server will accept the message. I have had no luck so far and I am starting to think that is may not be possible. If anyone know how this can be done please advice. The code I used in my 2.0 clients to sucure the message follows: Dim token As New UsernameToken( "name" , "password" , PasswordOption.SendNone) Service.RequestSoapContext.Security.Tokens.Add(token) Service.RequestSoapContext.Security.Timestamp.TtlInSeconds = 60 'message signature Dim tokenKeys ...Show All
