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
DNN Creative Magazine Subscriber
Nuke Pro
Nuke Pro
Posts:86


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
DNN Creative Staff
Nuke Master II
Nuke Master II
Posts:2357


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

Joe Craig
DNN Creative Support
Subscribe to the website
leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3351

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

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
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
DNN Creative Magazine Subscriber
Nuke Pro
Nuke Pro
Posts:86


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

Yahoo Answers by cdtguru
Hey, i was wondering if anyone knew of a module that would create a similar system to Yahoo Answers...
(catalook) Itempane changes on product pages ?? by Gaz35
Hi , hi , I don’t know if you can help me , here is the site in question http...
RE: Virtual Pc 2007 help by jeff@zina.com
You need to get the Virtual PC's network set up.  Might check the Virtual PC news group: http://www...
DNNCreative Just Keeps Getting Better by jeff@zina.com
Kudos on issue 39, the article on importing large quantities of data was both timely for me and spot...
RE: Videos by clippy
Hello from France My question is about the videos for beginners, and specially n° 3; I'm working...
skinning trouble by derpir
HelloI have uploaded a skin to my DNN-website, but I want to make som changes. I have made some chan...
RE: Column width in UDT by VickySwift
In case anyone else is looking for the answer to this, I have been able to add the headers back in b...
RE: search not working by jncraig
Did you either reindex the site to turn on the scheduled task to do it?
RE: Template Issue by jncraig
No, you need to install your custom modules before you use the template.
RE: error message in registration page by jncraig
I'm not sure that you can avoid them, short of rewriting the module.You might want to investigate Dy...
Template Issue by Bobbyjosephg
Hi,   Today I have come up with a problem with templates.I was successful in exporting a template an...
RE: search not working by sanju_k1421
I checked     host==>admin search  page   that is set both limits min //max  page     still i m n...
RE: error message in registration page by coder247
but how do I avoid the error messages provided by default in dnn?
RE: Style sheet does nothing by andorz
Oh. I was told to do that in my thread at the dotnetnuke.com forum. http://www.dotnetnuke.com/Commun...
RE: Videos by clippy
Thank you to answer so quickly. It's really kind from you. I appreciate
RE: Simple subscribe newsletter module by jncraig
I seem to recall that DataSprings has an "Opt In" module. I haven't used it, though.
RE: Videos by jncraig
No, you can view them in any order.
RE: Skim Question by tlsadler
Wow! Went to Snowcovered and the 50% off Promo more then paid for itself. I actually wound up buying...
Videos by clippy
Hello from FranceJust a little questionIs there any order to respect to look the videos ("issues"). ...
RE: Skim Question by tlsadler
Thank you very much. I've followed many of your posts and will check it out. I had thought about get...
AppTheory
RSS Feeds