Help: ASP.Net Application *.dll Update Error

H

hb

Hi,

In my ASP.Net application 'MyWebApp' , the mode="StateServer" in
<sessionState>
of Web.config file, and the ASP.NET State Service is set to start
automatically on the
server. But every time when I update the application's MyWebApp.dll file in
\bin folder
by simply uploading a new MyWebApp.dll file to override the old one in the
same folder,
the user who is using the web application will get the following error
during the uploading
process:
==
Configuration Error

Description: An error occurred during the processing of a configuration file
required to service
this request. Please review the specific error detail below and modify your
configuration file
appropriately.

Parser Error Message: Can not access file 'MyWebApp' because it is being
used by another process.
==

Once the file uploading finished, the application 'MyWebApp' starts working
properly.

This is really annoying. Would you please give me some way to fix this
problem?

Thank you.

hb
 
R

Rutger Smit

hb said:
Hi,

In my ASP.Net application 'MyWebApp' , the mode="StateServer" in
<sessionState>
of Web.config file, and the ASP.NET State Service is set to start
automatically on the
server. But every time when I update the application's MyWebApp.dll file in
\bin folder
by simply uploading a new MyWebApp.dll file to override the old one in the
same folder,
the user who is using the web application will get the following error
during the uploading
process:
==
Configuration Error

Description: An error occurred during the processing of a configuration file
required to service
this request. Please review the specific error detail below and modify your
configuration file
appropriately.

Parser Error Message: Can not access file 'MyWebApp' because it is being
used by another process.
==

Once the file uploading finished, the application 'MyWebApp' starts working
properly.

This is really annoying. Would you please give me some way to fix this
problem?

Thank you.

hb



I think it's the Indexing Service.
Just deny the indexing service to index .dll files and you're done (I hope).

--

//Rutger

DoDotNet@KICKTHIS_Gmail.com
www.RutgerSmit.com
 
H

hb

Hi, Rutger,

Thank you for the help.

I just checked the services setting on the server. I noticed that
the "Indexing Service" is disabled. Could it be something else
that causes such error?

Thank you

hb
 
G

Girish bharadwaj

It almost feels like there is a problem in ASP.NET's shadow copy behavior.
You might want to make sure that you have enough space on the server. Are
there any errors logged in the Event logs?
 
H

hb

Hi, Girish,

Thank you for the help!

I just checked the event log on the server. There are no errors there.
And there is plenty space on the server.

I talked with someone from Microsoft before regarding this error.
He said that if the mode="StateServer" in <sessionState> in the
Web.config file, and the ASP.NET State Service is set to start
automatically, .Net should prevent such error to happen which
means that user should not be affected while updating the application's
*.dll file in the \bin folder.

But I don't know why the error still occurs every time when I update the
dll file. Is it a bug?

hb
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top