Unexpected Token Error When Using XmlDataSource Control?
Sep 23, 2010
I have XML like this:
<?xml version="1.0" encoding="UTF-8"?>
<viewentries timestamp="20100923T130205,90Z" toplevelentries="8903">
<viewentry position="1" unid="A4958CC88435D1A8422577A7004422E8" noteid="4DF15A" siblings="8903">
<entrydata columnnumber="0" name="$59">
<text>63722</text>
</entrydata>
<entrydata columnnumber="1" name="$70">
[Code].....
However, if I save the same xml to a file to my computer, it works without a glitch.
View 2 Replies
Similar Messages:
Oct 22, 2010
I'm receiving the following error occasionally when calling web service using a .NET 4.0 web application."The underlying connection was closed: An unexpected error occurred on a send."All of the articles I've read regarding this issue are for the Framework 1.1.Is there any solution to this issue for using .NET framework 4.0?
View 1 Replies
Aug 23, 2010
I am consuming a third party web service wsdl using my .net aps.net page. And I am getting following error message. Cannt get to resolve it. Its working on my machine but not in my development machine. I have installed the certificate also in certificates on that machine.
Error --> The underlying connection was closed: An unexpected error occurred on a send.
View 3 Replies
Aug 4, 2010
In MOSS 2007, we could update the tag's callstack attribute to true and then customerrors mode to "Off" to see the actual error behind the 'An unexpected error has occurred' message. Does it apply on SharePoint 2010 as well ? I tried it but I get the following error:
Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed.
Details: To enable the details of this specific error message to be viewable on the local server machine, create a tag within a "web.config" configuration file located in the root direc...
View 4 Replies
Feb 11, 2011
my code is as follows
DataSet ds = new DataSet();
string connStr = "Data Source=PARITAS00024;Initial Catalog=MenuDb;Persist Security Info=True;User ID=sa;Password=paritas123";
using (SqlConnection conn = new SqlConnection(connStr))
{
string sql = "Select MenuId, MenuTitle, MenuDesc, MenuURL, ParentMenuId from tblMenus where Status=1 and RecordStatus=1 order by ParentMenuId, DisplayOrder";
SqlDataAdapter da = new SqlDataAdapter(sql, conn);
da.Fill(ds);
da.Dispose();
}
ds.DataSetName = "Menus";
ds.Tables[0].TableName = "Menu";
DataRelation relation = new DataRelation("ParentChild", ds.Tables["Menu"].Columns["MenuId"], ds.Tables["Menu"].Columns["ParentMenuId"], true);
relation.Nested = true;
ds.Relations.Add(relation);
System.Web.UI.WebControls.XmlDataSource xds = new System.Web.UI.WebControls.XmlDataSource();
xds.TransformFile = "~/TransformXSLT.xsl";
xds.XPath = "MenuItems/MenuItem";
xds.Data = ds.GetXml();
xds.ID = "xmlDataSourceMenu";
Menu1.DataSource = xds;
Menu1.DataBind();
is this correct way of using the xmldatasource ?
View 1 Replies
Mar 30, 2011
My ASP.NET application will have to handle HTTP GET requests that will have the following URL format: [URL] currently the requirement is to validate that there're no parameters in the query string except id and indicate an error like "unknown parameter P passed". Is such requirement a good idea? Will it interfere with some obviously valid cases of using the application I haven't thought of?
View 4 Replies
Feb 19, 2010
I am transfering data from DB server to second DB server using one test page.
But i am getting following unexpected message ....
The CLR has been unable to transition from COM context 0x205480 to COM context 0x2055f0 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages. This situation generally has a negative performance impact and may even lead to the application becoming non responsive or memory usage accumulating continually over time. To avoid this problem, all single threaded apartment (STA) threads should use pumping wait primitives (such as CoWaitForMultipleHandles) and routinely pump messages during long running operations.
View 2 Replies
Mar 14, 2011
I try to create user without passwordQuestion and answer.
But I always get an error
MembershipCreateStatus.InvalidQuestion
string question = string.Empty;
string answer = string.Empty;
MembershipUser membershipUser = Membership.CreateUser(user.Login, password, user.ContactInfo.EMail, question, answer, false, out createResult);
web.config
requiresQuestionAndAnswer="false"
View 1 Replies
Dec 2, 2010
Please give me solution of this problem when i start defaut website then this error comes .I searched on net and found that make usre 80 port not in use.in cmd i gave netstat -b command and found no port 80 being used. So what to do with this.
View 8 Replies
Nov 25, 2010
I built an asp.net application using web developer express 2008 and sql express2008. The live version hosted on Godaddy, for the most part is working well. However, occasionally the users are reporting an error when the user volume is high.
Here is part of my web.config code:
<customErrors defaultRedirect="/Error/error.htm" mode="On">
<error statusCode="400" redirect="/Error/BadRequest.htm"/>
<error statusCode="404" redirect="/Error/NotFound.htm"/>
<error statusCode="408" redirect="/Error/TimeOut.htm"/>
</customErrors>
I have seen the other error pages work correctly and the error I am referring to above is the default error.It is possible that up to 10 users opening the same database table at the same time might be the problem? Would this be a potential cause of my unknown error? And if so what can I do about it?
View 2 Replies
Mar 25, 2010
when I make data source configuration wizerd
Data -> Add new data source -> ... -> Save the connection string to the Application configuration file (yes, save the connection) result in "An unexpected error has occured." Error Message; Could not load type
'Microsoft.VisualStudio.DataDesign.SyncDesigner.SyncFacade.SyncManager'from assembly 'Microsoft.VisualStudio.DataDesign.SyncDesigner.DslPackage,Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
how I can solve this problem ?
View 3 Replies
Feb 3, 2011
Some of our users get following error while browsing application :
Error loading postback data: System.Xml.XmlException: Unexpected end of file has occurred. The following elements are not closed. Anyone knows why this error get fires?
View 1 Replies
Jan 13, 2011
I have application developed in vs 2005, when i try to run it throws below error.
"Unable to start debugging on the web server. The underlying connection was closed: An unexpected error occurred on a send."
View 2 Replies
Feb 18, 2011
We are creating a new user control using a boiler plate template for our application. We noticed that anytime a textbox on the new user control has a focus and the enter key is pressed, the form executes a postback. This happens even if the AutoPostback on the text box is set to true. No other user controls in our app behave this way. What could be some of the places for me too look?
View 3 Replies
Oct 26, 2010
I am developing an ecommerce site that is utilizing PayPal's sandbox environment. I have a login control in the header section of a master page. Everything works as expected until I am redirected back to my site from PayPal. The login control doesn't work as expected. When I click on logout it doesn't change to login or it does change but the user still appears to authenticated.
View 2 Replies
Apr 16, 2010
In the MSDN is writen about TreeNode that:
"By default, a node is in selection mode."
"To put a node into selection mode, set the node's NavigateUrl property to an empty string."
"When a node is in selection mode, use the SelectAction property to specify which event or events are raised when a node is selected."
"Setting TreeNodeSelectAction value TreeNodeSelectAction.Select Raises the SelectedNodeChanged event when a node is selected."
Here is the problem and possibly a bug in the control:
When I set the TreeNode object PopulateOnDemand value to true and call the Collapse() function on that node.Then the TreeNodeExpanded event is raised in addition to the SelectedNodeChanged event.This is in complate contradiction to what is writen in the MSDN.According to the MSDN this sould happen only if TreeNodeSelectAction Property is set to TreeNodeSelectAction.SelectExpand value.
Here is the code:
<asp:TreeView ID="TreeView1" runat="server" AutoGenerateDataBindings="False"
onselectednodechanged="TreeView1_SelectedNodeChanged"
ontreenodepopulate="TreeView1_TreeNodePopulate"> [code]...
View 1 Replies
Jan 6, 2011
I am trying to use Rounded Corner buttons in my ASP.NET website using AjaxControlToolkit's RoundedCornerExtender. When I use this on a Buton control, I get an error saying "htmlfile: Unexpected call to method or property access" to which I can Break/continue.
When I run the sites, it gives me an error "Unexpected call to mathod or property access".Here's the screenshot:
http://img29.imageshack.us/img29/7051/roundedcornersp.png
View 1 Replies
Jul 31, 2010
i am using paging technique from this tutorial [URL] and it is working fine, i used asp.net 2.0 with sql server 2005 then i upgraded to visual studio 2008, and converted the asp.net 2.0 application to 3.0 and now using sql server 2008 all the existingpages and .xsd files are working, fine, i can see data in .xsd files when i preview it but i cannot add new stored procedures it gives me an error "An unexpected error has occured" Error message:unexpected error i dont know what it is, already configured dataset (.xsd) works fine, it is just that iam unable to add stored procedures to new datasets my connection string
<add name="jobcon" connectionString="Server=HOME-46CTBUROCXSQLEXPRESS; Database=jobdhundo; User ID=; Password=;Timeout=200; Trusted_Connection=True" providerName="System.Data.SqlClient"/>
it is fine with the entire application there is no coding involved
View 14 Replies
May 25, 2010
I 'm using visual studio 2007 and I have come up with an error in my web config that I have never come up with before. I have set customError mode "off" in my web config and I'm getting an error code of The 'mode' attribute is invalid ' The value 'off' is invalid according to it's data type 'NM Token' - the enumeration constraint failed what an 'NM token' is and what I can do to fix this problem? My page works perfectly when I'm working on it locally, but when I move it to the web server I get an error and it tells me to set the custom mode errors in the web config to 'off' This is the error I'm getting:
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
View 2 Replies
Jul 7, 2010
I have this DropDownList bound to a XmlDataSource, but the XPath must depend on another input (another DropDownList). I modify the XPath and rebind inside the parent DDL's SelectedIndexChanged, but the page does not refresh. What should I do to display the update?
protected void ProductDropDownList_SelectedIndexChanged(object sender, EventArgs e)
{
CompMapping.XPath = "//couple[@product='" + ProductDropDownList.SelectedValue + "']";
CompMapping.DataBind();
ComponentDropDown.DataBind();
}
ComponentDropDown is set to AutoPostBack=True, but that's not enough. Could it be related to the fact both DropDownLists are in a UserControl?
View 2 Replies
Apr 4, 2011
I've created an asp:ListView and attached it to an asp:XmlDataSource. I would like to support the delete command for my list, so I've added the following button:
<asp:Button runat="server" CommandName="Delete"
Text="Del" CausesValidation="false" />
It throws an 'Specified method is not supported'.how to implement this delete?
View 1 Replies
Apr 27, 2010
I am Trying to build a Treeview Control using an XMLDataSource which consumes a XML file (which is set dynamically) . The Problem is that the XML file Size is huge, arround .5 MB so the page load is hit because of this . Now i know that there is a PopulateOndemand Property of the treeview and there is also a populateondemand property of Treenodebinding which is used in XMLDataSource .
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.treenodebinding.populateondemand.aspx
View 3 Replies
Jun 23, 2010
Which one is better for me to store urls of my products images while i was trying to bind images with gridview. provide me some code snippet to bind images to gridview with XMLDataSource.
View 3 Replies
Jan 18, 2011
I'm creating page to put together a list of cinema trailers on an asp.net web page inside of a repeater.
The source of the data is an online XML feed.
To do this I'm binding the repeater as follows...
string XML_FEED_URL = "http://some-cinema-feed.com/comingsoon/";
XmlDataSource data_source = new XmlDataSource();
data_source.DataFile = XML_FEED_URL;
data_source.XPath = "/movies/movie[position() > 0 and position() < 3]";
this.moviePreciewsRepeater.DataSource = data_source;
this.moviePreciewsRepeater.DataBind();
The issue is that the length of the feed changes regularly and rather than selecting a range of movies with the XPATH (i.e. 1-3 in the XML) I need to select 3 totally random movies from the XML and bind this back to the repeater.
View 1 Replies
Feb 25, 2011
I'm using XmlDataSource as the datasource for a dropdownlist. Now I want to set the SelectedValue of the dropdown when the page initially loads. I tried the OnDataBound event of the dropdown in which I could see the total items but setting the SelectedValue didn't work. In OnDataBinding event, I couldn't even see the total items probably because the list isn't bound yet.
View 1 Replies