code behind
-
I wrote a aspx page with codebehind in C#. The cs file name is Mycodebehind.aspx.cs aspx file is MyCodebehind.aspx I compiled the output library as csc /t:library /out:anand.dll MyCodebehind.aspx.cs I moved the anand.dll to bin. Every thing works fine. Now come the issue. Now i think the aspx page will be searching for the MyPage.MyCodebehind inside the bin folder as my namespace is MyPage.MyCodebehind. I think so because if the anand.dll is not there is shows unable to load MyPage.MyCodebehind error. So to check that i renamed anand.dll to anand1.dll It gave me an error The located assembly's manifest definition with name 'anand1' does not match the assembly reference. Source Error Stack trace === Pre-bind state information === LOG: DisplayName = anand1 (Partial) LOG: Appbase = file:///c:/inetpub/wwwroot/Tests LOG: Initial PrivatePath = bin Calling assembly : (Unknown). === LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). LOG: Post-policy reference: anand1 LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/tests/431ffba2/3e5b2ba7/anand1.DLL. LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/tests/431ffba2/3e5b2ba7/anand1/anand1.DLL. LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/Tests/bin/anand1.DLL. WRN: Comparing the assembly name resulted in the mismatch: NAME what is it actually looking for where is it written down that the required d class is there in that dll anand.dll can i change that to anand1.dll ? Whats going on can any body explain me with details plz. Thanks a lot in advance. Sorry for troubling u with a big question for a simple issue. anand