none
Two dll ambiguity RRS feed

  • Question

  • I allready uploaded the asp.net website to server and when i made some changes to files then it is working fine on localhost but not on server. i am getting following error.

    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: CS0433: The type 'Student_MasterBLL' exists in both 'c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\da7aa6f3\99770de7\assembly\dl3\4b7dbd8a\dcbe9ad4_8e47cd01\App_Code.DLL' and 'c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\da7aa6f3\99770de7\App_Code.uqtc1xus.dll'

    Source Error:
    Line 13: public partial class Admin_Default : System.Web.UI.Page
    Line 14: {
    Line 15:     Student_MasterBLL Obj_Student_Master = new Student_MasterBLL();
    Line 16: 
    Line 17:     protected void Page_Load(object sender, EventArgs e)

    Source File: d:\hostingspace\bitcode.in\httpdocs\Admin\Default.aspx.cs    Line: 15
    Monday, June 11, 2012 5:22 AM

Answers

  • That is where namespaces are made for, you have then to full qualify the student.

    = new MyNameSpace.Student_MasterBLL();



    Success
    Cor

    Monday, June 11, 2012 5:37 AM
  • Close your development environment (and make sure the two libraries are not used by any other process), then delete the two conflicting libraries, or even better delete the temporary directories containing the libraries. Then do a fresh build. If the problem persists, it may be related to the way how you referenced other projects/libraries within your solution.

    Marcel 

    Monday, June 11, 2012 7:29 AM

All replies

  • That is where namespaces are made for, you have then to full qualify the student.

    = new MyNameSpace.Student_MasterBLL();



    Success
    Cor

    Monday, June 11, 2012 5:37 AM
  • check with using statements on top of the page, might be you are missing some namespace.

    Mark Answered, if it solves your question and Vote if you found it helpful.
    Rohit Arora

    Monday, June 11, 2012 6:27 AM
  • Close your development environment (and make sure the two libraries are not used by any other process), then delete the two conflicting libraries, or even better delete the temporary directories containing the libraries. Then do a fresh build. If the problem persists, it may be related to the way how you referenced other projects/libraries within your solution.

    Marcel 

    Monday, June 11, 2012 7:29 AM