Suddenly can't load assembly

J

jhcorey

I am using VS2005, and yesterday I copied a web site from my
development machine to
a Windows 2003 server, and the web site worked fine.
Today I made a few changes on my machine, and tried to repeat the
process,
but I get an error message:
Could not load file or assembly 'BaseRS' or one of its dependencies.
Access is denied

BaseRS.dll is in the bin folder, as it was previously.

Any ideas about what causes this message?
 
J

Juan T. Llibre

What were the "few changes" you made ?

Anything to do with file permissions or the ASP.NET account ?
Did you enable impersonation and now a different account needs permissions ?
 
G

Guest

Did you try IISReset before doing the deployment.

If not, you may like to do that. Also, clear all your Temporary Asp.net
files from the folder C:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary
ASP.NET Files
before you deploy the application.

If that doesn't help you can try Filemon utility from www.sysinternals.com
and serch for access denied after you reproduce the error and save the log
file from the Filemon utility.

HTH
 
J

jhcorey

The app does use impersonation, and that may have been a change in the
web.config.
(Although it uses anonymous access, and yes there was a reason for this
that made sense at one point).
I can experiment without impersonation and see if that makes a
difference. What would I do if it does?

I'm not familiar with any new deployment procedures, so I figure I
better take a look in help.

But I assumed that copying the folders would work for deployment, as it
did in ASP.NET 1.

Anyway, I'll try Rahul's suggestions as well, thanks.
 
J

Juan T. Llibre

re:
I can experiment without impersonation and see if that
makes a difference. What would I do if it does?

Run this aspx page :

identity.aspx :
--------------
<%@ Page Language="VB" %>
<script runat="server">
Sub Page_Load(obj as object, e as eventargs)
Dim user as string = Environment.Username
lblUser.Text = user
End Sub
</script>
<html>
<body>
<asp:Label id="lblUser" runat="server"/></asp:Label>
</body>
</html>
 
J

jhcorey

Juan,

Impersonation was indeed the issue. The impersonation user id is from
a different domain.
For some reason this did not cause a problem on my development machine.

I'm not sure if I should address this within the folder system or
within IIS6.

I tried changing the security on the folder (it already had 'Everyone'
with full control)
to give explicit access to this userid, but it didn't help.

Thanks,
Jim
 
J

jhcorey

Finally got this working (I think)
After quite a bit more playing around with security for impersonated
user,
I googled some more and saw that I had to grant permissions (full
control) on

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files

and so I'm running...

Jim
 

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top