Developer forum

Forum » Development » Access to restricted URI denied

Access to restricted URI denied


Reply

When I rightclick a item in the navigation (backend) i get this error in the browser Fejl: uncaught exception: [Exception... "Access to restricted URI denied"  code: "1012" nsresult: "0x805303f4 (NS_ERROR_DOM_BAD_URI)"  location: "http://localhost:89/Admin/Menu.aspx?AreaID=0 Line: 1179"]

 

I have googled it and it looks like AJAX cross domain problem.

 

DW version Application(18.16.4.2) and the lated files from download section

 

Anyone who know about this?


Replies

 
Reply
kpe@dkis.dk wrote:

When I rightclick a item in the navigation (backend) i get this error in the browser Fejl: uncaught exception: [Exception... "Access to restricted URI denied"  code: "1012" nsresult: "0x805303f4 (NS_ERROR_DOM_BAD_URI)"  location: "http://localhost:89/Admin/Menu.aspx?AreaID=0 Line: 1179"]

 

I have googled it and it looks like AJAX cross domain problem.

 

DW version Application(18.16.4.2) and the lated files from download section

 

Anyone who know about this?

I found the solution myself, but it is strange if I am the only one who ran into this. DW administration don't work if you access your localhost with port number. f.eks http://localhost:87/

 

That is because cross-domain references are not allowed with AJAX and I think there is some code in dynamicweb AJAX code that can't handle the :87 part..
 

 
Reply

I had the same problem a while back, when trying to debug a solution on my local machine using Visual Studio.

 

Just make sure the solution is running on port 80 and problem goes away.

In visual Studio 2008, you can do that by setting the project property "specific port".

 

To be able to fully debug your solution in Visual Studio, you probably need to make a few other tweaks, but thats another story :)

 

You must be logged in to post in the forum