Anybody know how to start trying to figure this error out? This is the only error I get when debugging the app. I get no errors during the compile phase. This is an ASP.NET 3.5 App. Breaking on my local machine and a server.
Line 149: public new ASP.masterpage_master Master { Line 150: get { Line 151: return ((ASP.masterpage_master)(base.Master)); Line 152: } Line 153: } Source File: c:WINDOWSMicrosoft.NETFrameworkv2.0.50727Temporary ASP.NET Files oote04eaf87eb3a5588App_Web_tmdefault.aspx.cdcab7d2.ytin7a8n.0.cs Line: 151
On the Server I get this error:
Parser Error, Description: An error occurred during the parsing of a resource required to service this request. review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'Default'.
Source Error:
Line 1: <%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" Debug="true"%> Line 2: <%@ MasterType virtualPath="~/MasterPage.master"%> Line 3:
I've got a subweb as application. It's called ADMIN. It works fine when running locally but when deploying in the development web server, i got the error: Unable to cast object of type 'System.Web.HttpApplication' to type 'Microsoft.Practices.CompositeWeb.WebClientApplication'
I've got a App_global.asax.dll and App_global.asax.complied on the subweb folder Admin.
Basically, what I did is that: I have a table in SQL database and some of data fields allow null. I built Objectdatasource through dataset. When I built update page using dataset. It generate the following error before showing the update page correctly. It seems I have issue to retrieve the null value from the database through using objectdatasource through dataset. Any suggestions?An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code
Above is my code. The error I'm get is, Unable to cast object of type 'System.DateTime' to type 'System.String'.
The column "To" and column "Subject" are strings and column "Receive" is DateTime. I can't made any changes in the database, so I need to write some code to handle casting a string to datetime or if statement as a work around.
I want to do paging the API Membership without using the datacontrols, but I get this error "Unable to cast object of type '<TakeIterator>d__3a`1[System.Char]' to type 'System.Collections.IList'." when I do this,
I am trying to write a table output from SQL database to a gridview/ Data List through an Object Data Source. I am a new starter and your help will be useful.
public List<Staff> GetStaff() cmd.CommandType = SqlConnection con = new SqlConnection(connectionstring);SqlCommand cmd = new [code]...
Protected Sub FormView1_ItemCreated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.FormViewCommandEventArgs) Handles FormView1.ItemCreated Causes Unable to cast object of type 'System.EventArgs' to type 'System.Web.UI.WebControls.FormViewCommandEventArgs'.
The program (asp.net/vb) works fine with FormView1_ItemCommand and FormView1_ItemInserted events but strangely objects to FormView1_ItemCreated. Is it only a VC# event?
[Code].... System.InvalidCastException was unhandled by user code Message=Unable to cast object of type 'System.Guid' to type 'System.String'. Source=System.Data.Linq System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execut
I need some help on the row updating for a gridview that i bind manually to a list, not using objectdatasource or sqldatasourcehere is my rowupdating. What i want to do for now is just get the values from the textboxes and I will store them to sting variables then I will call my update function and pass those as parameters. How do I get the data from the textboxes that the user just edited. I have the following but I am getting an error: "unable to cast object of type System.UI.LiteralControl to type System.UI.TextBox
I have implemented rights based security as I describe here: http://forums.asp.net/p/1380280/2916291.aspxThis has been working well for awhile now, but I am moving the site to IIS 7 and encountering problems. I am able to reach the login screen for my app - but upon login get this error: "Unable to cast object of type 'System.Web.Security.RolePrincipal' to type 'RightsLib.RightPrincipal'."As described in the linked post, I have a "RightsLib.dll" that contains the relevant classes like "RightsHttpModule.cs", "RightPrincipal.cs" etc...My app no longer seems to be able to work with RightsLib.dll. RightsLib.dll resides in the bin directory of my app, and I have a reference to it in my project.me what I'm doing wrong, or what has changed to affect this in IIS 7?The only relevant entry in Web.config I'm aware of.
I get this error when trying to export selected rows in gridview to pdf format
"Unable to cast object of type 'iTextSharp.text.html.simpleparser.CellWrapper' to type 'iTextSharp.text.Paragraph'."
This my code below:
using (StringWriter sw = new StringWriter()) { using (HtmlTextWriter hw = new HtmlTextWriter(sw)) { gdfacture.Columns[0].Visible = false; foreach (GridViewRow row in gdfacture.Rows) {
I have a web site that is using windows authentication. 'Enable anonymous access' is unchecked. It works when I call it through Visual Studio but when I put the site on the server I get the following error:
Unable to cast object of type 'System.Security.Principal.GenericPrincipal' to type 'System.Web.Security.RolePrincipal'.
I am trying to pass a collection of Dropdown controls as a parameter to a method which takes a collection of type Control as input. While executing I get the following error:
"Unable to cast object of type 'd__a31[System.Web.UI.WebControls.DropDownList]' to type 'System.Collections.Generic.IEnumerable1[System.Web.UI.Control]'."
I'm building a website in vs2010, i generate usercontrols (aspx and ascx pages), if i run the website i get the error : unable to cast object of type 'ASP.ProjectName_master' to type 'ProjectName.master'
I have a folder 'App_Code' under my startproject, that's not a default asp folder any more i think since vs2005, is that maybe the problem?
Under the App_Code folder i have the master.cs file, in this file i get the error.
I wanted to delete the record from data but I receive this error "Unable to cast object of type 'System.Data.Linq.DataQuery`1[training_eval.Course]' to type 'training_eval.Course'.
Dim eval_sure = From ev In db.Evaluates Where ev.course_id = indexcourse Select ev.course_id Dim del_course = From c In db.Courses Where c.Course_id = indexcourse db.Courses.DeleteOnSubmit(del_course) db.SubmitChanges()
This error is occuring randomly, and I can't seem to pinpoint what is causing it. For the most part, the code works fine. I'm confused why it works sometimes, but then suddently craps out on me, lol.It happens in the code when I call upon the asp.net membership provider. It only seems to happen when i use Membership.GetUser() to grab the logged in user's information.
I have installed the final version of Crystal Reports for Visual Studio 2010. I created a new ASP.Net project, saved it, closed it, and then came back to it later. I was prompted to convert the project because of an out of date version of Crystal Reports. But I just created the project...how can the version already be out of date? Also, once the conversion is complete the CrystalReportViewers error stating "Unable to cast object of type 'CrystalDecisions.Web.CrystalReportViewer' to type 'CrystalDecisions.Web.CrystalReportViewerBase'. I am using .NET Framework 3.5 (I cannot use 4.0 for other reasons). Is this the cause?
The ChecBox will be selected according to the user need: 1, 2, 3 or plus... When the page is fired, I wanted to get in the code behind the box which are checked so I can build a query consequently. So in the code behin, i wrote this:
Dim MyCheckBox As CheckBox Even if I try Dim MyCheckBox As New CheckBox I was getting the same error below. For Each MyCheckBox In Form.Controls For j As Integer = 1 To 12 If TypeOf MyCheckBox Is CheckBox Then MyCheckBox.ID = MonthName(j) If CType(MyCheckBox, CheckBox).Checked = True Then TargetedFieldName = MyCheckBox.ID 'Build a query against tables MyCheckBoxCollection += TargetedFieldName & ", " End If End If Next Next
I'm getting right after For Each statement this error: Unable to cast object of type 'System.Web.UI.LiteralControl' to type 'System.Web.UI.WebControls.CheckBox'.