Quick Nav:  Online Store   |   Login | Register

Virtual Paths help needed

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
Philipp Becker
<50 Posts
Posts:21


08/05/2008 2:13 PM  

I can't figure out myself how to set this up. I need a bunch of permanent virtual paths that map to a download file in a file repository.

E.g. I want the URL

http://domain.com/Documents/Document1

point to

http://domain.com/default.aspx?tabid=149&EntryId=1231&Command=Core_Download&Method=attachment

I enabled the static file handler (with what extension though?) and added a wildcard mapping to iis. What would be my next steps? Obviously I can't add a virtual path to the tab as I have quite a lot of permantent links, all mapping to same tab.

So I went adding rules manually in the ResourceLocationtable:

<resourceLocationItem
virtual-path
="http://dnn.tmf-ev.de/dokumente/dmxdatei"
url="/default.aspx?tabid=149&EntryId=1231&Command=Core_Download&Method=attachment"/>

Still I only get a 404 when going to my link. Any idea what's happening there?

Philipp Becker
<50 Posts
Posts:21


08/06/2008 7:40 AM  
No idea? This virtual path thing was the reason, we went for PageBlaster. I really need to get this to work... Thanks.
John Mitchell
Posts:3471


08/06/2008 8:15 AM  
Hi Philipp,
You won't have any extension with that kind of Url, the wildcard mapping is what will "catch" it.

You can update the ResourceLocationTable.Config file directly if you need to add more mappings to the same tab.
Philipp Becker
<50 Posts
Posts:21


08/06/2008 8:50 AM  
Sure,

it dooes not work though. I was hoping that you might have a step by step list what and where to set this up. Do you think this is all I need?

- enable the static file handler, remove all extensions from the list in the handler
- add rule ResourceLocationtable as outlined above
- enable the wildcard mapping in iis

nothing to set up in the main config or so?
John Mitchell
Posts:3471


08/06/2008 9:47 AM  
You don't really want to remove all the extensions from the list in the httpHandlers section of the web.config unless you do not want PageBlaster to handle those extensions.
Those extensions don't come into play on the Virtual Path Rewrites though.

If the wild-card mapping is setup in IIS then the request will be routed through PageBlaster.
If the request matches a virtual-path in the ResourceLocationTable.config file, then it will be rewritten to the url for that resource item.

Are you still getting a 404 error?
You may be able to get more information about what is happening by turning on tracing for PageBlaster.
Set level="Debug" for the trace node in the Snapsis.PageBlaster.config file.

I can take a look directly if you want to contact me with login information through a private message.
John Mitchell
Posts:3471


08/06/2008 9:52 AM  
Sorry, I didn't see that original part where you had already started updating the ResourceLocationTable.config file directly until I reformatted the post just now.

I think maybe all you need to do is remove the domain name part from the virtual-path.
virtual-path="/dokumente/dmxdatei"
Philipp Becker
<50 Posts
Posts:21


08/06/2008 11:44 AM  
ok, I'll give that a try later on
Philipp Becker
<50 Posts
Posts:21


08/06/2008 2:36 PM  
Nope that did not help. Also I noticed - and that's even worse - that I cannot any of my childportals in the same installation anymore as long as pageblaster is enabled in the web.config
Philipp Becker
<50 Posts
Posts:21


08/06/2008 2:50 PM  

If that is of any help, here's my debug trace. Two issues with that:

1) Only calls to one of the child portals are in this log, in the browser a 404 is being returned for those portals

2) A call to my virtual path is nowhere in the trace, it seems as if that request is not even being forwarded to the static file handler?


Attachment: 186501535771.txt

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
Forums >Snapsis Product Support >PageBlaster > Virtual Paths help needed



ActiveForums 3.7
Powered by: Snapsis Software