473,388 Members | 1,399 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

iisreset? why does this work?

Here is the story. I have my ASP.Net web appliacation that when I uninstall
an old version and install a new version the old version's assemblies are
still in the system somewhere and cause the new install to crash or have old
application operations.

Here are some notes on the assemblies. They are put in the GAC. The old
and the new have the same version information. During the new version
install the ASP.Net web folder is deleted from inetpub. My install also
deletes the app's folder from the "Temporary ASP.NET Files" to prevent the
known cached file to exist in the new install. This all worked perfectly
before what I think the new service pack. I will have to verify.

So, when i install the new version and run the web application it will
either crash because it cannot find the properties, methods, or classes in
the cached assembly or it will execute the old logic. Now, if I do nothing
but run iisreset and rerun my new install it all works perfectly. EVERY
time I test an install I get the same results. I am about to test this with
a Windows 2003 machine and it too has the latest service packs. If it
continues to happen I will be forced to either put a forced iisreset in my
install or determine if the problem is with the service packs. Has anyone
else seen this issue if so how might i avoid this issue?

Thank you for your time.

Nov 18 '05 #1
5 2013
The GAC works a heck of a lot like the COM registry. If you install a new
version having the same version number, you will have to do what you're
doing to use it. Why not use the \bin folder instead? Lot less trouble.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"Reader" <po******@news.group> wrote in message
news:#J**************@TK2MSFTNGP12.phx.gbl...
Here is the story. I have my ASP.Net web appliacation that when I uninstall an old version and install a new version the old version's assemblies are
still in the system somewhere and cause the new install to crash or have old application operations.

Here are some notes on the assemblies. They are put in the GAC. The old
and the new have the same version information. During the new version
install the ASP.Net web folder is deleted from inetpub. My install also
deletes the app's folder from the "Temporary ASP.NET Files" to prevent the
known cached file to exist in the new install. This all worked perfectly
before what I think the new service pack. I will have to verify.

So, when i install the new version and run the web application it will
either crash because it cannot find the properties, methods, or classes in
the cached assembly or it will execute the old logic. Now, if I do nothing but run iisreset and rerun my new install it all works perfectly. EVERY
time I test an install I get the same results. I am about to test this with a Windows 2003 machine and it too has the latest service packs. If it
continues to happen I will be forced to either put a forced iisreset in my
install or determine if the problem is with the service packs. Has anyone
else seen this issue if so how might i avoid this issue?

Thank you for your time.

Nov 18 '05 #2
The assembly it references does exist in the GAC.... other applications use
the assembly too. But the same assembly is also in the bin. Because the
asp.net app does not find it unless it too exists in the bin..... anyway..
between the instlls this bin and the parent web folder are removed but the
old one still seems to exist. I have tested on a machine that predates the
latest services packs and it happened to me again.. :P maybe my firs ttime
fix did not solve it to begin with.. but no matter it would be nice to
figure out a solution to this..
"Kevin Spencer" <ks******@takempis.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
The GAC works a heck of a lot like the COM registry. If you install a new
version having the same version number, you will have to do what you're
doing to use it. Why not use the \bin folder instead? Lot less trouble.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"Reader" <po******@news.group> wrote in message
news:#J**************@TK2MSFTNGP12.phx.gbl...
Here is the story. I have my ASP.Net web appliacation that when I

uninstall
an old version and install a new version the old version's assemblies are still in the system somewhere and cause the new install to crash or have

old
application operations.

Here are some notes on the assemblies. They are put in the GAC. The old and the new have the same version information. During the new version
install the ASP.Net web folder is deleted from inetpub. My install also
deletes the app's folder from the "Temporary ASP.NET Files" to prevent the known cached file to exist in the new install. This all worked perfectly before what I think the new service pack. I will have to verify.

So, when i install the new version and run the web application it will
either crash because it cannot find the properties, methods, or classes in the cached assembly or it will execute the old logic. Now, if I do

nothing
but run iisreset and rerun my new install it all works perfectly. EVERY
time I test an install I get the same results. I am about to test this

with
a Windows 2003 machine and it too has the latest service packs. If it
continues to happen I will be forced to either put a forced iisreset in my install or determine if the problem is with the service packs. Has anyone else seen this issue if so how might i avoid this issue?

Thank you for your time.


Nov 18 '05 #3
To give you another thing about the assemblies... the assemblies are used in
many applications.. it just happens this web site is one of those
appliations that use them. It should not matter if they are in the GAC or
bin. What matters is that when the web site is completely removed and even
the asp.net cache folder is removed IIS still has them somewhere.. memory...
on disk? If i could know where and how to solve this and not have to debate
why i have my assemblies in the GAC.......

Why do i have to restart IIS to have it work?!? IIS is the only application
that needs a restart. All Windows applications that reference the
assemblies do not have problems with the install. This can't be a complete
fluke when i can reproduce this error 100% on many different server
installations...

"Kevin Spencer" <ks******@takempis.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
The GAC works a heck of a lot like the COM registry. If you install a new
version having the same version number, you will have to do what you're
doing to use it. Why not use the \bin folder instead? Lot less trouble.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"Reader" <po******@news.group> wrote in message
news:#J**************@TK2MSFTNGP12.phx.gbl...
Here is the story. I have my ASP.Net web appliacation that when I

