473,507 Members | 2,416 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

External component has thrown an exception

I'm trying to do a simple web form with asp.net & C# but althoug the page is
correctly compilated, when i load the page there is the following error
message:
System.Web.HttpException: External component has thrown an exception --->
System.Web.HttpCompileException: Eccezione lanciata da un componente
esterno. at
System.Web.Compilation.BaseCompiler.ThrowIfCompile rErrors(CompilerResults
results, CodeDomProvider codeProvider, CodeCompileUnit sourceData, String
sourceFile, String sourceString) at
System.Web.Compilation.BaseCompiler.GetCompiledTyp e() at
System.Web.UI.PageParser.CompileIntoType() at
System.Web.UI.TemplateParser.GetParserCacheItemThr oughCompilation--- End of
inner exception stack trace --- at
System.Web.UI.TemplateParser.GetParserCacheItemInt ernal(Boolean
fCreateIfNotFound) at
System.Web.UI.TemplateParser.GetParserCacheItemWit hNewConfigPath() at
System.Web.UI.TemplateParser.GetParserCacheItem() at
System.Web.UI.TemplateControlParser.CompileAndGetP arserCacheItem(String
virtualPath, String inputFile, HttpContext context) at
System.Web.UI.TemplateControlParser.GetCompiledIns tance(String virtualPath,
String inputFile, HttpContext context) at
System.Web.UI.PageParser.GetCompiledPageInstance(S tring virtualPath, String
inputFile, HttpContext context) at
System.Web.UI.PageHandlerFactory.GetHandler(HttpCo ntext context, String
requestType, String url, String path) at
System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String
requestType, String path, String pathTranslated, Boolean useAppConfig) at
System.Web.MapHandlerExecutionStep.Execute() at
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously
The code is quite simple...

/modules/users/account/OptionsAdmin.aspx

<%@ Page language="c#" Codebehind="OptionsAdmin.aspx.cs"
AutoEventWireup="false" Inherits="Univ.WebModules.Accounts.Web.OptionsAdmi n"
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>OptionsAdmin</title>
<meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5"
name="vs_targetSchema">
<LINK href="../../Styles/Navigator.css" rel="stylesheet">
<LINK href="../../Styles/ThePhile.css" rel="stylesheet">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="OptionsAdmin" method="post" runat="server">
<asp:LinkButton ID="FIleManager" Runat="server"> Browse File
</asp:LinkButton><br>
<asp:button ID="ManagePermissions" Runat="server" Text="Manage
Permission"></asp:button>
</form>
</body>
</HTML>
/module/users/account/OptionsAdmin.aspx.cs

using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using Univ.WebModules.Accounts.Business;
namespace Univ.WebModules.Accounts.Web
{

public class OptionsAdmin : Univ.ThePhile.Web.UnivPage
{
protected System.Web.UI.WebControls.Button ManagePermissions;
protected System.Web.UI.WebControls.LinkButton FileManager;

private void Page_Load(object sender, System.EventArgs e)
{
Hello
}

private void FileManager_Click(object sender, System.EventArgs e)
{
Server.Transfer("/modules/filemanager/browsefile.aspx");
}

#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{

InitializeComponent();
base.OnInit(e);
}
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);

}
#endregion
}
}
(If i don't put the web controls in the form the page is load correctly)
Could Anyone help me?
Nov 15 '05 #1
0 7462

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2147
by: Sachy | last post by:
Hi, I have received following error in my ASP.NET application. Many of buttons on the different pages are generating this error. I am not sure what I did until this morning code was working...
0
1524
by: Manu | last post by:
whenever i set the CrystalReports ReportsDocument Objects SetDataSource() method.. I recieve this error. What might be the reason???? Please help ...
0
2765
by: test.file | last post by:
We have an application that is running under Citrix. The application files are located on a shared network drive and the app is launched via UNC. The app contains WinForms that are called from...
0
1398
by: Ryan | last post by:
Hello I AM POSTING THIS WITH THE INTENT TO HELP SOMEONE ELSE WHO MAY HAVE THIS PROBLEM.... I DONT NEED HELP ;) I was getting the following error in one of my applications which was installed...
3
4261
by: STech | last post by:
1) We did an xcopy of our latest production build to our windows 2003 prod server and started getting the exception below. Recycling the application on the webserver seemed to have fixed the...
6
37780
by: **Developer** | last post by:
What does this mean: External component has thrown an exception. My program crashes after it leaves a subroutine. What I see during debugging is when I press F11 at the End Sub statement
0
1088
by: Echo | last post by:
Hi All: Does somebody know why everytime when we update our website, if there is DLLs involved(we are running VS 2003, .net Framework 1.1, the DLLs is for project or referenced external DLLs,...
0
2644
by: JT | last post by:
This seems like it could be an asp.net bug. I am getting the following exception when I add OnSortCommand attribute to a datagrid. I have deleted the temp directories, rebooted etc and I have...
0
1799
by: Pieter | last post by:
Hi, When using clickOnce for a VB.NET 2.0 application it installs fine on every computer, except one (a new one...). Every is isstalled, Framework, Mdac, .... The error in the log file is:...
4
3230
by: =?Utf-8?B?U0g=?= | last post by:
There seems to be an issue with .NET 3.5/Visual Studio 2008 (Team System). After convincing my company to create our latest project in .NET 3.5, this is kind of reflecting bad on me. Problem:...
0
7111
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7319
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7031
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5623
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5042
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1542
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
412
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.