data-platform-development-forums,xml-systemxml-msxml-and-xmlliteRelated issues-Collection of common programming errors
msdn
data-platform-development-forums adonet-managed-providers
I have a C# application that includes legacy C++ COM projects as part of the solution. If I stop debugging, edit the C++ COM object and try to recompile I get an error like:LINK : fatal error LNK1168: cannot open .\Debug/SDTCustomizableDataForms.dll for writingI have to restart Visual Studio 2005 (RTM version) to get the file released so it can be writtern.How do I get around this? I thought this was suppose to get fixed in VS 2005?Alicia
msdn
data-platform-development-forums adonet-managed-providers
I am attempting to read several million records from a SQL Server 2012 database. The table I am reading from is of the following form:CREATE TABLE [dbo].[case_waveform_data] ([case_id] INT NOT NULL,[channel_index] INT NOT NULL,[seconds_between_points] REAL NOT NULL,[last_time_stamp] DATETIME NOT NULL,[value_array] VARBINARY (8000) NULL);Ultimately I am reading in each record, decompressing the value_array, combin
msdn
data-platform-development-forums adonet-managed-providers
Our staging web application on .Net 4.0 and SQL Server 2008 R2 was running smooth for more then 2 months. All of a sudden, we started getting error in the application saying:Error Message: System.InvalidOperationException: Internal connection fatal error. at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObjectstateObj) at System.Data.SqlClient.SqlDataReader.HasMoreResults()This
msdn
data-platform-development-forums adonet-entity-framework-and-linq-to-entities
Hi, We have a data access layer with POCO classes mapped to stored procedures in the database. We sometimes get errors such as “Server: Msg 208, Level 16, Line 1 Invalid object name ‘xxx'” in the database, usually because someone missed a step in the databasedeployment (user creation, permissions, linked server etc). This can be seen very easily in the SqlServer Management Studio or Profiler.The problem is that when we run the application, this type of error does not generate
msdn
data-platform-development-forums adonet-managed-providers
Hello,I’d appreciate any light you could shed on this error.I have a piece of code that has been running just fine for months. Today, it threw an SQLException that said: “Warning: Fatal Error 831 occurred…”. I can’t find any documentation on what fatal error 831 might mean.I am calling System.Data.SqlClient.SqlDataReader.Read() for a stored procedure in SQL Server 2005.Thanks!John
msdn
data-platform-development-forums adonet-managed-providers
Cannot open database “db1” requested by the login. The login failed. Login failed for user ‘BIGRED1\ASPNET’.I just got sql server ctp 2005 installed and have connected visual web developer with it. I can create databases through VWD, but when i try to open a page with any connectivitiy to the DB i get the above error. Does anyone know what i need to check, change or add?
msdn
data-platform-development-forums xml-systemxml-msxml-and-xmllite
I use CoCreateInstance function to get an IXMLDOMDocument2 object, but sometimes this function fails with 0x8007045a error code returned. I look for the error code, and it means “A dynamic link library (DLL) initialization routine failed.” I might guess something wrong with the dll, but it doesn’t always fails on the same system. HRESULT hr = CoInitializeEx(NULL, COINIT_MULTITHREADED); IXMLDOMDocument2* pDoc = NULL; hr = CoCreateInstance (__uuidof(DOMDocument), NULL, CLSCTX
msdn
data-platform-development-forums linq-to-sql
I have a database and ASP.NET application that I have created for a foreclosed property registry. I have been receiving a “SqlException was unhandled by user code” error that makes no sense to me. The text of the error is”Cannot insert the value NULL into column ‘Phone’, table ‘Foreclosures.dbo.Purchaser_Data’; column does not allow nulls. INSERT fails.The statement has been terminated.”When I check the locals window and even the SQL statement that LINQ generated
msdn
data-platform-development-forums xml-systemxml-msxml-and-xmllite
Hi,After installing update KB936021 (http://support.microsoft.com/kb/936021) parsing fails on the xsl files, and it worked great before. I have come to the conclusion that it has something to do with the resolveExternals property is set to false after updating to the latest version, and it has been set to true before.But I have no idea where to change this.. Btw, it is written in J++ so pretty old stuff…Here is the output in the web browser:Code SnippetCould not parse XML or XSL file java.text
msdn
data-platform-development-forums adonet-entity-framework-and-linq-to-entities
Hi!I have a piece of code that is supposed to remove a voucher along with all the rows.First i query for all the rows and remove them, then i remove the voucher.The row also has a mapping entity to an account table.Everything works fine if i dont use transactions.Now I want to do this operation within a transaction and then I get “The underlying provider failed on Open.” when trying to load the rows.Anyone got an idéa what i´m doing wrong?Regards,Håkan—————-Here is the code:
msdn
data-platform-development-forums xml-systemxml-msxml-and-xmllite
I use CoCreateInstance function to get an IXMLDOMDocument2 object, but sometimes this function fails with 0x8007045a error code returned. I look for the error code, and it means “A dynamic link library (DLL) initialization routine failed.” I might guess something wrong with the dll, but it doesn’t always fails on the same system. HRESULT hr = CoInitializeEx(NULL, COINIT_MULTITHREADED); IXMLDOMDocument2* pDoc = NULL; hr = CoCreateInstance (__uuidof(DOMDocument), NULL, CLSCTX
msdn
data-platform-development-forums xml-systemxml-msxml-and-xmllite
Hi,After installing update KB936021 (http://support.microsoft.com/kb/936021) parsing fails on the xsl files, and it worked great before. I have come to the conclusion that it has something to do with the resolveExternals property is set to false after updating to the latest version, and it has been set to true before.But I have no idea where to change this.. Btw, it is written in J++ so pretty old stuff…Here is the output in the web browser:Code SnippetCould not parse XML or XSL file java.text
msdn
data-platform-development-forums xml-systemxml-msxml-and-xmllite
I am using VS2008 and C in order to create HTML from XML and XSLT.Some files can be transformed successfully, while others do fail, though they work fine with IE9.When calling transformNode I see half a dozen exceptions in the output window and the function fails:First-chance exception at 0x7577b9bc in HMI_Office.exe: 0xE0000001: 0xe0000001.First-chance exception at 0x7577b9bc in HMI_Office.exe: 0xE0000001: 0xe0000001.First-chance exception at 0x7577b9bc in HMI_Office.exe: 0xE0000001: 0xe0000001
msdn
data-platform-development-forums xml-systemxml-msxml-and-xmllite
Hi,I downloaded XML Notebook 2007 (xmlnotepad.msi) and XML Core services 6.0 (msxml6.msi) from microsoft but they fail to open and install when either I double-click (saved file) or select run from the pop-up. I currently exceed the min install requirements (from MS webpage descrip) and currently have the xml sdk 6.0, msxml 4.0 SP2 (KB925672, KB927978), msxml 6.0 parser (KB927977) installed without a problem. Any ideas or archive location? The exact error is: “The installation package cou
msdn
data-platform-development-forums xml-systemxml-msxml-and-xmllite
HiIs SummaryI have an XSLT file that is used to transform XML. The XML contains an order with multiple order lines. As part of the transformation I want to show the order total and I do this by summing the “price” for every line item.This works fine for the “en-GB” locale, but I’m now attempting to globalise/localise this transformation and the sum() is now failing…In DetailThe XML to transform will be generated according to a specific locale.So, for t
msdn
data-platform-development-forums xml-systemxml-msxml-and-xmllite
Hello Folks:Env: WIN2003 Server, WSH 5.7, JScriptIssue: xmlhttp.send() throws error “msxml6.dll: The download of the specified resource has failed.” when POSTing to a SOAP Web service.[code]var objHttp = new ActiveXObject(“Msxml2.XMLHTTP.6.0”); doBuildAXLRequest();doBuildHTTPHeader();WScript.Echo(“Transmitting AXL Request to CUCM [” + strCUCM6Server + “] for UID[” + strUID + “]”);WScript.Echo(“URL=[” + strAXLServer + “]”);try
msdn
data-platform-development-forums xml-systemxml-msxml-and-xmllite
I am writing the following code in my ATL COM project to read the xml file. Please tell me why i am getting the message xml document failed to load. Please tell me whats wrong in the code.I want to read my xml file.<?xml version=”1.0″ encoding=”utf-8″?><mytables><table name=”abc”><parameter id=”1″><name>a</name></parameter><parameter id=”2″><name>b</name></parameter><parameter i
msdn
data-platform-development-forums xml-systemxml-msxml-and-xmllite
‘ First create Xml document (Visual Studio .NET 2003 VB)Dim oXmlDocument As New System.Xml.XmlDocumentoXmlDocument.LoadXml(“<Trees><Oak TreeType=””deciduous””></Oak></Trees>”)oXmlDocument.Save(“Trees.xml”)’ .NET save xml document with spaces<Trees> <Oak TreeType=””deciduous””> </Oak></Trees>’ Because there is spaces between <Oak …> and </Oak> validation against an xsd schema will now fail. Complains about white space.’ However, if
msdn
data-platform-development-forums xml-systemxml-msxml-and-xmllite
I generate XmlReaderSettings with the schema to validate my xml document then I “return XmlReader.Create(firstXmlReader, xmlReaderSettings);” When I try load the xml-file “XElement.Load(xmlReader);” the validation does not fail even so I manipulated the xml file so the validation should fail.The xml file I am talking about has prefixes and the root-element looks like this:<iw:rootelement xsi:schemaLocation=”http://www.blablub.de blablub_123.xsd” xmlns:iw=&qu
msdn
data-platform-development-forums xml-systemxml-msxml-and-xmllite
How to cause MS XML Parser to fail validation, if it does not find external XML schema specified in the XML document?Right now it just ignores that a returns that validation caused successfully.I use MS Visual C++, MFC however it’s a COM Object, so it’s the same is in .NET.Thanks
Web site is in building