467,858 Members | 1,607 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,858 developers. It's quick & easy.

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
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&
The code is quite simple...


<%@ 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" >
<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"
<LINK href="../../Styles/Navigator.css" rel="stylesheet">
<LINK href="../../Styles/ThePhile.css" rel="stylesheet">
<body MS_POSITIONING="GridLayout">
<form id="OptionsAdmin" method="post" runat="server">
<asp:LinkButton ID="FIleManager" Runat="server"> Browse File
<asp:button ID="ManagePermissions" Runat="server" Text="Manage

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)

private void FileManager_Click(object sender, System.EventArgs e)

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

private void InitializeComponent()
this.Load += new System.EventHandler(this.Page_Load);

(If i don't put the web controls in the form the page is load correctly)
Could Anyone help me?
Nov 15 '05 #1
  • viewed: 6453

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by test.file | last post: by
3 posts views Thread by STech | last post: by
4 posts views Thread by =?Utf-8?B?U0g=?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.