ISSUE:
Performing step #9 of the AyaNova Data Portal setup where you enter the URL http://localhost:XXXX/AyaNovaDP/DataPortal.rem?wsdl (where XXXX is the port number of the Default Web Site, AyaNovaDP) results in the following message on the web browser:
System.IO.FileLoadException: Access is denied: ‘CSLA.Server.DataPortal’.
File name: “CSLA.Server.DataPortal”
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)
at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark)
at System.Reflection.Assembly.Load(String assemblyString)
at System.Runtime.Remoting.RemotingConfigInfo.LoadType(String typeName, String assemblyName)
at System.Runtime.Remoting.RemotingConfigInfo.GetServerTypeForUri(String URI)
at System.Runtime.Remoting.RemotingConfigHandler.GetServerTypeForUri(String URI)
at System.Runtime.Remoting.RemotingServices.GetServerTypeForUri(String URI)
at System.Runtime.Remoting.Channels.Http.HttpRemotingHandler.CanServiceRequest(HttpContext context)
at System.Runtime.Remoting.Channels.Http.HttpRemotingHandler.InternalProcessRequest(HttpContext context)
=== Pre-bind state information ===
LOG: DisplayName = CSLA.Server.DataPortal
(Partial)
LOG: Appbase = file:///c:/inetpub/wwwroot/AyaNovaDP
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: CSLA.Server.DataPortal
LOG: Attempting download of new URL file:///c:/windows/microsoft.net/framework/v1.1.4322/Temporary ASP.NET Files/ayanovadp/c60daf90/caf9d8c7/CSLA.Server.DataPortal.DLL.
LOG: Attempting download of new URL file:///c:/windows/microsoft.net/framework/v1.1.4322/Temporary ASP.NET Files/ayanovadp/c60daf90/caf9d8c7/CSLA.Server.DataPortal/CSLA.Server.DataPortal.DLL.
LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/AyaNovaDP/bin/CSLA.Server.DataPortal.DLL.
LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file (c:\windows\microsoft.net\framework\v1.1.4322\aspnet.config).
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
LOG: Post-policy reference: CSLA.Server.DataPortal, Version=1.3.0.0, Culture=neutral, PublicKeyToken=df66a8d8e49833d3
SOLUTION:
You need to re-initiate the .NET version by performing the following:
- Select Start -> Run
- Browse to the C:\WINNT\Microsoft.NET\Framework\v1.1.4322\ folder and select aspnet_regiis.exe and than place a -i after it so that in the RUN is shows as
C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -i
3. Select OK which will bring up a DOS window which will run toreinitialize .NET 1.1.4233 again
-
Let it run.
-
When it is finished the DOS window will close itself.
-
Reboot. This won’t work unless you reboot.
-
Log back in physically at the computer and perform step #9 and continue on with the configuration.
.