Showing posts with label dll. Show all posts
Showing posts with label dll. Show all posts

Monday, March 26, 2012

My .asbx Bridge keeps giving me 404 Page Cannot Be Found

I downloaded the atlas.dll, the toolkit, and the samples. I am trying to run the Gadgets sample. If I run it locally and register the .asbx with the server (again, all locally) this works fine. if I upload the same set of files to my host I get:

GEThttp://www.mysite.com/
200 OK

GEThttp://www.mysite.com/rssgadget.css
200 OK

GEThttp://www.mysite.com/images/rss.jpg
200 OK

GEThttp://www.mysite.com/images/refresh.jpg
200 OK

GEThttp://www.mysite.com/rssgadget_wt.js
200 OK

GEThttp://www.mysite.com/aspnetforums.asbx?mn=Get&feedURL=http%3A%2F%2Fforums.asp.net%2Frss.aspx%3FForumID%3D1007
404 Not Found

I keep getting page not found. My web.config has the bridgemodule for tunneling:

<httpModules>
<add name="ScriptModule" type="Microsoft.Web.Services.ScriptModule"/>
<add name="BridgeModule" type="Microsoft.Web.Services.BridgeModule"/>
<add name="WebResourceCompression" type="Microsoft.Web.Services.WebResourceCompressionModule"/>
</httpModules>

It just never finds it. I used fiddler. It just show the 404 error. In fact, that snapshot above is from fiddler.

Thank you for any help. Is it too much to as the host to register .asbx files? Is that a security risk? Thank you.

I have tried everything here:

http://atlas.asp.net/docs/atlas/doc/bridge/tunnel.aspx

including the scriptmanager adjustment at the bottom of the page. All the results. Thanks again.

If the asbx isn't registered on the host, you aren't accessing the bridge url properly, you should be hitting

GEThttp://www.mysite.com/aspnetforumsBridge.axd?mn=Get&feedURL=http%3A%2F%2Fforums.asp.net%2Frss.aspx%3FForumID%3D1007

Basically replace .asbx with Bridge.axd

Hope that helps,
-Hao

Saturday, March 24, 2012

Namespace Help Please (Custom Composite Control/Extenders Project)

Ugh! Okay, so here's the situation. I have 2 custom extenders and a compsite control in a dll project. What is the best way to organize the files? I want to be able to access the extenders from any asp page as well.


The extenders are: DropZoneExtender and DragItemExtender
The control is: DragDropRepeater

Here's the file structure I have for the project ..

My problem is that while there are no immediate namespace issues, when the page is loaded I get the familiar "Assertion Failed: Unrecognized tag dropzone:DropZoneBehavior" popup.

Here's what the code looks like:

// DropZoneBehavior.js

Type.registerNamespace('DropZone');
DropZone.DropZoneBehavior = function() {
DropZone.DropZoneBehavior.initializeBase(this);
...
// code
..
}
DropZone.DropZoneBehavior.registerSealedClass('DropZone.DropZoneBehavior', AtlasControlToolkit.BehaviorBase, Sys.UI.IDropTarget);
Sys.TypeDescriptor.addType('DropZone', 'DropZoneBehavior', DropZone.DropZoneBehavior);

 
// DropZoneExtender.cs#region Assembly Resource Attribute[assembly: System.Web.UI.WebResource("DragDropRepeater.DropZone.DropZoneBehavior.js","text/javascript")]
#endregion
namespace DropZone
{
[ClientScriptResource("DropZone","DropZoneBehavior","DragDropRepeater.DropZone.DropZoneBehavior.js")]
[RequiredScript(FrameworkScript.AtlasUIDragDrop)]
public class DropZoneExtender : ExtenderControlBase
{
}
}
Anyone have any suggestions?

Hey,

I tried to fin the post, but no luck. Look for Case - Sensitive on the Atlas lists. The last Atlas Update made changes for Safari, and for some reason it needs the Namespace lowercase.

here is the current Script namespace. Now lowercase.

Sys.UI.DraggableListItem.registerSealedClass('Sys.UI.DraggableListItem', Sys.UI.Behavior);
Sys.TypeDescriptor.addType('script', 'draggableListItem', Sys.UI.DraggableListItem);

So change your:

DropZone.DropZoneBehavior.registerSealedClass('DropZone.DropZoneBehavior', AtlasControlToolkit.BehaviorBase, Sys.UI.IDropTarget);
Sys.TypeDescriptor.addType('dropzone', 'DropZoneBehavior', DropZone.DropZoneBehavior);

also change your

[ClientScriptResource("dropzone", "DropZoneBehavior", "DragDropRepeater.DropZone.DropZoneBehavior.js")]

Here is the link!!!

http://forums.asp.net/thread/1276996.aspx

Good luck.

Eric Wild


I figured it out, and actually its a little more complicated. I'm considering making a blog post about it.

Oh and lol .. remember, when you are creating the extenders from scratch .. make sure you mark the javascript files as an embedded resource. *smacks forehead* I used the example of the ReorderList, which is essentially what I'm creating where its based on the non-list versions of the dragdropUI and where reordering is not important, just the dragdrop.

Wednesday, March 21, 2012

Need Microsoft.Web.Extensions.Design.dll

When installing the Ajax Control Toolkit 2.0 on my machine (using VWD 2005 Express), I get the known error concerning the dll above. Unfortunately, I don't have VS on my machine, and my developer friends have looked on theirs and can't find the dll.

Is there any way that somebody could post this dll or email it?


You need to install the core bits

http://ajax.asp.net/default.aspx?tabid=47

Follow Steps 1 and 2

The resulting files will be located here Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025

But you won't have to do much - just try the re-install after steps 1 and 2 are done/.


Visual Web Developer is enough to get you the Design DLL. More info here:http://forums.asp.net/thread/1458971.aspx