Monday, March 26, 2012

Strange error

Hello I have an strange error I am trying to access default2.aspx page, this page doesnt have code, only some webparts, but I think the problem is the web.config. I will place the web.config after the error.

Server Error in '/GescomDllo' Application.

Compilation Error

Description:An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message:CS0006: Metadata file 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\gescomdllo\27bee1ac\cdebe31b\App_global.asax.29cg_tf4.dll' could not be found
Source Error:
[No relevant source lines]

Source File: Line: 0


c:\windows\system32\inetsrv> "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc.exe" /t:library /utf8output /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\gescomdllo\27bee1ac\cdebe31b\App_global.asax.29cg_tf4.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\gescomdllo\27bee1ac\cdebe31b\App_Web_webusercontrol.ascx.16ec59e1.6gwl0thr.dll" /D:DEBUG /debug+ /optimize- /w:4 /nowarn:1659;1699 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\gescomdllo\27bee1ac\cdebe31b\App_Web_webusercontrol.ascx.16ec59e1.6gwl0thr.0.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\gescomdllo\27bee1ac\cdebe31b\App_Web_webusercontrol.ascx.16ec59e1.6gwl0thr.1.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\gescomdllo\27bee1ac\cdebe31b\App_Web_webusercontrol.ascx.16ec59e1.6gwl0thr.2.cs"Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.42for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.error CS0006: Metadata file 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\gescomdllo\27bee1ac\cdebe31b\App_global.asax.29cg_tf4.dll' could not be found

function OnToggleTOCLevel1(level2ID) { var elemLevel2 = document.getElementById(level2ID); if (elemLevel2.style.display == 'none') { elemLevel2.style.display = ''; } else { elemLevel2.style.display = 'none'; } }

Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42


?xmlversion="1.0"?>

<!--

Note: As an alternative to hand editing this file you can use the

web admin tool to configure settings for your application. Use

the Website->Asp.Net Configuration option in Visual Studio.

A full list of settings and comments can be found in

machine.config.comments usually located in

\Windows\Microsoft.Net\Framework\v2.x\Config

-->

<configuration>

<appSettings/>

<connectionStrings>

<addname="MySqlConnection"connectionString="Data Source=localhost;Initial Catalog=GEscomDllo;Integrated Security=SSPI;" />

</connectionStrings>

<system.web>

<!--

Set compilation debug="true" to insert debugging

symbols into the compiled page. Because this

affects performance, set this value to true only

during development.

-->

<trustlevel="Medium"/>

<compilationdebug="true"/>

<!--

The <authentication> section enables configuration

of the security authentication mode used by

ASP.NET to identify an incoming user.

-->

<siteMapdefaultProvider="SiteMapSecuritySample"enabled="true">

<providers>

<addname="QuickStartSiteMapSecuritySample"

description="Proveedor de seguridad para la jerarquia de navegacion del sitio con roles."

type="System.Web.XmlSiteMapProvider"

securityTrimmingEnabled="true"

siteMapFile="web.sitemap"/>

</providers>

</siteMap>

<httpCookieshttpOnlyCookies="true"requireSSL="false"domain=""/>

<authenticationmode="Forms">

<formsloginUrl="Login.aspx"protection="All"timeout="30"name="AppNameCookie"path="/Protected/"requireSSL="false"slidingExpiration="true"cookieless="UseCookies"enableCrossAppRedirects="false"/>

</authentication>

<authorization>

<allowusers="*"/>

</authorization>

<roleManagerenabled="true"defaultProvider="SqlRoleManager"cacheRolesInCookie="true"cookieTimeout="30"cookieRequireSSL="false"createPersistentCookie="true">

<providers>

<addname="SqlRoleManager"type="System.Web.Security.SqlRoleProvider"connectionStringName="MySqlConnection"applicationName="Gescom"/>

</providers>

</roleManager>

<membershipdefaultProvider="SqlProvider"userIsOnlineTimeWindow="15">

<providers>

<clear/>

<addname="SqlProvider"type="System.Web.Security.SqlMembershipProvider"connectionStringName="MySqlConnection"applicationName="Gescom"enablePasswordRetrieval="false"enablePasswordReset="false"requiresQuestionAndAnswer="false"requiresUniqueEmail="true"passwordStrengthRegularExpression="^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,10}$"passwordFormat="Hashed"/>

</providers>

</membership>

<!--

<customErrors mode="On" defaultRedirect="ErrDefault.aspx">

<error statusCode="401" redirect="ErrNoAutorizado.aspx"/>

<error statusCode="404" redirect="ErrPaginaNoEncontrada.aspx"/>

<error statusCode="500" redirect="ErrServidor.htm"/>

</customErrors>-->

</system.web>

<locationpath="public">

<system.web>

<authorization>

<allowusers="*"/>

</authorization>

</system.web>

</location>

<locationpath="Protected/Administradores">

<system.web>

<authorization>

<allowroles="Administradores"/>

<denyusers="?"/>

</authorization>

</system.web>

</location>

<locationpath="Protected/ConsultorParcial">

<system.web>

<authorization>

<allowroles="ConsultorParcial"/>

<denyusers="?"/>

</authorization>

</system.web>

</location>

<locationpath="Protected/ConsultorTotal">

<system.web>

<authorization>

<allowroles="ConsultorTotal"/>

<denyusers="?"/>

</authorization>

</system.web>

</location>

<locationpath="Protected/Evaluadores">

<system.web>

<authorization>

<allowroles="Evaluadores"/>

<denyusers="?"/>

</authorization>

</system.web>

</location>

<locationpath="Protected/Planeadores">

<system.web>

<authorization>

<allowroles="Planeadores"/>

<denyusers="?"/>

</authorization>

</system.web>

</location>

<locationpath="Protected/Retroalimentadores">

<system.web>

<authorization>

<allowroles="Retroalimentadores"/>

<denyusers="?"/>

</authorization>

</system.web>

</location>

<!-- other configuration settings here-->

</configuration>

Try deleting that folder:-C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\gescomdllo
More strange yet, I am administrator on my machine and I hadnt access to delete it. I closed vs 2005 and nothing, I will try rebooting.
Go into services on the machine. Stop the IIS Admin Service. Click ok to let it stop the other services. Now delete the folder and restart the services, IIS Admin, Ftp, Smtp and Web publishing. Alot to do for something that might not work but worth a try.
Thanks that worked, but why happened this to me? That should not be a normal behavior.

0 comments:

Post a Comment