Current location: Hot Scripts Forums » Programming Languages » ASP.NET » asp-iis-Server error


asp-iis-Server error

Reply
  #1 (permalink)  
Old 02-02-04, 01:34 AM
nsuresh_rasr nsuresh_rasr is offline
New Member
 
Join Date: Jan 2004
Location: New Jersy
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Angry asp-iis-Server error

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 02-02-04, 02:48 AM
MadDog MadDog is offline
Code Master
 
Join Date: Aug 2003
Posts: 935
Thanks: 0
Thanked 0 Times in 0 Posts
Make sure you are running the code in the wwwroot folder.

Try that and see if that works.

What OS are you running?
__________________
Drew Gauderman
ASP - MSSQL Coder / Buisness Owner / Coder for Hire!
MSN-ICQ-AIM-YIM in Profile

http://www.iportalx.net an easy ASP portal system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 02-02-04, 03:00 AM
nsuresh_rasr nsuresh_rasr is offline
New Member
 
Join Date: Jan 2004
Location: New Jersy
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
yes i am running in pages from wwwroot from innetpub folder. The OS i am using is windows xp professional.my ordinary asp pages are running good but aspx pages are not running
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 02-08-04, 01:47 AM
Shane Shane is offline
Coding Addict
 
Join Date: Jun 2003
Location: Maryland, US
Posts: 268
Thanks: 0
Thanked 0 Times in 0 Posts
You're missing your @ symbol.


Code:
 <%@ 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>
__________________
Shane Bauer
Microsoft Certified Professional (MCP) - ASP.NET
ASP/ASP.net, C#, VB/VB.NET, PHP, Perl, SQL
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Free web site, control panel, and dedicated IP with game server purchase for only $25 twastudios General Advertisements 3 10-20-05 07:13 AM
[php error] parse error | fatal error xeoHosting PHP 1 01-03-04 09:12 PM
mail function causes server error thewhiteshadow PHP 1 11-13-03 04:40 PM
FREE Team Speak server w/ every purchase of a Call of Duty Server twastudios General Advertisements 0 10-31-03 02:14 AM
Server error Cmrdrv The Lounge 1 08-12-03 03:54 PM


All times are GMT -5. The time now is 12:43 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.