Hi,
We are getting the following error when we try to launch our asp.net 1.1 application which was developed using VS.NE2003, we use .net XML webservices to obtain the data from Oracle databases. We keep our web services on one server and frontend code behind page on another server.
Server Error in '/auth/SalPlan' Application.
--------------------------------------------------------------------------------
Unable to generate a temporary class (result=1). error CS0122: 'salPlan.WSReference' is inaccessible due to its protection level
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Unable to generate a temporary class (result=1). error CS0122: 'salPlan.WSReference' is inaccessible due to its protection level
Source Error:
Line 94:
Line 95: Public Sub New()
Line 96: MyBase.New()
Line 97: Dim urlSetting As String = System.Configuration.ConfigurationSettings.AppSett ings("salPlan.WSPS.WSPS")
Line 98: If (Not (urlSetting) Is Nothing) Then
Source File: c:\inetpub\wwwroot\auth\salPlan\class\WSReference.
vb Line: 96
Stack Trace:
[InvalidOperationException: Unable to generate a temporary class (result=1).
error CS0122: 'salPlan.WSReference' is inaccessible due to its protection level
]
System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, CompilerParameters parameters, Evidence evidence) +919
System.Xml.Serialization.TempAssembly.GenerateAsse mbly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, CompilerParameters parameters, Assembly assembly, Hashtable assemblies) +2146
System.Xml.Serialization.TempAssembly..ctor(XmlMap ping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence) +136
System.Xml.Serialization.XmlSerializer.FromMapping s(XmlMapping[] mappings, Type type) +193
System.Web.Services.Protocols.SoapClientType..ctor (Type type) +310
System.Web.Services.Protocols.SoapHttpClientProtoc ol..ctor() +151
salPlan.WSPS.wsPS..ctor() in c:\inetpub\wwwroot\auth\salPlan\Web References\WSPS\Reference.
vb:35
salPlan.WSPSRef..ctor() in c:\inetpub\wwwroot\auth\salPlan\class\WSReference.
vb:96
salPlan.Employee..ctor(String salaryPlanCode, String employeeId) in c:\inetpub\wwwroot\auth\salPlan\class\Employee.
vb: 141
salPlan.Base.get_CurrentSupervisor() in c:\inetpub\wwwroot\auth\salPlan\aspx\Base.aspx.
vb: 74
salPlan.Base.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\auth\salPlan\aspx\Base.aspx.
vb: 213
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET Version:1.1.4322.2300
Any help in this regard is appreciated.
Thank You,
Rao