Using AJAX Issue

Hi Everyone.

We have an Web Application that is located on a shared folder on a Server in our network.  2 developers are accessing the same application and they  both have the same computer, the same installation evereything is the same.  The problem is that on one of the computers AJAX control Toolkit does not work at all.  Every time that we try to use it, we get this error message :

Server Error in '/Sarde' Application.

Security Exception

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: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
   System.Reflection.Assembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase) +0
   System.Web.UI.NamespaceTagNameToTypeMapper.System.Web.UI.ITagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs) +78
   System.Web.UI.TagPrefixTagNameToTypeMapper.System.Web.UI.ITagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs) +119
   System.Web.UI.MainTagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs, Boolean fAllowHtmlTags) +306
   System.Web.UI.RootBuilder.GetChildControlType(String tagName, IDictionary attribs) +19
   System.Web.UI.ControlBuilder.CreateChildBuilder(String filter, String tagName, IDictionary attribs, TemplateParser parser, ControlBuilder parentBuilder, String id, Int32 line, VirtualPath virtualPath, Type& childType, Boolean defaultProperty) +309
   System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String inputText) +468
   System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) +991


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

 

On other Forums they talk about the trust level on the Web.config and other stuff that did not work to solve this problem. 

I really appreciate any lights on this problem.  (we are new on this so please do not use any "matrix" language (LOL)

Thanks.

 

 

0
TonyDelgado 5/25/2007 8:51:14 PM
📁 asp.net.ajax_control_toolkit
📃 17816 articles.
⭐ 4 followers.

💬 9 Replies
👁️‍🗨️ 94 Views

Do you have ASP.NET AJAX 1.0 installed? It must also be installed before you can use the AJAX Control Toolkit.



SilverlightDesktop.net

A framework that allows you to dynamically load Silverlight modules into resizable draggable windows.
0
adefwebserver 5/26/2007 4:26:15 PM

Well I don't have it.  But the Other PC does not have it either.

But, Today I try to start a new Web Application Local on my computer and it did worked.  I mean I could use all the Ajax controls and no error message appear.

I took that same working application and make a copy on the shared directory on the server and then the error message appears again, only when I run it.

Wicked, ah ?

0
TonyDelgado 5/26/2007 4:36:00 PM

This is the error that appears on the error List when I open an Ajax enabled web form on the Web Application that lives on the shared volume on our server.  If I copy this app to my Hard Drive and open it, this error dissappears. 

 

Error 1 Element 'ScriptManager' is not a known element. This can occur if there is a compilation error in the Web site. Y:\Sarde\Default2.aspx 6 10 Y:\Sarde\

 

 Tony

0
TonyDelgado 5/26/2007 4:44:25 PM

Hmm AJAX works even though you don't have it installed?

I think if you compare the web.config file of the computer it works on to the web.config file of the one it doesn't you will find that the one it works on has entries such as;

 

  <configSections>
    <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
      <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
          <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
        <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
          <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere" />
          <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" />
          <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" />
        </sectionGroup>
      </sectionGroup>
    </sectionGroup>
  </configSections>
 

SilverlightDesktop.net

A framework that allows you to dynamically load Silverlight modules into resizable draggable windows.
0
adefwebserver 5/26/2007 5:50:59 PM

I have tha configuration setup in my config file and it still does not work.

I am using Web Developer 2005 and I removed Atlas and Installed AJAX 1.0 followed by the tool kit.

Any ideas?

0
wormbyte 5/27/2007 1:01:30 PM

Let me Explain the issue again with the current situation :

1. I Format my PC with a Clean Windows XP OS.

2. I install Dot Net FrameWork 1.1, and 2.0 (just in case)

3. Install Visual Web Developer Express -

4. Install ASP .NET 2.0 AJAX Extensions 1.0

5. Open Visual Web Developer and Open the Application that it is located on a Shared Volume on a Server.  That application has his own web.config File, that is the same that the other computer with the same basic settings is using.

6. I open a web Form that has a)Script Manager, a simple Panel Object and a AJAX:RoundedCornersExtender control and all the keywords on the Source code of that form show with the red underline and the intelisense does not work.  On the error List below I can see a lot of errors like the one I wrote before and If i dare try to run it just to see how it looks I cant because of the First error that I describe.

I am going Nuts with this my Friend, I even try to install Dot NET 3 and ORCAS (just for fun) and still not working.  My nex step will be Clone the other computer Hard Drive - but this I don't like because I need to know why is this happening.

Check out this and let me know if you can find any thing wrong here.

 

Tony

0
TonyDelgado 5/28/2007 1:42:17 PM

All those steps are fine. However Rounded Corners are part of ASP.NET AJAX Control Toolkit (AjaxControlToolkit.zip) install that and deploy it according to the directions (the AjaxControlToolkit.dll needs to be place din the /bin directory of your application). and it should now work.



SilverlightDesktop.net

A framework that allows you to dynamically load Silverlight modules into resizable draggable windows.
0
adefwebserver 5/28/2007 2:03:05 PM

All those steps are fine. However Rounded Corners are part of the ASP.NET AJAX Control Toolkit (AjaxControlToolkit.zip). Install that and deploy it according to the directions (the "AjaxControlToolkit.dll" assembly needs to be placed in te /bin directory of your application).



SilverlightDesktop.net

A framework that allows you to dynamically load Silverlight modules into resizable draggable windows.
0
adefwebserver 5/28/2007 2:07:12 PM

is already Done.

Still, does not Work.

Perhaps a Hammer will end with the problem.

0
TonyDelgado 5/28/2007 2:15:21 PM
Reply: