I have an update panel with a number of [asp:AsyncPostBackTrigger...] controls, and everything was working fine. But now, something keeps inserting duplicate AsyncTriggers, and instead of simply being [asp:AsyncPostBackTrigger...] controls they're [System.Web.UI.AsyncPostBackTrigger...] controls, and I get parser errors as a result. So I delete the duplicate triggers, and they get re-inserted within a few minutes, seemingly randomly.
I'm trying (SQL Server Compact) to add primary key constraint on existing table that has some rows in it. While adding primary key I'm getting the error:
"A duplicate key cannot be inserted into a unique index"
After adding personalization and authentication to my site, I was getting pitched out of my application( which is on a hosted server), and sent back to the log in screen . I disabled authentication to see if I could figure out what was going on. I found that
I was getting a system error:
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
This error has been reported elsewhere [URL] so I made the following change to my web.config
This seems to have worked to a point, because with authentication DISABLED, I no longer get the error. But when I RE_ENABLE authentication, I get pitched out randomly back to the login screen. Time out is not an issue. It only happens when I move very quickly through screens that are doing a lot of postbacks.
This is the authentication stuff from my web.config
I have a table in orcale database where I am inserting records. I am able to insert a record in a table but it is not being saved permenantly.When inserting there is no error. what could be causing this?
I am using the URL Rewriter (Intelligencia.UrlRewriter). I have a page with the name sitename/user/search.aspx and the rewrite is sitename/test/search Now the problem is... When I am on sitename/test/search and I click the search button, I get an error "The resource cannot be found." because when the page posts back to itself, it goes to sitename/test/searchsearch.aspx basically putting the original name in the URL which messes everything up. What should I do? Some pages do it and other pages do not do this problem with me.
I'm trying to add a row grouping row to my data-bound gridview. It works fine on the first response, but at the postback i got the "Failed to load viewstate" error.There is the code for the GridView's RowDataBound event:
Private Sub AddGroupingRow(ByRef eRow As GridViewRow, ByVal Css As String, ByVal ColSpan As Integer, ByVal Txt As String) Dim cell As New TableCell() cell.ColumnSpan = ColSpan cell.CssClass = "Spacing FieldCell" cell.Text = Txt Dim row As New GridViewRow(-1, -1, DataControlRowType.DataRow, DataControlRowState.Normal) row.CssClass = Css row.Cells.Add(cell) [code]...
Working through Steven Sanderson's excellent Pro ASP.Net MVC Framework book.I am trying to reference the TempData collection to display a message after an item has been successfully updated and so have placed a reference to this on my Master Page.[Code]....
This is giving me the following compile time errors:
Error 1 The name 'TempData' does not exist in the current context <programme location>
Error 2 The name 'TempData' does not exist in the current context <programme location>
If I reference TempData on a content page it compiles (and works) fine.
am trying to fix an issue. I have an ASP.NET Ajax's TabContainer on the page. And each tab there is a gridview control that gets binded onload. However for some reason the browser gets closed automatically after the page renders. If I remove the TabContainer then it works fine. I think the binding code will no way effect the browser to close bacause no where in my code I am registering any Script block.Also one notable thing is this happens only in IE 8. It works fine in firefox and other browsers.I don't know if anyone encountered a similar issue before.
I have website in the internet with many data in it. user search in data and filter it.
user save that filtering criteria. i want send email notification automatically to that user when new data inserted in site that match with saved filtering criteria.
i use asp.net and sql server 2008. i dont have dedicated server.
I had created Data Entry webform. Data is stored in Database. I have created 'Date' coloumn in database table with data type datetime. I want to isnert todays date automatically when data is inserted through form in DataBase.My current query to store data in database is:
I'm only pretty new to .net MVC. I have a solution which has 2 projects one is asp .net 2.0 and the other is asp .net MVC. I created the MVC project and it was working fine. I then imported the project into the solution in it's own folder and now I'm getting an error when I try to run it. What am I missing? Parser Error Message: Could not load type 'System.Web.Mvc.ViewMasterPage'.
I have created an application which runs fine in VS2010.Now i am trying to host that application using inetmgr.When i try to browse the page from inetmgr content view then i get the "Parser Error Message: Could not load file or assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified".If i browse the page from VS i am able to do it.I am not able to host the app. may be the reason is the above stated error.
The Ajax control toolkit tab panel automatically inserts a space by all four corners of the body. For example, go to http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/Tabs/Tabs.aspx and look at the TabPanel on the page. The is a space before "Signature:" and "Bio:" labels. How can I set the space-width to 0px; in the tabPanel body?
I am trying to create an MVC2 web application that will run both on my local development machine (on localhost), and on our central webserver.
Development machine:
Windows 7 Professional, 64bitVisual Studio 2010 (beta)ASP.NET 4.0IIS 7.5
Webserver:
Windows Server 2003 SP2ASP.NET 3.5 SP1 (determined by checking the folders under %SystemRoot%Microsoft.NETFramework)IIS 6.0
Everything works fine when debugging from VS, and I've finally gotten so far that it also works copied to the webserver. However, when I try to copy it to my own local webserver, I get the following error message:
Error Summary
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
On attempting to deploy a .net 3.5 website on the default app pool in IIS7 having the framework section set to 4.0, I get the following error.There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined.Commenting off the offending lines didnt help either.
I have a Web App (VS 2010 Beta 2, using VB) and it works flawlessly on the development system. When I publish it, everything works fine unless I use an update panel. If I use the update panel, and try to use something such as a dragpanel, I get the following error.
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C; .NET4.0E) Timestamp: Thu, 4 Mar 2010 14:54:25 UTC
Message: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 404
Currently, I'm trying to do automatically sending mail system to my web-site.
This is how it shall work;
I keep , e-mail - sending time , pair at database , such as
example@hotmail.com , 10.30 PM
example2@yahoo.com , 06.00 AM
What i want is , sending a pdf attachment to these mails everyday when time is 10.30 PM and 06.00 AM . I've a function which creates pdf attachment. I've also a function which sends e-mail.
How can i always check if it's time for sending a mail or not ?
have update panel that content check box, textbox, 3 DropDownList with CascadingDropDown extender. When I checked the checked box it should do a AsyncPostBackTrigger and it is working ok but the problem that if I select any thing from DropDownLists then check the box it would clear the DropDownLists after doing AsyncPostBackTrigger for the the check box.
any advice how to separate these controls inside update panel for doing AsyncPostBackTrigger??
I have deployed my website to a shared hosting provider and since deployment, it shows the error "XML Parser Error:no element found" from time to time. I have checked my error log and I find issues such as "Object reference not set to an instance of the object" but the weird thing is if I visit the SAME page after a while, it loads!
I have checked with my hosting provider and they told me the below is what they can see on their side:
Exception information: Exception type: HttpException Exception message: Could not load type 'Test2.GlobalAsax'.
I have checked my global.asax and the interits are all correct. I have tried:
a) Deleting the webapplication dlls and rebuilding - didn't work
b) Deleting the global.asax and adding a new one and then rebuild. - didn't work
c) Changing the class name of global.asax.vb and updating at inherits at global.asax, and rebuild - didn't work
d) Change the Asp.Net version to an older version and change back to original version - didn't work
e) Debugged my application countless times locally (for the same page) but while connecting to the DB on my hosting provider - no issues found
My webhosting provider is saying there is an error in my code, but if there is a bug, shouldn't it always show the same error?
I also noticed that when the XML parser error is shown, if I were to go back to say Google.com and then to my website's main page, and then to the Page with error, the page loads!!
I am seriously running out of ideas what could have caused this issue. I have also conducted a ping test to my website and I am getting some time outs, will that cause my page to not load from time to time?
How to save webpage as pdf... Am using asp.net 4.0 and oracle 10g. and code behind language as vb.net.I have one button. that converts the web page to pdf.It shows Could not find file 'C:....' in htmlparser.Parse(sr) error...
Response.ContentType = "application/pdf" Response.AddHeader("content-disposition", "attachment;filename=psno.pdf") Response.Cache.SetCacheability(HttpCacheability.NoCache) Dim sw As New StringWriter()
I have a C# web forms ASP.NET 4.0 web application that uses Routing for URLs for some reason custom errors defined in the system.web section of my web.config is entirely ignored and it will fall back the IIS errors.
This gets entirely ignored
[code]....
This would be a minor inconvenience except that by the fact it falls back to IIS native instead of my application it completely circumvents Elmah logging my 404 exceptions correctly.