Could you give me a URL where I can see the error as well and post more code, there's not much I can go off from the snippet provided.
If possible,post the code for the defraGlobalLibrary class file? Vikram DiscountASP.NET www.DiscountASP.NET
I'm new to discountasp.net and having a nightmare getting my site to work. I have two very simple class files in my app_code directory, but each time i run the .aspx, i get an error like: Compiler Error Message: BC30451: Name 'defraGlobalLibrary' is not declared. Source Error: Code: Line 11: Label1.Text = "" Line 12: Label1.Text = Now() + "[b]" Line 13: Dim emails As DataSet = defraGlobalLibrary.doSomething()Line 14: If emails.Tables(0).Rows.Count = 0 Then Line 15: Label1.Text += "No emails found" Source File:xxxxx Line: 13 ....these classes work happily on my local development machine - what am i missing? Thanks. Post Edited (envsurveyco) : 8/29/2007 2:01:44 PM GMT
I also have the same problem in my web application hosted in : http://www.ecareshopint.com/jt/ I noticed that if the class is "duplicated" in the aspx.vb form class, there will not be any error, but if it is a separate .vb file within the app_code subfolder, it will generate similar error as below. However, this same code works file in a local PC, can someone help to look into this. Thanks. SoftlinKoh The error is : 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: BC30002: Type 'ClsCommon.User' is not defined. Source Error: Code: Line 2: Partial Class _Default Line 3: Inherits System.Web.UI.Page Line 4: Private objUser As ClsCommon.User = Nothing Line 5: Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Line 6: If IsNothing(Session(ClsConfig.SessionName.User.ToString.Trim)) Then Source File: E:\web\ecareshopin\htdocs\jt\Default.aspx.vb Line: 4 Show Detailed Compiler Output: Code: c:\windows\system32\inetsrv> "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\vbc.exe" /t:library /utf8output /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a5fbd70d\6dbd72b1\App_Web_masterpage.master.5d3dbeba.u--vdmyn.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.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.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.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.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\1.0.61025.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a5fbd70d\6dbd72b1\App_Web_default.aspx.5d3dbeba.qivehswi.dll" /D:DEBUG=1 /debug+ /define:_MYTYPE=\"Web\" /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Specialized,System.Configuration,System.Text,System.Text.RegularExpressions,System.Web,System.Web.Caching,System.Web.SessionState,System.Web.Security,System.Web.Profile,System.Web.UI,System.Web.UI.WebControls,System.Web.UI.WebControls.WebParts,System.Web.UI.HtmlControls "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a5fbd70d\6dbd72b1\App_Web_default.aspx.5d3dbeba.qivehswi.0.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a5fbd70d\6dbd72b1\App_Web_default.aspx.5d3dbeba.qivehswi.1.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a5fbd70d\6dbd72b1\App_Web_default.aspx.5d3dbeba.qivehswi.2.vb" Microsoft (R) Visual Basic Compiler version 8.0.50727.832 for Microsoft (R) .NET Framework version 2.0.50727.832 Copyright (c) Microsoft Corporation. All rights reserved. http://server//jt/Default.aspx.vb(4) : error BC30002: Type 'ClsCommon.User' is not defined. Private objUser As ClsCommon.User = Nothing ~~~~~~~~~~~~~~ http://server//jt/Default.aspx.vb(6) : error BC30451: Name 'ClsConfig' is not declared. If IsNothing(Session(ClsConfig.SessionName.User.ToString.Trim)) Then ~~~~~~~~~ http://server//jt/Default.aspx.vb(9) : error BC30451: Name 'ClsConfig' is not declared. objUser = CType(Session(ClsConfig.SessionName.User.ToString.Trim), ClsCommon.User) ~~~~~~~~~ http://server//jt/Default.aspx.vb(9) : error BC30002: Type 'ClsCommon.User' is not defined. objUser = CType(Session(ClsConfig.SessionName.User.ToString.Trim), ClsCommon.User) ~~~~~~~~~~~~~~ Show Complete Compilation Source: Code: Line 1: #ExternalChecksum("http://server//jt/default.aspx","{406ea660-64cf-4c82-b6f0-42d48172a799}","FD8D7FC5F22B10C6E597B34F73D12E7C") Line 2: '------------------------------------------------------------------------------ Line 3: ' <auto-generated> Line 4: ' This code was generated by a tool. Line 5: ' Runtime Version:2.0.50727.832 Line 6: ' Line 7: ' Changes to this file may cause incorrect behavior and will be lost if Line 8: ' the code is regenerated. Line 9: ' </auto-generated> Line 10: '------------------------------------------------------------------------------ Line 11: Line 12: Option Strict Off Line 13: Option Explicit On Line 14: Line 15: Imports ASP Line 16: Imports Microsoft.VisualBasic Line 17: Imports System Line 18: Imports System.Collections Line 19: Imports System.Collections.Specialized Line 20: Imports System.Configuration Line 21: Imports System.Text Line 22: Imports System.Text.RegularExpressions Line 23: Imports System.Web Line 24: Imports System.Web.Caching Line 25: Imports System.Web.Profile Line 26: Imports System.Web.Security Line 27: Imports System.Web.SessionState Line 28: Imports System.Web.UI Line 29: Imports System.Web.UI.HtmlControls Line 30: Imports System.Web.UI.WebControls Line 31: Imports System.Web.UI.WebControls.WebParts Line 32: Line 33: Line 34: Partial Public Class _Default Line 35: Implements System.Web.SessionState.IRequiresSessionState Line 36: Line 37: Line 38: #ExternalSource("http://server//jt/default.aspx",5) Line 39: Protected WithEvents lblWelcome As Global.System.Web.UI.WebControls.Label Line 40: Line 41: #End ExternalSource Line 42: Line 43: Line 44: #ExternalSource("http://server//jt/default.aspx",8) Line 45: Protected WithEvents btnLogOut As Global.System.Web.UI.WebControls.Button Line 46: Line 47: #End ExternalSource Line 48: Line 49: Protected ReadOnly Property Profile() As System.Web.Profile.DefaultProfile Line 50: Get Line 51: Return CType(Me.Context.Profile,System.Web.Profile.DefaultProfile) Line 52: End Get Line 53: End Property Line 54: Line 55: Protected ReadOnly Property ApplicationInstance() As System.Web.HttpApplication Line 56: Get Line 57: Return CType(Me.Context.ApplicationInstance,System.Web.HttpApplication) Line 58: End Get Line 59: End Property Line 60: End Class Line 61: Line 62: Namespace ASP Line 63: Line 64: <System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()> _ Line 65: Public Class jt_default_aspx Line 66: Inherits Global._Default Line 67: Implements System.Web.IHttpHandler Line 68: Line 69: Private Shared __initialized As Boolean Line 70: Line 71: Private Shared __fileDependencies As Object Line 72: Line 73: Public Sub New() Line 74: MyBase.New Line 75: Dim dependencies() As String Line 76: Line 77: #ExternalSource("http://server//jt/Default.aspx.vb",912304) Line 78: CType(Me,System.Web.UI.Page).AppRelativeVirtualPath = "~/jt/default.aspx" Line 79: Line 80: #End ExternalSource Line 81: If (Global.ASP.jt_default_aspx.__initialized = false) Then Line 82: dependencies = New String(5) {} Line 83: dependencies(0) = "~/jt/default.aspx" Line 84: dependencies(1) = "~/jt/Default.aspx.vb" Line 85: dependencies(2) = "~/jt/MasterPage.master" Line 86: dependencies(3) = "~/jt/MasterPage.master.vb" Line 87: dependencies(4) = "~/jt/WUC_Links.ascx" Line 88: dependencies(5) = "~/jt/WUC_Links.ascx.vb" Line 89: Global.ASP.jt_default_aspx.__fileDependencies = Me.GetWrappedFileDependencies(dependencies) Line 90: Global.ASP.jt_default_aspx.__initialized = true Line 91: End If Line 92: Me.Server.ScriptTimeout = 30000000 Line 93: End Sub Line 94: Line 95: Protected Overrides ReadOnly Property SupportAutoEvents() As Boolean Line 96: Get Line 97: Return false Line 98: End Get Line 99: End Property Line 100: Line 101: Private Function __BuildControllblWelcome() As Global.System.Web.UI.WebControls.Label Line 102: Dim __ctrl As Global.System.Web.UI.WebControls.Label Line 103: Line 104: #ExternalSource("http://server//jt/default.aspx",5) Line 105: __ctrl = New Global.System.Web.UI.WebControls.Label Line 106: Line 107: #End ExternalSource Line 108: Me.lblWelcome = __ctrl Line 109: __ctrl.TemplateControl = Me Line 110: __ctrl.ApplyStyleSheetSkin(Me) Line 111: Line 112: #ExternalSource("http://server//jt/default.aspx",5) Line 113: __ctrl.ID = "lblWelcome" Line 114: Line 115: #End ExternalSource Line 116: Return __ctrl Line 117: End Function Line 118: Line 119: Private Function __BuildControlbtnLogOut() As Global.System.Web.UI.WebControls.Button Line 120: Dim __ctrl As Global.System.Web.UI.WebControls.Button Line 121: Line 122: #ExternalSource("http://server//jt/default.aspx",8) Line 123: __ctrl = New Global.System.Web.UI.WebControls.Button Line 124: Line 125: #End ExternalSource Line 126: Me.btnLogOut = __ctrl Line 127: __ctrl.TemplateControl = Me Line 128: __ctrl.ApplyStyleSheetSkin(Me) Line 129: Line 130: #ExternalSource("http://server//jt/default.aspx",8) Line 131: __ctrl.ID = "btnLogOut" Line 132: Line 133: #End ExternalSource Line 134: Line 135: #ExternalSource("http://server//jt/default.aspx",8) Line 136: __ctrl.Text = "Log Out" Line 137: Line 138: #End ExternalSource Line 139: Return __ctrl Line 140: End Function Line 141: Line 142: Private Sub __BuildControldefaultContent(ByVal __ctrl As System.Web.UI.Control) Line 143: Dim __parser As System.Web.UI.IParserAccessor = CType(__ctrl,System.Web.UI.IParserAccessor) Line 144: Line 145: #ExternalSource("http://server//jt/default.aspx",3) Line 146: __parser.AddParsedSubObject(New System.Web.UI.LiteralControl(""&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&" <div>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&" ")) Line 147: Line 148: #End ExternalSource Line 149: Dim __ctrl1 As Global.System.Web.UI.WebControls.Label Line 150: Line 151: #ExternalSource("http://server//jt/default.aspx",3) Line 152: __ctrl1 = Me.__BuildControllblWelcome Line 153: Line 154: #End ExternalSource Line 155: Line 156: #ExternalSource("http://server//jt/default.aspx",3) Line 157: __parser.AddParsedSubObject(__ctrl1) Line 158: Line 159: #End ExternalSource Line 160: Line 161: #ExternalSource("http://server//jt/default.aspx",3) Line 162: __parser.AddParsedSubObject(New System.Web.UI.LiteralControl(""&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&" [b]"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&" [b]"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&" ")) Line 163: Line 164: #End ExternalSource Line 165: Dim __ctrl2 As Global.System.Web.UI.WebControls.Button Line 166: Line 167: #ExternalSource("http://server//jt/default.aspx",3) Line 168: __ctrl2 = Me.__BuildControlbtnLogOut Line 169: Line 170: #End ExternalSource Line 171: Line 172: #ExternalSource("http://server//jt/default.aspx",3) Line 173: __parser.AddParsedSubObject(__ctrl2) Line 174: Line 175: #End ExternalSource Line 176: Line 177: #ExternalSource("http://server//jt/default.aspx",3) Line 178: __parser.AddParsedSubObject(New System.Web.UI.LiteralControl("</div>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10))) Line 179: Line 180: #End ExternalSource Line 181: End Sub Line 182: Line 183: Private Sub __BuildControlTree(ByVal __ctrl As jt_default_aspx) Line 184: Line 185: #ExternalSource("http://server//jt/default.aspx",1) Line 186: __ctrl.MasterPageFile = "MasterPage.master" Line 187: Line 188: #End ExternalSource Line 189: Line 190: #ExternalSource("http://server//jt/default.aspx",1) Line 191: __ctrl.EnableViewStateMac = false Line 192: Line 193: #End ExternalSource Line 194: Line 195: #ExternalSource("http://server//jt/default.aspx",1) Line 196: Me.InitializeCulture Line 197: Line 198: #End ExternalSource Line 199: Line 200: #ExternalSource("http://server//jt/default.aspx",3) Line 201: Me.AddContentTemplate("MasterHolder", New System.Web.UI.CompiledTemplateBuilder(AddressOf Me.__BuildControldefaultContent)) Line 202: Line 203: #End ExternalSource Line 204: End Sub Line 205: Line 206: Line 207: #ExternalSource("http://server//jt/Default.aspx.vb",912304) Line 208: Protected Overrides Sub FrameworkInitialize() Line 209: MyBase.FrameworkInitialize Line 210: Me.__BuildControlTree(Me) Line 211: Me.AddWrappedFileDependencies(Global.ASP.jt_default_aspx.__fileDependencies) Line 212: Me.Request.ValidateInput Line 213: End Sub Line 214: Line 215: #End ExternalSource Line 216: Line 217: Public Overrides Function GetTypeHashCode() As Integer Line 218: Return 1041727930 Line 219: End Function Line 220: Line 221: Public Overrides Sub ProcessRequest(ByVal context As System.Web.HttpContext) Line 222: MyBase.ProcessRequest(context) Line 223: End Sub Line 224: End Class Line 225: End Namespace Line 226: <script type=text/javascript> function OnToggleTOCLevel1(level2ID) { var elemLevel2 = document.getElementById(level2ID); if (elemLevel2.style.display == 'none') { elemLevel2.style.display = ''; } else { elemLevel2.style.display = 'none'; } } </script> Version Information:Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832 <!-- [HttpCompileException]: E:\web\ecareshopin\htdocs\jt\Default.aspx.vb(4): error BC30002: Type 'ClsCommon.User' is not defined. at System.Web.Compilation.AssemblyBuilder.Compile() at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) at System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --><!-- This error page might contain sensitive information because ASP.NET is configured to show verbose error messages using <customErrors mode="Off"/>. Consider using <customErrors mode="On"/> or <customErrors mode="RemoteOnly"/> in production environments.-->
Make sure 'jt' sub-folder is configured as a web application[Control Panel>web application tool].Is your class within App_Code or within sub-folders within App_Code.Try adding the following to your web.config in the later case: <codeSubDirectories> <add directoryName='sub_directory_name'/> </codeSubDirectories> Vikram DiscountASP.NET www.DiscountASP.NET
The class being used is already in App_Code Sub folder. I tried using without the class the web application works. Please let me knowif I can find a working Web Application Sample that uses class within the discountASP.Net forum ? Thanks a million !! Softlinkoh
I noticed that there are other people having the same problem as me and was not resolved. Hence I think this problem is critical and important to this community. Tosimply everyone's work, I have created a web page with only 1 label and 1 button, with the following codes : Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Dim a As New Class1 Label1.Text = a.try1 End Sub A class call class1 is created in App_code sub folder as follows Imports Microsoft.VisualBasic Public Class Class1 Public Property try1() Get Return "Hello" End Get Set(ByVal value) End Set End Property End Class When run in my local machine it is okay, but uploaded, it showed : 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: BC30002: Type 'Class1' is not defined. Source Error: Code: Line 4: Line 5: Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Line 6: Dim a As New Class1 Line 7: Label1.Text = a.try1 Line 8: End Sub Source File: E:\web\ecareshopin\htdocs\koh_test\tryclass\Default.aspx.vb Line: 6 The web config used as as follows : <configuration> <configSections> <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false"/> <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false"/> <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false"/> <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false"/> </sectionGroup> </sectionGroup> </sectionGroup> </configSections> <system.web> <pages> <controls> <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> </controls> <tagMapping> <add tagType="System.Web.UI.WebControls.CompareValidator" mappedTagType="System.Web.UI.Compatibility.CompareValidator, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> <add tagType="System.Web.UI.WebControls.CustomValidator" mappedTagType="System.Web.UI.Compatibility.CustomValidator, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> <add tagType="System.Web.UI.WebControls.RangeValidator" mappedTagType="System.Web.UI.Compatibility.RangeValidator, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> <add tagType="System.Web.UI.WebControls.RegularExpressionValidator" mappedTagType="System.Web.UI.Compatibility.RegularExpressionValidator, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> <add tagType="System.Web.UI.WebControls.RequiredFieldValidator" mappedTagType="System.Web.UI.Compatibility.RequiredFieldValidator, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> <add tagType="System.Web.UI.WebControls.ValidationSummary" mappedTagType="System.Web.UI.Compatibility.ValidationSummary, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> </tagMapping> </pages> <!-- Set compilation debug="true" to insert debugging symbols into the compiled page. Because this affects performance, set this value to true only during development. --> <compilation debug="true"> <assemblies> <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> </assemblies> </compilation> <httpHandlers> <remove verb="*" path="*.asmx"/> <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/> </httpHandlers> <httpModules> <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> </httpModules> </system.web> <system.web.extensions> <scripting> <webServices> <!-- Uncomment this line to customize maxJsonLength and add a custom converter --> <!-- <jsonSerialization maxJsonLength="500"> <converters> <add name="ConvertMe" type="Acme.SubAcme.ConvertMeTypeConverter"/> </converters> </jsonSerialization> --> <!-- Uncomment this line to enable the authentication service. Include requireSSL="true" if appropriate. --> <!-- <authenticationService enabled="true" requireSSL = "true|false"/> --> <!-- Uncomment these lines to enable the profile service. To allow profile properties to be retrieved and modified in ASP.NET AJAX applications, you need to add each property name to the readAccessProperties and writeAccessProperties attributes. --> <!-- <profileService enabled="true" readAccessProperties="propertyname1,propertyname2" writeAccessProperties="propertyname1,propertyname2" /> --> </webServices> <!-- <scriptResourceHandler enableCompression="true" enableCaching="true" /> --> </scripting> </system.web.extensions> <system.webServer> <validation validateIntegratedModeConfiguration="false"/> <modules> <add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> </modules> <handlers> <remove name="WebServiceHandlerFactory-ISAPI-2.0"/> <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> <add name="ScriptResource" verb="GET" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> </handlers> </system.webServer> </configuration> Please help to resolve this problem. Thanks Softlinkoh
As I had recommended before.Configure your sub-application 'tryclass' as a sub application using (DASP control panel>Web application tool) .This should resolve the issue! Vikram DiscountASP.NET www.DiscountASP.NET
Thanks a lot. I resolved my class problems. A new question pop up due to Database, I am using access database and the database is in the subfolder ABC When I run on my PC, everything is ok,when I host it, it returns the error : Selected collating sequence not supported by the operating system. When trying to execute the sqlcommand : Using objDataDR = objDataCmd.ExecuteReader() Can anyone help ?? Thanks Softlinkoh