Convert it to a Web Project, seriously. This is a known problem when using libraries and user controls with the website template. I’ve summed it up here:
ASP.NET: Web Site versus Web Application Project
More information on Rick Strahl’s blog (read the comments):
Understanding Page Inheritance in ASP.NET 2.0
Related Posts:
- Could not find any resources appropriate for the specified culture or the neutral culture
- What’s the difference between .NET Core, .NET Framework, and Xamarin?
- What is a singleton in C#?
- ‘Microsoft.ACE.OLEDB.12.0’ provider is not registered on the local machine
- My C# application is returning 0xE0434352 to Windows Task Scheduler but it is not crashing
- What is WCF? and what can it do?
- C# Set collection?
- Difference between Delphi and Delphi.NET
- Where/how can I download (and install) the Microsoft.Jet.OLEDB.4.0 for Windows 8, 64 bit?
- Convert Enum to String
- System.web.mvc missing
- Windows Application has stopped working :: Event Name CLR20r3
- Why is Dictionary preferred over Hashtable in C#?
- What is the difference between ASP.NET MVC 6 and ASP.NET Core 1.0 and the reason behind the core framework?
- WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for jquery
- Embed a System.String in XAML
- What’s the difference between struct and class in .NET?
- Does anyone still use [goto] in C# and if so why?
- How does the “Using” statement translate from C# to VB?
- Where Is Machine.Config?
- Why does .Net Socket.Disconnect take two minutes?
- ClickOnce runtime DFSVC.EXE
- “An attempt was made to load a program with an incorrect format” even when the platforms are the same
- What is the best way to parse html in C#? [closed]
- Best C# API to create PDF
- How to use the “Using” statement in ASP.net razor webpages?
- C# cannot convert method to non delegate type
- What is the difference between const and readonly in C#?
- SQL Connection Error: System.Data.SqlClient.SqlException (0x80131904)
- Cannot send a content-body with this verb-type
- Html.Partial vs Html.RenderPartial & Html.Action vs Html.RenderAction
- Pass Method as Parameter using C#
- Nuget connection attempt failed “Unable to load the service index for source”
- Cannot access a disposed object – How to fix?
- HashSet vs. List performance
- Cannot access a disposed object – How to fix?
- ArrayList vs List<> in C#
- How to access Session variables and set them in javascript?
- What’s the @ in front of a string in C#?
- How to solve ‘…is a ‘type’, which is not valid in the given context’? (C#)
- How should I cast in VB.NET?
- Calling the base constructor in C#
- Warning: Found conflicts between different versions of the same dependent assembly
- Best way to repeat a character in C#
- Connection string using Windows Authentication
- What is the purpose ApplicationDbContext Class in (under IdentityModels.cs file) ASP.NET MVC 5?
- How to solve “Could not establish trust relationship for the SSL/TLS secure channel with authority”
- How to empty a list in C#?
- What is The difference between ListBox and ListView
- SQLite equivalent to ISNULL(), NVL(), IFNULL() or COALESCE()
- Could not establish secure channel for SSL/TLS with authority ‘*’
- Cannot attach the file *.mdf as database
- How to open an Excel file in C#?
- What is a method group in C#?
- How can I download a file with batch file without using any external tools?
- How do I save a stream to a file in C#?
- Print Pdf in C#
- Can a Byte[] Array be written to a file in C#?
- Entity Framework vs LINQ to SQL
- .NET Framework 4.6 or a later update is already installed on this computer
- c# .net change label text
- Retrieving the COM class factory for component with CLSID {XXXX} failed due to the following error: 80040154
- How do I find the PublicKeyToken for a particular dll?
- Consider app.config remapping of assembly with no app.config mapping
- What is a “first chance exception”?
- Sequence contains more than one element
- What is the difference between String and string in C#?
- Creating a List of Lists in C#
- A certificate chain could not be built to a trusted root authority
- C# int to byte[]
- INQ: When to use SingleOrDefault vs. FirstOrDefault() with filtering criteria
- How to set session timeout in web.config
- HTTP Error 503, the service is unavailable
- .Net 4.8 Support for Windows 10 ends in 26 days?
- What is a NullReferenceException, and how do I fix it?
- How do I get a random YouTube video with the YouTube API?
- An existing connection was forcibly closed by the remote host
- C# HttpClient An existing connection was forcibly closed by the remote host
- How can I convert String to Int?
- What is a NullReferenceException, and how do I fix it?
- How to resolve “Server Error in ‘/’ Application” error?
- How to handle Uncaught (in promise) DOMException: The play() request was interrupted by a call to pause()
- I am getting Failed to load resource: net::ERR_BLOCKED_BY_CLIENT with Google chrome
- The wait operation timed out. ASP
- The wait operation timed out. ASP
- IOException: The process cannot access the file ‘file path’ because it is being used by another process
- Chrome returns “Bad Request – Request Too Long” when navigating to local IIS Express
- Different between ./ , ../ , ../../ , ~/ on file path(URL) in asp.net
- No connection could be made because the target machine actively refused it?
- finding dll for “The specified module could not be found”
- What does ‘IISReset’ do?
- Could not load file or assembly or one of its dependencies
- What does a lock statement do under the hood?
- Error : Could not load file or assembly or one of it’s dependencies
- What does ‘IISReset’ do?
- Could not load file or assembly or one of its dependencies
- Priority queue in .Net
- “Exception has been thrown by the target of an invocation” error (mscorlib)
- What is the difference between int, Int16, Int32 and Int64?
- ORA-12154 could not resolve the connect identifier specified