Login  
Search All Forums
Dart Home | PowerWEB TextBox for ASP.NET | Custom Development Reply | PowerWEB TextBox for ASP.NET Topics | Forums   
AuthorForum: PowerWEB TextBox for ASP.NET
Topic: Error! LiveControls Scripts Not Found....
snichols

From: Tampa, FL USA
Posts: 66
Member Since: 03/14/05
posted January 25, 2006 2:04 AM

"The Web.Config for this application is not properly configured"

I get this error after uninstalling TextBox version 2.1 and installing 3.0. I am just now moving from 2.1 to 3.0.

I've added the HttpHandlers section to my Web.Config, and seem to have everything configured properly.

Where should I look next? I'm stumped. Thanks,

Scott


John Talarico



From: Rome, NY USA
Posts: 630
Member Since: 06/01/05
posted January 25, 2006 9:11 AM

The two pieces of this process are the client-side script reference and the httpHandler registration.

After seeing the error, view the HTML source in the browser. You should see a line of code similar to:

<script language = 'JavaScript' src = 'Dart.PowerWEB.LiveControls.GetResource.aspx?Res=pw_scripts_1.3.0.0.js' type='text/javascript'></script>

This will pull the script resources from the server. The src provided will be handled if the httpHandlers are registered correctly. The following should be present in the system.web section of the web.config.

<httpHandlers>
 <add verb="*" path="Dart.PowerWEB.TextBox.GetResource.aspx" type="Dart.PowerWEB.TextBox.ResourceHttpHandler,Dart.PowerWEB.TextBox" />
 <add verb="*" path="Dart.PowerWEB.LiveControls.GetResource.aspx" type="Dart.PowerWEB.LiveControls.ResourceHttpHandler,Dart.PowerWEB.LiveControls" />
</httpHandlers>

If these are all correct, I suggest trying to create a new project, placing a PowerWEB TextBox onto a web form to see if it runs correctly. At design time, the web.config should automatically be configured.
snichols

From: Tampa, FL USA
Posts: 66
Member Since: 03/14/05
posted January 25, 2006 2:49 PM

Basically this thing works in new projects only. Not in existing projects. Why is this and how do I fix it. I'm not about to delete my entire project of 1 year and start over to get it working. What do I do?


snichols

From: Tampa, FL USA
Posts: 66
Member Since: 03/14/05
posted January 25, 2006 2:51 PM

Oh and I tried the whole <add key="Dart.PowerWEB.TextBox.ResourceDirectory" value="###" /> alternative but it doesnt work. I followed instructions in another thread on here for creating a resource directory and copying the installation dir/common folder there, then copying the scripts into the root of it, and it always tells me that LiveControls scripts are not found.

John Talarico



From: Rome, NY USA
Posts: 630
Member Since: 06/01/05
posted January 25, 2006 3:08 PM

If this is working in new projects but existing projects are not, you should look at the differences between the projects.

Is security configured differently between the projects? Is there something else that may be preventing access to the script resource URL:

Dart.PowerWEB.LiveControls.GetResource.aspx?Res=pw_scripts_1.3.0.0.js
snichols

From: Tampa, FL USA
Posts: 66
Member Since: 03/14/05
posted January 25, 2006 3:20 PM

I've tried every possible method of adding the control to the existing project. There are plenty of differences between this project and new blank ones, however none that I would think would affect performance of the control or the inclusion of the httpHandlers section.

A few differences are:

SQLServer as SessionState Manager
Running three other custom HttpModules
Using a custom Roles Based Security (Forms Authentication mode)


Can you explain to me why the Resource Directory wont work? It will pull the TextBox scripts but it says it can't find the LiveControl scripts. I dont care how I get this thing working, I just need it working.
snichols

From: Tampa, FL USA
Posts: 66
Member Since: 03/14/05
posted January 25, 2006 3:32 PM

I've verified in the source of the editor page that the Res=pw_scripts_1.3.0.0.js strings are all there, so the handlers are working fine.


John Talarico



From: Rome, NY USA
Posts: 630
Member Since: 06/01/05
posted January 25, 2006 3:35 PM

As I mentioned, if something is preventing the browser from accessing the scripts resource (such as security) it will result in the message you are seeing.

If you are employing forms authentication, the request for the script resource may be ocurring outside of this authentication, even if the external file resources are set up.

You may try modifying your web.config to allow anonymous access to the script resource URLs by adding a <location> section for each. See below:

<configuration>
 <system.web>
  <!-- existing web.config nodes -->
 </system.web>

 <location path="Dart.PowerWEB.LiveControls.GetResource.aspx">
  <system.web>
   <authorization>
    <allow users="*"/>
   </authorization>
  </system.web>
 </location>
 <location path="Dart.PowerWEB.TextBox.GetResource.aspx">
  <system.web>
   <authorization>
    <allow users="*"/>
   </authorization>
  </system.web>
 </location>

