Answer Questions
robinjam really i need to know what xml really do !!!
hi i spend a lot of time understanding what really can xml brings to me something great i read the following XML was Originally designed to meet the challenges of large-scale electronic publishing, XML is also playing an increasingly important role in the exchange of a wide variety of data on the Web and elsewhere. and , XML is designed to describe data and to focus on what data is. but i didn't understand great meaning for it !!! i need to know someting really very good for it and how can it do something great for my apps in .NET ,, thanks in advance. thanks for reply i stoped at < xml version = " 1.0 " encoding = " utf-8 " > < department name = " Software " location = &quo ...Show All
AnthoDesigns UnExpected reflaction after Updating a table any one face this .............?
Hi ADO.net Masters, After updating records in a table it updated sucessfully BUT, when i am looking in the crystal report and listView control for same record, it dose not reflect the changes, it shows the data befor updation. Any on tell me what is the issue for this type of error. actully i have take all these data from the MS Acesses. And i am using .net2003 with Sql Server2000 Please any one faced this type of prob.. pls help me thanks in advance.. Moved thread to .NET Framework Data Access and Storage since this question is not about the ADO.NET vNext CTP but about a released version of ADO.NET. Ghanshyam, Can you clarify a few more things please: Do you see the message “Record updated ...Show All
Matt Lin Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
I'm having issues figuring out how to get my application set up properly so it will authentiate correctly. I need to be able to use windows authentication (all access is internal to the domain) so that the user's credentials will be used to access an external resource. I've looked at the dcomcnfg but am now sure what needs the access updated. The com object that I"m attempting to use isn't listed there so I'm guessing there is something else I need to update. The server is Win2k3. Here's the error from the event viewer and the error from the page: Event code: 4011 Event message: An unhandled access exception has occurred. Event time: 12/19/2006 11:58:15 AM Event time (UTC): 12/19/2006 5:58:15 PM Event ID: fa2e0deea3 ...Show All
Deicide Unwanted promotion using TransactionScope
Hi, I wanted to test System.Transaction and using TransactionScope. So I wrote a little factory class which has very basic CRUD functionality. One of it's methods is CreateName: public static Name CreateName( string nameValue) { using ( SqlConnection connection = new SqlConnection( Properties. Settings .Default.TestDB)) { return CreateName(nameValue, connection); } } private static Name CreateName( string nameValue, SqlConnection connection) { Name name = new Name (nameValue); SqlCommand command = new SqlCommand (); try & ...Show All
PSDCHD Socket Problem?
Hi All, I tried create the tcpclient socket program. But my program has exception with receivesocket() function aften connected server.Please somebody can help me. Exception: A first chance exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll Receive Socket Error: System.Threading.ThreadAbortException: Thread was being aborted. at System.IO.__ConsoleStream.WriteFile(SafeFileHandle handle, Byte* bytes, Int32 numBytesToWrite, Int32& numBytesWritten, IntPtr mustBeZero) at System.IO.__ConsoleStream.WriteFileNative(SafeFileHandle hFile, Byte[] bytes, Int32 offset, Int32 count, Int32 mustBeZero, Int32& errorCode) at System.IO.__ConsoleStream.Write(Byte[] buffer ...Show All
Jules Bonnot WS - Impersonating...impersonating what?
Programmatically in .Net I can read and process a file on an intranet server via a console application. But when I hook up the code to my web service the file fails to be read. In IIS (Win XP IIS5) I have played around with the Anonomous Access to no avail and checked/unchecked to use Windows Authentication to tweak the access....also to no avail. I tried to impersonate my user account (via IIS/Properties/Authentication methods) to the same situation. What do I need to do to get the web service user , whoever it seems to be impersonating, allowable access to my network resource advTHANKSance Due to another issue with access to a remote SQL Server I have tried impersonation, unfortunately it ...Show All
efm01 Problem with IDataObject.GetData
I'm trying to extract a snapshot of formated data in excel and save it to a separate file. The following works. MyExcel = CreateObject("Excel.Application") MyExcel.Workbooks.Open(MyInputPath & "\" & MyInputFilename) myWrkBk = MyExcel.Workbooks(MyInputFilename) For Each MyWrkSheet In myWrkBk.Worksheets MyWrkSheet.Range("C3:L9").CopyPicture(Excel.XlPictureAppearance.xlScreen, Excel.XlCopyPictureFormat.xlBitmap) SaveToBmp(OutputPath & "\tmp.bmp" Next MywrkSheet Private Sub SaveToBmp( ByVal Filename As String ) Dim img As Image Dim data As IDataObject data = Clipboard.GetDataObject If data.GetDataPresent(DataFormats.Bitmap) Then img = CType (data ...Show All
Bubo Delete a File on FTP Server
I try to delete a File form a FTp Server. The example from the MSDN page not work for me. Here My example: Dim reqUri As String reqUri = String .Format( "ftp://{0}:{1}/" , "ftp://xxx.xxx.xxx/transfer/delta/input/test" , 21) Dim req As FtpWebRequest = CType (WebRequest.Create(reqUri), FtpWebRequest) req.Credentials = New NetworkCredential( "ftpuser" , "ftp_pass" ) req = CType (WebRequest.Create(reqUri), FtpWebRequest) req.Method = WebRequestMethods.Ftp.DeleteFile Dim resp As FtpWebResponse = CType (req.GetResponse, FtpWebResponse) The error is: The remote name could not be resolved: 'ftp' Thanks ! ...Show All
BillyB Serialisation fails when using generic collections. Feedback 119402.
There appears to be a bug in VS2005 which prevents generic collections from being serialised properly. Specifically, whenever any trivial change is made to the source code, causing the version revision to be changed, a mismatch occurs between the program and the serialised data causing a FileLoadException to be thrown. This only occurs if a) the serialisable object contains a generic (template) collection of non-simple types, b) the assembly has a strong name, and c) the assembly version revision number is defaulted. I have a simple test program which demonstrates this. The workaround seems to be to not put generic collections in serialisable classes. This, however, poses a major irritation for us as we are about to go to market with a pro ...Show All
AnnNeedsHelp Unable to add web reference in VS 2005
I have a web service and client that i created in VB.Net 2003 and tested on my local network. The service worked perfectly. I then changed the web reference URL to an external address so that i could install my client application at remote sites and i can't make the web service work! When i change the address I get an error message like: "Web Discovery Service - unable to download the following files from...". The missing file is the wsdl file. If i change the URL to: myurl:port/myservice wsdl, this error no longer appears, but when i execute the code i get another error: " A first chance exception of type 'System.Net.WebException' occurred in System.dll - unable to connect to the remote server". I suspect that th ...Show All
Tigerroad system.net.mail problems
Hi everyone, I've trying to use the system.net.mail namespace to send emails with the follwing code: Private Sub Envio_Correo( ByVal ruta As String ) Dim correo As New MailMessage correo.From = New MailAddress( "b98123839@usmp.edu.pe" ) correo.To.Add( "amonasiq@usmp.edu.pe" ) correo.Subject = "Archivo de Confirmacion de matricula" correo.Body = "Se adjunto archivo de confirmacion de matricula de su respectiva facultad" correo.IsBodyHtml = False 'correo.Attachments.Add(New Attachment(ruta)) correo.Priority = MailPriority.Normal 'Crando la instancia del SMTP cliente Dim smtp As New SmtpClient smtp.Host = "mail.usmp.edu.pe" ...Show All
Blkbird The schema returned by the new query differs from the base query error
Hi guys m working with vs2005 and SQL2005, When i try to add a query to my table adapter its saying: The schema returned by the new query differs from the base query And m building the query in the query builder and it says its correct , but when i want to add the query m getting the error here's the query: SELECT Bestellingen.Totaalprijs, BestellingInhoud.Aantal, BestellingInhoud.Prijs_per_stuk, BestellingInhoud.Aantal * BestellingInhoud.Prijs_per_stuk AS Expr1 FROM Bestellingen INNER JOIN BestellingInhoud ON Bestellingen.BestellingID = BestellingInhoud.BestellingID I hope somebody has any solution m getting sick of that error Hi The reason is that the field ...Show All
m_nille SQL Query
Can someone help me with an SQL query i'm trying to create. I have a 2 tables with the following attributes: Rental: Rental_ID (represents an ID # for the rental)ID( represents a members id #), Movie_ID (represents a movies_id #), Returned, Date_Returned and Movie: Movie_ID, Title, Actor etc What i want is a query that when i give the ID # for the member, it returns the details of the movie they have on rental (and not ones that have been returned) SELECT Movie_ID, Title FROM Movie WHERE Thanks for any help in advance Rental: Rental_ID (represents an ID # for the rental)ID( represents a members id #), Movie_ID (represents a movies_id #), Returned, Date_Returned and Movie: Movie_I ...Show All
Kea GetRunningObjectTable in .NET 2.0
Apparently GetRunningObjectTable is a new supported method in .NET 2.0. It is accessible via IBindCtx.GetRunningObjectTable and the signature is given as... void GetRunningObjectTable ( out IRunningObjectTable pprot ) Which of course implies that IBindCtx is a supported .NET 2.0 interface too. This is good. We don't have to bother with all that tedious P/Invoke stuff. So... ... does anyone have any ideas on how to get hold of the .NET 2.0 object that implements IBindCtx (because the MSDN certainly doesn't give us any clues!) Cheers, ~swg Well, that's fair enough. If there's no managed object then there isn't. Thanks for the info. Re: your final comment, I didn't draw the conclusion that ther ...Show All
Mariano_60 Side By Side : component version required conflicts with another component version already active
I am trying to run our client application in and I started receiving the following side by side errors. I cannot pin down what dll is causing this problem and it is driving me nuts! Anyone help Generate Activation Context failed for C:\Development\Debug\bin\App.exe. Reference error message: A component version required by the application conflicts with another component version already active. Talk about a frustrating error message, at least give me the component so I can begin to pin down this problem! May be the .net dev folks have seen such error before Thanks, Ayman Shoukry VC++ Team That was the error message form the event viewer. I rebuilt and everything started to work. I think 6 ...Show All
