I have a ASP .net 2.0 application running on IIS 6.0. I installed the application on my new laptop. When i run the application (either through the VS 2008 in debug) or through browser. I get the error message " Server Unavailable".
This application run fine on other machines. This is the firs time i am running this app on my machine. The Event log has the following error message
Failed to initialize the AppDomain:/LM/W3SVC/1/Root
/applicati
onname here
Exception: System.IO.FileLoadExceptio
n
Message: Could not load file or assembly 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d
50a3a' or one of its dependencies. Access is denied.
StackTrace: at System.Reflection.Assembly
._nLoad(As
semblyName
fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly
.nLoad(Ass
emblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly
.InternalL
oad(Assemb
lyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly
.InternalL
oad(String
assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Activator.CreateIns
tance(Stri
ng assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark)
at System.Activator.CreateIns
tance(Stri
ng assemblyName, String typeName)
at System.AppDomain.CreateIns
tance(Stri
ng assemblyName, String typeName)
at System.AppDomain.CreateIns
tance(Stri
ng assemblyName, String typeName)
at System.Web.Hosting.Applica
tionManage
r.CreateAp
pDomainWit
hHostingEn
vironment(
String appId, IApplicationHost appHost, HostingEnvironmentParamete
rs hostingParameters)
at System.Web.Hosting.Applica
tionManage
r.CreateAp
pDomainWit
hHostingEn
vironmentA
ndReportEr
rors(Strin
g appId, IApplicationHost appHost, HostingEnvironmentParamete
rs hostingParameters)
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
I reinstalled the IIS 6.0 and rechecked the IIS config few times and compared my IIS setting with other machines. there is no problem there.
Can anybody tell me what exactly the error message is all about - why 'System.IO.FileLoadExcepti
on' and
Access Denied. This is Urgent issue, need to fix it ASAP. Please help.