uninstall
an old version and install a new version the old version's assemblies are still in the system somewhere and cause the new install to crash or have

old
application operations.

Here are some notes on the assemblies. They are put in the GAC. The old and the new have the same version information. During the new version
install the ASP.Net web folder is deleted from inetpub. My install also
deletes the app's folder from the "Temporary ASP.NET Files" to prevent the known cached file to exist in the new install. This all worked perfectly before what I think the new service pack. I will have to verify.

So, when i install the new version and run the web application it will
either crash because it cannot find the properties, methods, or classes in the cached assembly or it will execute the old logic. Now, if I do

nothing
but run iisreset and rerun my new install it all works perfectly. EVERY
time I test an install I get the same results. I am about to test this

with
a Windows 2003 machine and it too has the latest service packs. If it
continues to happen I will be forced to either put a forced iisreset in my install or determine if the problem is with the service packs. Has anyone else seen this issue if so how might i avoid this issue?

Thank you for your time.


Nov 18 '05 #4
The solution.

The solution was to set a property in my VS.Net setup project. I set the
restartwwwservices to true and this will magically under the mask of
whatever.. restart the iis services...
It had nothing todo with how i was implementing my GAC or assemblies.. peace
out kids.. have fun with that info mauahah
"Reader" <po******@news.group> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Here is the story. I have my ASP.Net web appliacation that when I uninstall an old version and install a new version the old version's assemblies are
still in the system somewhere and cause the new install to crash or have old application operations.

Here are some notes on the assemblies. They are put in the GAC. The old
and the new have the same version information. During the new version
install the ASP.Net web folder is deleted from inetpub. My install also
deletes the app's folder from the "Temporary ASP.NET Files" to prevent the
known cached file to exist in the new install. This all worked perfectly
before what I think the new service pack. I will have to verify.

So, when i install the new version and run the web application it will
either crash because it cannot find the properties, methods, or classes in
the cached assembly or it will execute the old logic. Now, if I do nothing but run iisreset and rerun my new install it all works perfectly. EVERY
time I test an install I get the same results. I am about to test this with a Windows 2003 machine and it too has the latest service packs. If it
continues to happen I will be forced to either put a forced iisreset in my
install or determine if the problem is with the service packs. Has anyone
else seen this issue if so how might i avoid this issue?

Thank you for your time.

Nov 18 '05 #5

The solution is to set the property in my VS.Net setup project to restart
www services...
"Reader" <po******@news.group> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Here is the story. I have my ASP.Net web appliacation that when I uninstall an old version and install a new version the old version's assemblies are
still in the system somewhere and cause the new install to crash or have old application operations.

Here are some notes on the assemblies. They are put in the GAC. The old
and the new have the same version information. During the new version
install the ASP.Net web folder is deleted from inetpub. My install also
deletes the app's folder from the "Temporary ASP.NET Files" to prevent the
known cached file to exist in the new install. This all worked perfectly
before what I think the new service pack. I will have to verify.

So, when i install the new version and run the web application it will
either crash because it cannot find the properties, methods, or classes in
the cached assembly or it will execute the old logic. Now, if I do nothing but run iisreset and rerun my new install it all works perfectly. EVERY
time I test an install I get the same results. I am about to test this with a Windows 2003 machine and it too has the latest service packs. If it
continues to happen I will be forced to either put a forced iisreset in my
install or determine if the problem is with the service packs. Has anyone
else seen this issue if so how might i avoid this issue?

Thank you for your time.

Nov 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Lee | last post by:
Hello all, I am trying to perform a reboot on my server from an asp page. I have a link on my page that, when clicked on, redirects to a .stm page that displays a message about the server...
1
by: skilla | last post by:
Hi people, I've got WinXP Pro SP2 English on my laptop and since installing SP2 got the IISRESET "No such interface supported" error. The whole story: I was writing a fairly simple ASP app...
2
by: Sunil Menon | last post by:
Dear All, I would like run a program that does an IISReset when aspnet_wp.exe (PID: 1234) was recycled...In IIS service we have a property "Recovery" where you can specify a program to run...but...
0
by: \Rob\ | last post by:
On a Win2000 domain controller, the ASPNET (v1.1) worker process (aspnet_wp.exe) runs under the IWAM_machinename (IIS 5) account NOT the ASPNET account. (I know domain controllers shouldn't run...
4
by: Andy Fish | last post by:
Hi, when I want to upgrade my asp.net web app on the deployment server, my process is basically this: 1. stop the web site in iis manager 2. in explorer, rename the web root directory from,...
1
by: Daren | last post by:
Hi, I have a site with page-level caching set at 10 minutes. However, when I update it, I want to be able to empty the cache immediately, so changes are seen right away. At present I manually...
1
by: shai kedem | last post by:
hello, this post is related to iisreset slowness issue I am experiancing. I mean by slowness that IIS reset takes some time to terminate the asp.net working processes and after that starts up...
3
by: opus18 | last post by:
just as the subject states, our dotnet application just seems to hang if IISRESET is executed. If have to reboot the entire server to get things working again. If I browse to any other standard...
4
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post by:
Hey guys and misters I was wondering if there was a way to write a VB script (file .vbs, WSH scripting) to do such a thing. I am trying to open inetmgr by code, open services.msc by code, and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.