You need to Register for free and Login to post a message in the forum.

Forum

Subject: Having permissions problems with DNN? Try this...
Prev Next
You are not authorized to post a reply.

Author Messages
andyhock
Nuke Pro
Nuke Pro
Posts:84


09 Jul 2007 1:10 PM  
Since so many of us have had these problems in the past, I thought I'd post a helpfule .aspx file that you can run *in the root folder* of your website, to see what the 'identity' of the user needed to run in that folder (and the subfolders).

Copy the code below, and save it into a 'permissions.aspx' file, in the root folder of your website.

So, if your website is at http://localhost/dotnetnuke_2/, and the physical directory for this root folder is C:\websites\dotnetnuke_2\website\, then copy the permissions.aspx file to the C:\...yada folder abvoe, open your browser, and type:

http://localhost/dotnetnuke_2/permissions.aspx

It should display the identity permission needed that is missing to run a webpage in that folder.  You may have to run it more than once.  I can improve this script as I get feedback from it...so let me know how it works out...

Here's the script to copy and save in the permissions.aspx file:

<%@ Page Language="VB" %>
<%@ Import NameSpace = System.Security.Principal %>
<script runat="server">
 
  Sub Page_Load()
    Dim stmp As String = WindowsIdentity.GetCurrent.Name()
 
    LabelPermissions.Text = stmp
  End Sub
</script>

 
    WindowsIdentity.GetCurrent.Name()
 
 
  <form> id="form1" runat="server">
   

      Label
   

  </form>
 




DotNetNuke and .NET web parts, web services, modules and code snippets.
jncraig
Nuke Master I
Nuke Master I
Posts:1996

09 Jul 2007 6:41 PM  
Thank you for this contribution!

Joe Craig
DNN Creative Support
Subscribe to the website
leesykes
Nuke Master II
Nuke Master II
Posts:2959

10 Jul 2007 9:31 AM  
Hi Andy,

I've moved this into the quick tips section, thanks,

Lee

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts
thanig
Nuke Newbie
Nuke Newbie
Posts:1

29 Sep 2007 8:23 PM  
I'm getting the error:

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30451: Name 'LabelPermissions' is not declared.

Source Error:

<PRE>Line 6:      Dim stmp As String = WindowsIdentity.GetCurrent.Name() 
Line 7:    
<FONT color=red>Line 8:      LabelPermissions.Text = stmp 
</FONT>Line 9:    End Sub 
Line 10: </script> </PRE>

Source File: E:\Inetpub\vhosts\stmarysbellevue.com\httpdocs\site\permissions.aspx    Line: 8

what am I doing wrong?
andyhock
Nuke Pro
Nuke Pro
Posts:84


19 Jan 2008 10:55 AM  
Sorry I took so long to respond. I hadn't visited in a while...

I believe the reason you are receiving this error is because you do not have the IIS setting for 'compile ASP pages' set.

Open up IIS. Right click on your default web site. Select Properties. Go to the Home Directory tab. Click 'Enable Parent Paths' checkbox. Also make sure your default language is VBScript. You might also want to enable ASP Script Debugging in the 'Debugging' tab.

Now, I'm not *positive* about this, but I think it will fix the issue...it's definitely something to do w/your settings for ASP...

Hope this helps!


DotNetNuke and .NET web parts, web services, modules and code snippets.
You are not authorized to post a reply.
Forums > DotNetNuke® > Quick Tips > Having permissions problems with DNN? Try this...



ActiveForums 3.7

Latest Forum Posts

RE: style search CSS or XML by mmcinulty
Hi Leei was able to replicate the mouse over affect by using the css, the problem is that i still ha...
RE: News Feed from DNN Blog by aggiedan97
Still no luck with this feed. I can get both of these links to render if pasted in Internet Explore...
RE: Regular restores to local machine by joannew
Hello Lee, Thanks for the info, I tried restarting the application but it had no effect. Is there...
RE: menu in dotnetnuke by leesykes
The page URL option does not have the option to open links in a new window, they will always open in...
RE: Only registered users can access some parts of the module by leesykes
thanks for posting info,
RE: Blog Module on 4.8.4 by leesykes
I just tested the comments in DNN 4.8.4 and blog 3.4.0 and they work ok.Go to the blog list module s...
RE: File Manager Upload (intermittent error) by leesykes
It sounds as though you do not have permission to upload js files using the file manager. To check t...
RE: News Feeds (RSS) module 4.0 ? by leesykes
It works in exactly the same way. Go to 'edit newsfeed' - enter the RSS URL for the newsfeed source ...
RE: style search CSS or XML by leesykes
The CSS code for that skin is:#dnn_dnnSEARCH_txtSearch    { height:16px; position:absolute; top:4px;...
RE: News Feed from DNN Blog by leesykes
Hello,I tested with blog module 3.04.00 and News Feeds 3.01.01It should work, can you display other ...
RE: Query Regarding search fuctionality by leesykes
You can contact venexus direct for any questions regarding their modules,
RE: Query Regarding search fuctionality by kaustav_kar
Thanks for your help. Could you please tell me how to configure it?
RE: Only registered users can access some parts of the module by nukedoubt
Solution Obtained !!!!!!!Follow the steps :To Checked In login mode as registered users or not - Do...
RE: Blog Module on 4.8.4 by bryan_homey
03.04.00 Thanks Bryan
RE: Repository template: YouTube by bryan_homey
Thanks!
RE: File Manager Upload (intermittent error) by dnnmq
banner_rotator.js is only 3KB.  This behavior was reported after we upgraded from 4.3.4 to 4.8.3.Bef...
RE: templates and modules by mmcinulty
Hi Bocheck back to issue 24 for info about page templates.about your other issue with modules login ...
templates and modules by cyborama
Hello Lee and Joe,My first question deals with templates.  I noticed in dotnetnuke apparently you ca...
News Feeds (RSS) module 4.0 ? by wolmar
I had some trouble with the old NewsFeeds module (the one coverd in tutorial) so i figured i'd insta...
style search CSS or XML by mmcinulty
CSS an XMLi was looking back at issue 29 about search styling. there was a skin i seen www.dnnskin.n...
DotNetNuke Modules
RSS Feeds