Hi,
i am new to asp.net and when i try to run by code i am getting the following error.
Server Error in '/' 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: The compiler failed with error code -2146232576.
Show Detailed Compiler Output:
C:\WINDOWS\system32> "c:\windows\microsoft.net\framework\v1.0.2914\vbc. exe" /t:library /utf8output /R:"c:\windows\assembly\gac\system.xml\1.0.2411.0__ b77a5c561934e089\system.xml.dll" /R:"c:\windows\assembly\gac\system.web\1.0.2411.0__ b03f5f7f11d50a3a\system.web.dll" /R:"c:\windows\assembly\gac\system\1.0.2411.0__b77a 5c561934e089\system.dll" /R:"c:\windows\assembly\gac\system.data\1.0.2411.0_ _b77a5c561934e089\system.data.dll" /R:"c:\windows\assembly\gac\system.web.services\1.0 .2411.0__b03f5f7f11d50a3a\system.web.services.dll" /R:"c:\windows\assembly\gac\system.drawing\1.0.2411 .0__b03f5f7f11d50a3a\system.drawing.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v1.0.2914\ Temporary ASP.NET Files\root\fa7064c6\2014c0f1\2mtyatik.dll" /debug- "C:\WINDOWS\Microsoft.NET\Framework\v1.0.2914\Temp orary ASP.NET Files\root\fa7064c6\2014c0f1\2mtyatik.0.vb"
Microsoft (R) Visual Basic.NET Compiler version 7.00.9254
for Microsoft (R) .NET CLR version ---
Copyright (C) Microsoft Corp 2001. All rights reserved.
Show Complete Compilation Source:
Line 1: '------------------------------------------------------------------------------
Line 2: ' <autogenerated>
Line 3: ' This code was generated by a tool.
Line 4: ' Runtime Version: 1.0.2914.16
Line 5: '
Line 6: ' Changes to this file may cause incorrect behavior and will be lost if
Line 7: ' the code is regenerated.
Line 8: ' </autogenerated>
Line 9: '------------------------------------------------------------------------------
Line 10:
Line 11: Option Strict Off
Line 12: Option Explicit On
Line 13:
Line 14: Imports Microsoft.VisualBasic
Line 15: Imports System
Line 16: Imports System.Collections
Line 17: Imports System.Collections.Specialized
Line 18: Imports System.Configuration
Line 19: Imports System.Text
Line 20: Imports System.Text.RegularExpressions
Line 21: Imports System.Web
Line 22: Imports System.Web.Caching
Line 23: Imports System.Web.Security
Line 24: Imports System.Web.SessionState
Line 25: Imports System.Web.UI
Line 26: Imports System.Web.UI.HtmlControls
Line 27: Imports System.Web.UI.WebControls
Line 28:
Line 29: Namespace ASP
Line 30:
Line 31: Public Class first1_aspx
Line 32: Inherits System.Web.UI.Page
Line 33: Implements System.Web.SessionState.IRequiresSessionState
Line 34:
Line 35: Private Shared __autoHandlers As System.Web.UI.AutomaticHandlerMethodInfos
Line 36:
Line 37: Private Shared __intialized As Boolean = false
Line 38:
Line 39: Private Shared __fileDependencies As System.Collections.ArrayList
Line 40:
Line 41: Public Sub New()
Line 42: MyBase.New
Line 43: Dim dependencies As System.Collections.ArrayList
Line 44: If (ASP.first1_aspx.__intialized = false) Then
Line 45: dependencies = New System.Collections.ArrayList
Line 46: dependencies.Add("c:\inetpub\wwwroot\first1.aspx")
Line 47: ASP.first1_aspx.__fileDependencies = dependencies
Line 48: ASP.first1_aspx.__intialized = true
Line 49: End If
Line 50: End Sub
Line 51:
Line 52: Protected Overrides Property AutoHandlers As System.Web.UI.AutomaticHandlerMethodInfos
Line 53: Get
Line 54: Return ASP.first1_aspx.__autoHandlers
Line 55: End Get
Line 56: Set
Line 57: ASP.first1_aspx.__autoHandlers = value
Line 58: End Set
Line 59: End Property
Line 60:
Line 61: Protected ReadOnly Property ApplicationInstance As System.Web.HttpApplication
Line 62: Get
Line 63: Return CType(Me.Context.ApplicationInstance,System.Web.Ht tpApplication)
Line 64: End Get
Line 65: End Property
Line 66:
Line 67: Public Overrides ReadOnly Property TemplateSourceDirectory As String
Line 68: Get
Line 69: Return "/"
Line 70: End Get
Line 71: End Property
Line 72:
Line 73: Public Overrides Sub InstantiateIn(ByVal control As System.Web.UI.Control)
Line 74: Me.__BuildControlTree(control)
Line 75: End Sub
Line 76:
Line 77: Private Sub __BuildControlTree(ByVal __ctrl As System.Web.UI.Control)
Line 78: __ctrl.SetRenderMethodDelegate(AddressOf Me.__Render__control1)
Line 79: End Sub
Line 80:
Line 81: Private Sub __Render__control1(ByVal __output As System.Web.UI.HtmlTextWriter, ByVal parameterContainer As System.Web.UI.Control)
Line 82: __output.Write("<html>"&ChrW(13)&ChrW(10)&"<body bgcolor=""yellow"">"&ChrW(13)&ChrW(10)&"<center>"& ChrW(13)&ChrW(10)&"<h2>Hello Suresh </h2>"&ChrW(13)&ChrW(10)&"<p>")
Line 83:
Line 84: #ExternalSource("c:\inetpub\wwwroot\first1.aspx",5 )
Line 85: Response.Write(now())
Line 86:
Line 87: #End ExternalSource
Line 88: __output.Write("</p>"&ChrW(13)&ChrW(10)&"</center>"&ChrW(13)&ChrW(10)&"</body>"&ChrW(13)&ChrW(10)&"</html>"&ChrW(13)&ChrW(10))
Line 89: End Sub
Line 90:
Line 91: Protected Overrides Sub FrameworkInitialize()
Line 92: Me.FileDependencies = ASP.first1_aspx.__fileDependencies
Line 93: End Sub
Line 94:
Line 95: Public Overrides Function GetTypeHashCode() As Integer
Line 96: Return 208178709
Line 97: End Function
Line 98: End Class
Line 99: End Namespace
Line 100:
--------------------------------------------------------------------------------
Version Information: Runtime Build:1.0.2914.16; ASP.NET Build:1.0.2914.16
************************************************** ***********
My code is really simple....
<% Page Language="VB" %>
<Script runat="server">
Sub Page_Load(obj as object,e as eventargs)
lblMessage.Text = "Welcome to ASp.Net"
end Sub
</Script>
<html><Body>
<asp:Label id="lblMessage" runat="server"/>
</html></Body>
When i run my asp pages it works fine.But while running any aspx files i get this error. I even tried to reinstall the dotnet framework but that doesnot work.My IIS is working fine and it is Version 5.1
Please help me.
Take Care,
Suresh.N
If u can mail me the solutions to
nsuresh_rasr@yahoo.com i will be very thankful.