VB.NET/IIS7/WinSrv2008 (unmarked) to compile VB of the development environment every time

Asked 2 years ago, Updated 2 years ago, 154 views

We are currently creating VB.NET (.aspx) in the development environment.
However, if there is no change in the display part after rewriting, the compiled cache will be reused, and even if you modify it, it will not be reflected honestly.
As a result, it is not possible to determine whether it is this behavior or how it was last time because there is a cache left after compiling, so I add or erase 1 to the display part every time.
Is there a way to compile every time by rewriting web.config?
Thank you for your cooperation.

-- [Additional note] Status [14:48] --
=Both IIS and VB.NET are not familiar with each other, so there is a possibility that they are doing something strange in the first place=
document root:C:\www\appname\
files:def.aspx
(Revised with a simple editor such as SublimeText instead of Studio)
Browse to http://devsrvaddr/appname/

<%
    Dim test as String = "ABC"
%>
<!doctype html>
<html>
<head></head>
<body>Hello.<%=test%>/body>
</html>

Browser=>Hello.ABC

Edit and save this as follows and access it in your browser

<%
    Dim test as String="XYZ"
%>
<!doctype html>
<html>
<head></head>
<body>Hello.<%=test%>/body>
</html>

Browser=>Hello.ABC
No matter how many times you reload, there is no change.
<%-%> Rewrite the cache without recompiling it
So, I will modify the output part a little bit.! Add only .

<%
    Dim test as String="XYZ"
%>
<!doctype html>
<html>
<head></head>
<body>!Hello.<%=test%>/body>
</html>

Browser!Hello.XYZ
and recompile after a few changes to the output.

vb.net

2022-09-30 21:19

1 Answers

Are you rewriting the ASPX file directly on the server?
Normally, if you rewrite the ASPX file in the site, the cache on the server side should be updated automatically.
Is there a possibility that the browser cache is working instead of the server side?

ASP.NET cache can be specified in many ways, but why don't you check the cache settings of the site with IIS Manager?


2022-09-30 21:19

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.