</configuration>
snichols

From: Tampa, FL USA
Posts: 66
Member Since: 03/14/05
posted January 25, 2006 3:39 PM

I've determined that if i comment-out my other HttpModule specifications in the web.config, the PowerWeb TextBox now works fine.

The problem is that I have a URL Re-writing system in one of the HttpModules. It dynamically serves up almost all of the website pages by examining the requests for files, and then getting the data from the database, formulating the page, and then re-writing the URL to a friendly URL.

Something in there is interfering with your own page-calls.

Man, this part is going to be a real bummer... this HttpModule is massive.

snichols

From: Tampa, FL USA
Posts: 66
Member Since: 03/14/05
posted January 25, 2006 4:03 PM

I've finally fixed the problem. It was actually my client logging HttpModule. There was a missing try/catch in a part of it, and when the editor page would make it's call to the .ASPX file/handler, it would bomb out in my HttpModule and drop the rest of the request.

All fixed..
John Talarico



From: Rome, NY USA
Posts: 630
Member Since: 06/01/05
posted January 25, 2006 5:23 PM

I'm glad you found the problem.
Thanks for letting us know.
bxgcorp.com

From: Boca raton, FL USA
Posts: 3
Member Since: 06/12/09
posted June 12, 2009 12:32 PM

I have the same problem. It works on one Server and I get the error on the other server which has the same Web.config settings. I tried all of the above suggestions. Any Idea?
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted June 15, 2009 11:48 AM

Hi,
For scripts not found error troubleshooting, see:
http://support.dart.com/postings?topicid=7685

Perhaps the second server uses IIS7?
If so, take note of item #6.
-ken

------
-Non-current subscribers must contact sales@dart.com to update subscription and receive continued support as needed.
------

bxgcorp.com

From: Boca raton, FL USA
Posts: 3
Member Since: 06/12/09
posted June 15, 2009 3:49 PM

Yes, the other server uses IIS7.

What entries go in <System.Webserver> for the PowerWeBText?

Thanks.
bxgcorp.com

From: Boca raton, FL USA
Posts: 3
Member Since: 06/12/09
posted June 17, 2009 11:15 AM

A little info on the two servers (server A and server B). They are both IIS7 on load balancers and on DFS. So all the files are exactly the same. 

If we modify web.config to use system.web <httpHandlers>, server A will run the TextBox fine but server B will give us the script error. However, if we modify web.config to use system.webserver <handlers>, server A will now give us a script error BUT server B will run TextBox just fine.

If we have <httpHandlers> and <handlers>, only server B will run fine. Server A will error.

Any ideas?


<system.web>
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
<add verb="*" path="Dart.PowerWEB.TextBox.GetResource.aspx" type="Dart.PowerWEB.TextBox.ResourceHttpHandler,Dart.PowerWEB.TextBox "/>
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</httpModules>

</system.web>
<system.webServer>
<handlers>
<add name="PowerWebText" verb="*" path="Dart.PowerWEB.TextBox.GetResource.aspx" type="Dart.PowerWEB.TextBox.ResourceHttpHandler,Dart.PowerWEB.TextBox"/>
</handlers>
</system.webServer>
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted June 18, 2009 12:48 PM

Hi,
Here is my web.config.
It contains entries in both system.web and system.webserver, and still works.
Note that this example is for TextBox versions prior to 3.2.
-ken


 <system.web>
...
  <httpHandlers>
   <add verb="*" path="Dart.PowerWEB.TextBox.GetResource.aspx" type="Dart.PowerWEB.TextBox.ResourceHttpHandler,Dart.PowerWEB.TextBox" />
  </httpHandlers>
  <httpModules>
   <add name="CallbackManager" type="Dart.PowerWEB.TextBox.CallbackManager,Dart.PowerWEB.TextBox" />
  </httpModules>
 </system.web>
  <system.webServer>
    <modules>
      <add name="CallbackManager" type="Dart.PowerWEB.TextBox.CallbackManager,Dart.PowerWEB.TextBox" preCondition="managedHandler" />
    </modules>
    <handlers>
      <add name="Dart.PowerWEB.TextBox.GetResource.aspx_*" path="Dart.PowerWEB.TextBox.GetResource.aspx" verb="*" type="Dart.PowerWEB.TextBox.ResourceHttpHandler,Dart.PowerWEB.TextBox" preCondition="integratedMode,runtimeVersionv2.0" />
    </handlers>
    <validation validateIntegratedModeConfiguration="false" />
  </system.webServer>

------
-Non-current subscribers must contact sales@dart.com to update subscription and receive continued support as needed.
------

Reply | PowerWEB TextBox for ASP.NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX