Showing posts with label copied. Show all posts
Showing posts with label copied. Show all posts

Saturday, March 24, 2012

Strange error in asp.net 1.1

I was working on a project in asp.net 1.1. I formatted my system & to save the project copied it to another drive in form of folder(which is stored in wwwroot directory). When i reinstalled windows & copied my project to wwwroot & tried running it in visual studio then following error came:

Web server is not configurd to debug the project. Please configure the web server.

Moreover when i use ' view in browser ' option then also it reports an error in web.config's authentication part.

What could be the possible reason and solution for this problem?

Make sure you have created the application as a valid application for the IIS ( virtual directory)

Thanks


Can u elaborate on that please. and what exactly i m supposed to do?

to create a virtual directory for your project

1- Right click My Computer/ select Manage.

2- Expand services and applications, expand Internet Information Services, Expand Website then Default Website.

3- right click your project folder, select properties, then click on "Create" beside the Application name

HC

Strange Errors

Recently, I copied some files from Development to a testing server. I got the following error.
What is wrong?

Thanks,
Barb

Server Error in '/' Application.
------------------------

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'test1.LitStoreHome'.

Source Error:

Line 1: <%@dotnet.itags.org. Page Language="vb" trace="true" EnableSessionState="True" AutoEventWireup="false" Codebehind="LitStoreHome.aspx.vb" Inherits="test1.LitStoreHome" %>
Line 2: <HTML>
Line 3: <HEADyou need to copy the /bin dir with required assemblies
or add references to global assemblies in the web.config file
Have you copied the dll from the bin folder.
You guys are absolutely correct, I need to recompile the project or copy dlls.

THANKS!!!

Strange exception

Copied from microsoft.public.cmserver.general
(http://communities2.microsoft.com/c...13-756f24b06d79)
Hello,
When i try to create a new page from a new template i get the exception belo
w.
Anyone have any directions on what i should look for?
The template path is correct and the project compiles ok.
When i run the project in debug no breakpoints in my template are hit.
/Johan
Exception: System.Web.HttpException
Message: External component has thrown an exception.
Source: System.Web
at System.Web.UI.TemplateParser.GetParserCacheItemInternal(Boolean
fCreateIfNotFound)
at System.Web.UI.TemplateParser.GetParserCacheItemWithNewConfigPath()
at System.Web.UI.TemplateParser.GetParserCacheItem()
at
System.Web.UI.TemplateControlParser.CompileAndGetParserCacheItem(String
virtualPath, String inputFile, HttpContext context)
at System.Web.UI.TemplateControlParser.GetCompiledInstance(String
virtualPath, String inputFile, HttpContext context)
at System.Web.UI.PageParser.GetCompiledPageInstanceInternal(String
virtualPath, String inputFile, HttpContext context)
at System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context,
String requestType, String url, String path)
at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String
requestType, String path, String pathTranslated, Boolean useAppConfig)
at
System.Web.MapHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep
.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously)
Nested Exception
Exception: System.Web.HttpCompileException
Message: External component has thrown an exception.
Source: System.Web
at
System.Web.Compilation.BaseCompiler.ThrowIfCompilerErrors(CompilerResults
results, CodeDomProvider codeProvider, CodeCompileUnit sourceData, String
sourceFile, String sourceString)
at System.Web.Compilation.BaseCompiler.GetCompiledType()
at System.Web.UI.PageParser.CompileIntoType()
at System.Web.UI.TemplateParser.GetParserCacheItemThroughCompilation()I know this probably doesn't help much, but I see this kind of exception all
the time when using the CSK. The CSK throws these exceptions as part of its
normal operation and continues on as per normal. I have a routine which
emails me exception details from a CSK site and I receive an email for
almost every page visited by a user.
- Paul Glavich
Microsoft MVP - ASP.NET
"Johan Neidenmark" <JohanNeidenmark@.discussions.microsoft.com> wrote in
message news:A0664C49-8947-4500-A5D8-7C6CE75791DB@.microsoft.com...
> Copied from microsoft.public.cmserver.general
>
(http://communities2.microsoft.com/c...us/default.aspx
?dg=microsoft.public.cmserver.general&mid=68d413a9-0f0e-458c-b913-756f24b06d
79)
> Hello,
> When i try to create a new page from a new template i get the exception
below.
> Anyone have any directions on what i should look for?
> The template path is correct and the project compiles ok.
> When i run the project in debug no breakpoints in my template are hit.
> /Johan
> Exception: System.Web.HttpException
> Message: External component has thrown an exception.
> Source: System.Web
> at System.Web.UI.TemplateParser.GetParserCacheItemInternal(Boolean
> fCreateIfNotFound)
> at System.Web.UI.TemplateParser.GetParserCacheItemWithNewConfigPath()
> at System.Web.UI.TemplateParser.GetParserCacheItem()
> at
> System.Web.UI.TemplateControlParser.CompileAndGetParserCacheItem(String
> virtualPath, String inputFile, HttpContext context)
> at System.Web.UI.TemplateControlParser.GetCompiledInstance(String
> virtualPath, String inputFile, HttpContext context)
> at System.Web.UI.PageParser.GetCompiledPageInstanceInternal(String
> virtualPath, String inputFile, HttpContext context)
> at System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context,
> String requestType, String url, String path)
> at System.Web.HttpApplication.MapHttpHandler(HttpContext context,
String
> requestType, String path, String pathTranslated, Boolean useAppConfig)
> at
>
System.Web.MapHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep
.Execute()
> at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
> completedSynchronously)
> Nested Exception
> Exception: System.Web.HttpCompileException
> Message: External component has thrown an exception.
> Source: System.Web
> at
> System.Web.Compilation.BaseCompiler.ThrowIfCompilerErrors(CompilerResults
> results, CodeDomProvider codeProvider, CodeCompileUnit sourceData, String
> sourceFile, String sourceString)
> at System.Web.Compilation.BaseCompiler.GetCompiledType()
> at System.Web.UI.PageParser.CompileIntoType()
> at System.Web.UI.TemplateParser.GetParserCacheItemThroughCompilation()
>

