Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Deployment


Message #1 by "Bob Piric" <bpiric@l...> on Fri, 9 Aug 2002 19:14:03
Hi everybody,

Here is my problem. After finishing development of application I 
created .exe file and everything went OK. However after some time we 
decided that it would be nice to put source files on separate machine 
(then the one hosting IIS). So we set Default Web Site properties for home 
directory to ?A Share located on another computer? So after running .exe 
file all source code was in shared directory on machine other then one 
hosting IIS. When we try to run application we get .htm files but .aspx 
ones we cannot. The error that we are getting is:

Description: The application attempted to perform an operation not allowed 
by the security policy. To grant this application the required permission 
please contact your system administrator or change the application's trust 
level in the configuration file. 

Exception Details: System.Security.SecurityException: Security error.

Source Error: 

Line 36:         
Line 37:         Public Sub New()
Line 38:             MyBase.New
Line 39:             If (ASP.Global_asax.__intialized = false) Then
Line 40:                 ASP.Global_asax.__intialized = true

Any ideas?
Thanks all,

Bob Piric
Programmer/analyst
Threshold Electronics Ltd.
bpiric@l...
Message #2 by "Ani" <anirose_US@y...> on Tue, 13 Aug 2002 21:42:47
hey ...
do u have permission to run the installer to the webserver? we did exactly 
what you did about the source codes but we have no problem and we just 
install the ASPx files not CS files at all . I think you should review the 
deployment process again.

http://msdn.microsoft.com/library/default.asp?url=/library/en-
us/vsintro7/html/vbtskDeployingWebSolution.asp

Rosie






> Hi everybody,

> Here is my problem. After finishing development of application I 
c> reated .exe file and everything went OK. However after some time we 
d> ecided that it would be nice to put source files on separate machine 
(> then the one hosting IIS). So we set Default Web Site properties for 
home 
d> irectory to ?A Share located on another computer? So after running .exe 
f> ile all source code was in shared directory on machine other then one 
h> osting IIS. When we try to run application we get .htm files but .aspx 
o> nes we cannot. The error that we are getting is:

> Description: The application attempted to perform an operation not 
allowed 
b> y the security policy. To grant this application the required 
permission 
p> lease contact your system administrator or change the application's 
trust 
l> evel in the configuration file. 

> Exception Details: System.Security.SecurityException: Security error.

> Source Error: 

> Line 36:         
L> ine 37:         Public Sub New()
L> ine 38:             MyBase.New
L> ine 39:             If (ASP.Global_asax.__intialized = false) Then
L> ine 40:                 ASP.Global_asax.__intialized = true

> Any ideas?
T> hanks all,

> Bob Piric
P> rogrammer/analyst
T> hreshold Electronics Ltd.
b> piric@l...

  Return to Index