I have nice opportunity to start a new project just for fun. It should helps for pharmacists to resolve a lot of problem within their hard job. So i created simple ASP.NET site project with extentions library for work with AJAX Toolkit. Also i added MasterPage to the site. After that, i start add new pages to site which implemented MasterPage template. Try to run site in localhost in respond just received the follow error:
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: CS0433: The type '_Default' exists in both 'c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\4329c7eb\395defc0\assembly\dl3\c342104e\0b9fb297_d4ffc901\App_Web_kswiclmh.DLL' and 'c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\4329c7eb\395defc0\assembly\dl3\919b4301\d5c70b97_d4ffc901\App_Web_2elleimk.DLL'
Source Error:
Line 110:
Line 111: [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
Line 112: public class default_aspx : global::_Default, System.Web.SessionState.IRequiresSessionState, System.Web.IHttpHandler {
Line 113:
Line 114: private static bool @__initialized;
Source File: c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\4329c7eb\395defc0\App_Web_default.aspx.cdcab7d2.vim5bqdy.0.cs Line: 112
I should resolve this problem, that is why i start to research this issue. But have not found any good solution for it. First of all i try to delete mentions files in my hard drive. Unfortunately, it has not any effect.
BTW, solution of this problem was above ground. MasterPage and some page have had the same name of class, but inherit from different base classes. After i renamed class in code-file and in design-file as mention in attribute of directive @Page Inherits="
Немає коментарів:
Дописати коментар