Strange exception

Copied from microsoft.public.cmserver.general
(http://communities2.microsoft.com/c...13-756f24b06d79)

Hello,

When i try to create a new page from a new template i get the exception below.
Anyone have any directions on what i should look for?
The template path is correct and the project compiles ok.
When i run the project in debug no breakpoints in my template are hit.

/Johan

Exception: System.Web.HttpException
Message: External component has thrown an exception.
Source: System.Web
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.GetCompiledPageInstanceIn ternal(String
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.System.Web.Http Application+IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously)

Nested Exception

Exception: System.Web.HttpCompileException
Message: External component has thrown an exception.
Source: System.Web
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()I know this probably doesn't help much, but I see this kind of exception all
the time when using the CSK. The CSK throws these exceptions as part of its
normal operation and continues on as per normal. I have a routine which
emails me exception details from a CSK site and I receive an email for
almost every page visited by a user.

--
- Paul Glavich
Microsoft MVP - ASP.NET

"Johan Neidenmark" <JohanNeidenmark@.discussions.microsoft.com> wrote in
message news:A0664C49-8947-4500-A5D8-7C6CE75791DB@.microsoft.com...
> Copied from microsoft.public.cmserver.general
(http://communities2.microsoft.com/c...us/default.aspx
?dg=microsoft.public.cmserver.general&mid=68d413a9-0f0e-458c-b913-756f24b06d
79)
> Hello,
> When i try to create a new page from a new template i get the exception
below.
> Anyone have any directions on what i should look for?
> The template path is correct and the project compiles ok.
> When i run the project in debug no breakpoints in my template are hit.
> /Johan
> Exception: System.Web.HttpException
> Message: External component has thrown an exception.
> Source: System.Web
> 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.GetCompiledPageInstanceIn ternal(String
> 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.System.Web.Http Application+IExecutionStep
..Execute()
> at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
> completedSynchronously)
> Nested Exception
> Exception: System.Web.HttpCompileException
> Message: External component has thrown an exception.
> Source: System.Web
> 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()