Wednesday, March 21, 2012

Atlas Project wont work on Server

I've searched and found where people have had similar problems, but there doesn't seem to be any viable solution posted (that I can find anyway!), so I'd appreciate any suggestions. Here's my scenario:

Created an atlas app locally after I installed Atlas using the Atlas template. When I went to deploy it to a test server using Windows 2003, it doesn't recognize any of the atlas. Here's what I did to troubleshoot: Made sure the project was in ASP.NET 2.0. I downloaded and installed Atlas on the Windows 2003 server instead of just copying it into the bin and registering the extensions. It gives an error of:

Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
on any of the atlas tags.

I also tried creating a new Atlas site directly on the server instead of just copying my local existing project onto the server just to see if it had to be created directly on the server, but same result. I need to get this running for a deadline and it's driving me crazy, so any help would be greatly appreciated!

John

Can you explain to me a little bit about what this atlas application does - what function does it do, when it executes, what does it do? Are there other web applications running on this server - do they have any of these problems?

Also, can you post the entire stack trace as opposed to just the error summary?


Glad to explain if possible. This app is basically just using Atlas to call webservices which connect into a SQL Server connection and produce results on demand in order to reproduce some Excel-like qualities over the intranet without having to post-back the whole page. Like I said, it works locally, but when I went to transfer it to our W2003 server, it basically bombs. I just recreated the site and am adding bit by bit items to find out where exactly it was failing. It seems like when I try to add a Web Reference referencing the web services in the project, it bombs. Here's the exact trace for that error, which hopefully will help you help me! I read this: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=139935&SiteID=1 which talks about using a unc (which I'm using to get to the site to modify it), but I'm unclear as to how to approach from that angle. This thing is really got me at a standstill, so I really appreciate your feedback!

Server Error in '/LogWeb' Application.

Configuration 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. (\\romdev\c$\Inetpub\wwwroot\LogWeb\web.config line 41)

Source Error:

Line 39: </httpHandlers>Line 40: <httpModules>Line 41: <add name="ScriptModule" type="Microsoft.Web.Services.ScriptModule"/>Line 42: </httpModules>Line 43: <!--


Source File:\\romdev\c$\Inetpub\wwwroot\LogWeb\web.config Line:41


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42


What form of authentication are you using to log into the site? Is it using Kerberos?

Ben,

Windows Authentication

I successfully registered the web services by changing the url to the new location. I'm still getting the atlas errors, though. On every page that has this in the header:

<

atlas:ScriptManagerrunat="server"ID="scriptManager"><services><atlas:ServiceReferencepath="MARSService.asmx"type="text/javascript"/></services></atlas:ScriptManager>

I get this error:

Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Thanks for helping me debug this mess...



Do I correctly observe a shared drive in your webroot path?

Does something like this help:http://support.microsoft.com/?id=320268.

Or this:http://www.codecomments.com/archive320-2005-12-712682.html


Yessir, you did. I tried making it a fully trusted share, but, alas, to no avail. Same messages when I try to build the project. What I don't understand is the Atlas.dll was installed on the server, so why is it having a problem with accessing that dll before the project was copied over into the new virtual directory? I guess maybe my next option is look at the IIS settings?

Thanks,

John

No comments:

Post a Comment