Publishing ASP.net cannot see assembly

I have a very simple ASP.net application that I use to learn. I developed it (two controls - a drop-down list and datagrid, as well as an EF class) on my laptop using a copy of production db (this initial application is read-only), so I can minimize the variables that I need to understand when I deploying a much more secure environment on my client.

Since I use EF, I need .net4, of course. This was my first call. IIS did not have an application pool for .net4. Got that fixed (I think). Here is my publication package page: enter image description here

Now I get something else strange ... I searched for it and still do not understand. Maybe someone can give me some advice.

Actual Error Message

+4
source share
2 answers

Try adding the src attribute using the path to the CodeBehind file inside the ads of your page. This should fix your problem.

The src attribute is specified here:

 <%@ Page ... Src="/path_to_BrowseWD.aspx.cs" ... %> 
+1
source

Add this attribute to the first line of CodeFile = "BrowseWO.aspx.cs" and remove the CodeBehind attribute, like this

0
source

Source: https://habr.com/ru/post/1438410/


All Articles