ERROR:add asmx ,"ResourceManager" is ambiguous reference

  1. #1

    ERROR:add asmx ,"ResourceManager" is ambiguous reference

    under EXT.NET 2.2

    after add a webservices,run,and come out this error,what can i do ?

    '/' Application Server Error. 
    
    Compile error 
    
    Description: An error occurred in the process of compiling the resources required to service this request in. Please review the following specific error details and modify your source code appropriately. 
    
    Compiler Error Message: CS0104: "ResourceManager" is ambiguous reference "System.Resources.ResourceManager" and "Ext.Net.ResourceManager" between 
    
    Source Error: 
    
    
    Line 1367: 
    Line 1368: string GetLocalizedText (string name, object [] args) {
    Line 1369: ResourceManager rm = (ResourceManager) Application ["RM"]; 
    Line 1370: string val = rm.GetString ("HelpGenerator" + name); 
    Line 1371: if (val == null) return String.Empty; 
    
    Source File: c: \ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ Config \ DefaultWsdlHelpGenerator.aspx line: 1369
  2. #2
    Hi @alucardg,

    You should use the full class name.

    If you need System.Resources.ResourceManager, then use System.Resources.ResourceManager.

    If you need Ext.Net.ResourceManager, then use Ext.Net.ResourceManager.

    Just not "ResourceManager".

    Also you can use, for example:
    using ResourceManager=Ext.Net.ResourceManager;
    or
    using ResourceManager=System.Resources.ResourceManager;
    depending on what you need.

    With such the using directive you will be able to use the short name "ResourceManager".
  3. #3
    Thank you ! @Daniil

    but this error is not belongs to my ext.net code files,

    it's under the .NET Framework code file:
    Source File: c: \ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ Config \ DefaultWsdlHelpGenerator.aspx line: 1369

    i don't know why,shall i fix the "DefaultWsdlHelpGenerator.aspx" ?or upgrade ext.net to the latest version v2.5+ ?
  4. #4
    The answer provided by @daniil is the correct answer to your problem.

    What happened when you tried his solution?
    Geoffrey McGill
    Founder
  5. #5
    DefaultWsdlHelpGenerator.aspx is not a part of Ext.NET. So, I don't think updating Ext.NET will help.
    http://stackoverflow.com/questions/1...generator-aspx

    There is a related discussion, by the way.
    http://forums.ext.net/showthread.php?6635

Similar Threads

  1. Replies: 1
    Last Post: Aug 29, 2013, 10:53 AM
  2. Replies: 1
    Last Post: Dec 27, 2011, 1:47 PM
  3. [CLOSED] 411 error with ASMX POST service call without parameters
    By tdracz in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 03, 2009, 3:59 PM

Posting Permissions