Forum Moderators: open

Message Too Old, No Replies

Can't ReBuild Site

         

andrewsmd

4:04 pm on Jun 22, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Everytime I try to rebuild a currently compiled site I get this error.
Error197Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.\\intewebdev01\websites\example\partsonline.example.com\www\MasterPage.Master80

I can tell you that the source code is on a shared folder on another server and I am accessing it from my development machine. Also, the sql server it connects to is a different machine than the iis server where these files are located. Does anyone have any suggestions? Thanks,

[edited by: encyclo at 12:25 pm (utc) on June 23, 2009]
[edit reason] exemplified file-path reference [/edit]

marcel

6:45 pm on Jun 22, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This should help:
[weblogs.asp.net...]

andrewsmd

7:20 pm on Jun 22, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I did that but recieve the same error. I think that it has something to do with these extra modules that the developer before me is using from a company called telerik. Here is my exact error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. (\\machine\websites\www\web.config line 48)

Source Error:

Line 46: <httpModules>
Line 47: <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
Line 48: <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI"/>
Line 49: </httpModules>
Line 50: <customErrors mode="Off"/>

Source File: \\machine\websites\www\web.config Line: 48

Any other ideas?

Ocean10000

7:45 pm on Jun 22, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



The following command line on the server and see if it clears the error out.
caspol.exe -m -ag 1 -url "file:////\\server\sharename\*" FullTrust -exclusive on

andrewsmd

7:55 pm on Jun 22, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Already tried the caspol command but thanks for the suggestion. I'm out of ideas on this. I have been researching it for two days now.

marcel

8:09 pm on Jun 22, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Can you build it when the source files are on your local development machine?

Have you tried the Telerik Support Forums [telerik.com]? They're usually pretty quick with a reply.

andrewsmd

9:02 pm on Jun 22, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I ended up just moving everything to my local machine so I could get some development done.

Ocean10000

9:11 pm on Jun 22, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Is the server a 64 bit or 32 bit machine? If it is 64 bit, there are two different run times one for each version 64 and 32. By default it will run the 64 bit version. The question that comes to mind did you run the proper version of caspol.exe.

andrewsmd

9:17 pm on Jun 22, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



32 bit server, would it error if I ran the wrong version?

Ocean10000

4:26 am on Jul 1, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



No it would not error. It would just set the 64 bit version is all.