Jump to content

Recommended Posts

Posted

Right then, first things first HAP+ looks incredible. I come across it the other day and showed my line manager who loved it. Its the only thing on my mind at the moment (sad I know)

 

First my situation Win 2k3 vanilla domain, IIS 6 installing on a member server (our web/print server) I have followed the pdf documentation and videos to the best of my ability and added the HAP install within our moodle install. all settings look correct (to me :confused: )

 

When I go to the hap install I get the below.

 

Server Error in '/Extranet' Application.
--------------------------------------------------------------------------------

A referral was returned from the server.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.DirectoryServices.DirectoryServicesCOMException: A referral was returned from the server.


Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace: 


[DirectoryServicesCOMException (0x8007202b): A referral was returned from the server.
]
  System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) +420085
  System.DirectoryServices.DirectoryEntry.Bind() +36
  System.DirectoryServices.DirectoryEntry.get_AdsObject() +31
  System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne) +78
  System.DirectoryServices.DirectorySearcher.FindAll() +9
  HAP.AD.ActiveDirectoryHelper.getUser(DirectoryEntry root, String userName) +153
  HAP.AD.ActiveDirectoryHelper.GetRolesForUser(DirectoryEntry root, String username) +35
  HAP.AD.ActiveDirectoryRoleProvider.GetRolesForUser(String username) +10
  System.Web.Security.RolePrincipal.IsInRole(String role) +182
  System.Web.Configuration.AuthorizationRule.IsTheUserInAnyRole(StringCollection roles, IPrincipal principal) +132
  System.Web.Configuration.AuthorizationRule.IsUserAllowed(IPrincipal user, String verb) +256
  System.Web.Configuration.AuthorizationRuleCollection.IsUserAllowed(IPrincipal user, String verb) +201
  System.Web.Security.UrlAuthorizationModule.OnEnter(Object source, EventArgs eventArgs) +8886509
  System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +148
  System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1 

 

I spotted some extra tid bit that ask if i can view ~extranet/usercard/api.asmx I think I can as I get:

 

api


The following operations are supported. For a formal definition, please review the Service Description. 

Disable 

Enable 

GetFreeSpacePercentage 

ResetPassword 

getControlledOUs 

getInit 

getMyTickets 

getPhoto 

setNewTicket 

 

Any and all help will be greatful as always followed by beer and chocolate if your ever in Birmingham.

 

PS. I think this is my longest ever post, enjoy the read ;)

Posted

A bind error is an error usually with your AD setup in the web.config file

 

your domain needs to be the FQDN i.e. 'myschool.bham.sch.uk' you will also need to enter the distinguised name of your Domain controller i.e. 'LDAP://myserver.myschool.bham.sch.uk/dc=myschool,dc=bham,dc=sch,dc=uk'

 

and then on top of that you need to ensure that you have the correct username setup in the format domain\username - and that this user has read/write access to your AD environment

 

if you want, post your web.config and I can take a look - NOTE: open it first and do a find and replace on the three entries for your domain user password

Posted

Thank you for your help Sister_Annex, I made the changes you recomended and got a brand new error so I'm getting there :) Ive obviously made a mess of things so is the offer still there for you to have a mooch at it?

 

Some more background info....

 

HAP is installed on the member server: curric-c

DC server: curric-b

Web address of HAP: http://moodle.astonmanor.bham.sch.uk/extranet/

OU of students in AD: student

OU of teaching staff in AD: staff

OU of administrator in AD: users

 

and my new error message

 

Server Error in '/Extranet' Application.
--------------------------------------------------------------------------------

Can't find quota server 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Exception: Can't find quota server

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace: 


[Exception: Can't find quota server]
  HAP.Data.ComputerBrowser.Quota.GetQuota(String username, String share) +552
  HAP.Web.Default.Page_Load(Object sender, EventArgs e) +3028
  System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
  System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
  System.Web.UI.Control.OnLoad(EventArgs e) +91
  System.Web.UI.Control.LoadRecursive() +74
  System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1 

 

Ive attached my web.config file as web.txt so it will appear here (passwords have being removed) [ATTACH]10073[/ATTACH]

 

Thank you again for your help and the next time I'm in Wolvo I'll have to shout you a beer.

Posted

if its a quota entry it cannot find then you may have to watch the videos on YouTube as I am not to up with that part of it yet...

 

you dont have to use the quota info though, if you remove the entries:

 

     
       
       
     

 

It may stop this from happening

 

Let me know how you get on :)

 

Mark

Posted

I tried deleting the lines you suggested but still no joy.

 

I'm going to have a watch this afternoon, the locals normally calm down by then. I'll let you know how I get on and thanks again Mark.

 

if its a quota entry it cannot find then you may have to watch the videos on YouTube as I am not to up with that part of it yet...

 

you dont have to use the quota info though, if you remove the entries:

 

     
       
       
     

 

It may stop this from happening

 

Let me know how you get on :)

 

Mark

 

Craig

Posted

Ok i just checked our config file, you may want to try the below for your UNC path for your homedrive

 


 

give that a go it will bypass the search for quotas (i think!)

 

Mark

  • Thanks 2
Posted

Jack pot

 

Ok i just checked our config file, you may want to try the below for your UNC path for your homedrive

 


 

give that a go it will bypass the search for quotas (i think!)

 

Mark

 

You sir a wonderful beautiful man, took a little while for it to load up but

[ATTACH=CONFIG]10079[/ATTACH]

ta daaa

 

I will admit I left most of the stuff in from the install so its no where near finished but the fact that I'm closer than ever to finishing it is great.

 

Thank you for your help, and thank you in the furture as I will no doubt be bugging you again. If you think of anything else your more than welcome to mention it.

Posted
You sir a wonderful beautiful man

 

Should I be worried ;)

 

took a little while for it to load

 

This is the normal case as the server has to process the request and as it is .net we have to give it a little extra time to 'think' also :)

 

Glad I could help

Posted

No need to worry honest but thanks again. Just being having a look round. Some features arent working at the moment but I'm sure once I've had a good look at it I'll be fine.

 

I thought that may be the case, looks amazing though, Already got my drives all mapped :D

Posted

Errors errors everywhere. I need your brains again sister_annex and Nickbro.

 

1. when downloading a file under anyone from a drive I get

Server Error in '/Extranet' Application.
--------------------------------------------------------------------------------

Object reference not set to an instance of an object. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace: 


[NullReferenceException: Object reference not set to an instance of an object.]
  HAP.Web.routing.Downloader.ProcessRequest(HttpContext context) +365
  System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100
  System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1 

 

The user can access this drive and do what they want in windows and in HAP they can rename and upload new files to the location just cant download.

 

UNC paths

 

  
  
             
            

 

2. Logon tracker does not log logons (lol so many logs) and the user card does this when you logon:

 

logon.JPGlogon 2.JPG

 

web.config

 

Web config 160511.txt

 

 

As always thank you for your help, hopefully I'm able to repay the favour.

Posted

I'm not too sure on these to be honest. We don't use the Logon tracker (yet!) and as for the other error I really haven't got a clue.

 

Is your web server set to HTTPS?? If not I know that this will cause issues with the Logon tracker and Usercard.

Posted

Hi sister, no worries on not being sure. All your help so far has being great.

 

HAP is run over https I used the startssl very to get free one which works.

 

Sadly it still don't work, I've probably failed some where.

Posted

Wils86 have you had any luck resolving your last error. I am getting exactly the same thing.

 

I can create new items, delete existing items but can't open/download existing or new items.

 

Any help would be greatly appreciated.

Posted
Errors errors everywhere. I need your brains again sister_annex and Nickbro.

 

1. when downloading a file under anyone from a drive I get

Server Error in '/Extranet' Application.
--------------------------------------------------------------------------------

Object reference not set to an instance of an object. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace: 


[NullReferenceException: Object reference not set to an instance of an object.]
  HAP.Web.routing.Downloader.ProcessRequest(HttpContext context) +365
  System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100
  System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1 

 

The user can access this drive and do what they want in windows and in HAP they can rename and upload new files to the location just cant download.

 

UNC paths

 

  
  
             
            

 

2. Logon tracker does not log logons (lol so many logs) and the user card does this when you logon:

 

[ATTACH=CONFIG]10105[/ATTACH][ATTACH=CONFIG]10106[/ATTACH]

 

web.config

 

[ATTACH]10107[/ATTACH]

 

 

As always thank you for your help, hopefully I'm able to repay the favour.

 

I see in you web.config file you have a small error, not sure if it helps but im sure its not doing any good...

 

you have Studnet instead of student in the enablewriteto=

Posted

Morning ama178 No luck yet, being busy sorting FOG and the new machines for start of term, had to put this on the back burner for th time being which is a shame. Holding out for V7 and hope that may cure some of my errors fingers crossed. If any one does have a fix though were all ears.

 

Oh and JAB1a good eyes I've being staring at that config file for days ad never noticed I did that. Didnt solve my error but still, good to have it all neat and the same (slightly OCD once I notice stuff).

 

Cheers

Posted

The logon tracker/usercard issue is due to a DNS issue, where it can't resolve moodle.astonmanor.bham.sch.uk internally.

 

The main issue you will be facing is due to the home directory entry in AD not being present. You need to define this. HAP+ uses this behind the scene, even if you tell it not to. I'll try and do something to fix that, but it's not likely.

Posted
The logon tracker/usercard issue is due to a DNS issue, where it can't resolve moodle.astonmanor.bham.sch.uk internally.

 

The main issue you will be facing is due to the home directory entry in AD not being present. You need to define this. HAP+ uses this behind the scene, even if you tell it not to. I'll try and do something to fix that, but it's not likely.

 

I get ya, I tried changing this to the internal address of the HAP server and it just changed the error message giving the new location. Any idea how to solve this?

 

The second bit I get and will remedy this as soon as I have a chance you know what its like, the error occurs on shared drives as well if that helps.

 

Any way Nickbro I think this is my first direct reponse to you so (you've heard it already) but this is an amazing piece of software and thank you for your help and support.

Posted
thanks @Wils86. It's an odd one. The user card/logon tracker is set NOT to use the HTTP Proxy, and go directly to your HAP+ site. You can change this on by editing the .config file of the user card to enable the HTTP Proxy
Posted

Morning @nickbro, Just thought I'll let you know I decided to start from scratch and take your advice on the home directory. Worked great all users can access and download everything they should be able to in My Computer. Just some things I have noticed may be you could look at in the future.

 

1. The basestyle.css in v6.3 is missing the following code at the end which is present in v6.2. It controls the tabs on the home screen if I am correct.

 

#hometabs { height: 250px; }
#tabheaders a { float: left; height: 25px; line-height: 25px; margin: 6px 1px 0 1px; text-decoration: none; font-family: Segoe UI; text-align: center; border-bottom: solid 1px [url=http://www.edugeek.net/misc.php?do=dbtech_usertag_hash&hash=dedede]#dedede[/url]  }
#tabheaders a:hover { border: solid 1px [url=http://www.edugeek.net/misc.php?do=dbtech_usertag_hash&hash=dedede]#dedede[/url] border-radius: 5px 5px 0 0; margin: 5px 0 0 0; }
#tabheaders a.active { color: [url=http://www.edugeek.net/misc.php?do=dbtech_usertag_hash&hash=000]#000[/url] border: solid 1px [url=http://www.edugeek.net/misc.php?do=dbtech_usertag_hash&hash=dedede]#dedede[/url] border-bottom: 0; margin: 0; height: 30px; line-height: 30px;  border-radius: 5px 5px 0 0; }
#tabs { overflow: hidden; clear: both; }
.tab { display: none; margin: 10px 50px; }
.tab div { margin-bottom: 5px; }
#tab_me_progress { width: 400px; height: 18px; border: solid 1px gray; border-radius: 3px; background: transparent url(images/progressbar.png) repeat-x top left; position: relative; overflow: hidden; margin: 5px 0 0 0; }
#tab_me_progress div { height: 18px; background: transparent url(images/progressbar-active.png) repeat-x top left; }
#tab_me_progress label { position: absolute; top: 0; left: 0; right: 0; bottom: 0; text-align: center; font-size: 14px; }

.bookingtable { border: solid 1px [url=http://www.edugeek.net/misc.php?do=dbtech_usertag_hash&hash=a0a0a0]#a0a0a0[/url] border-collapse: collapse; padding: 0; margin: 0; background: [url=http://www.edugeek.net/misc.php?do=dbtech_usertag_hash&hash=fff]#fff[/url] width: 100%; position: relative; }
.bookingtable th { border-bottom: solid 1px [url=http://www.edugeek.net/misc.php?do=dbtech_usertag_hash&hash=a0a0a0]#a0a0a0[/url] border-top: 0; line-height: 20px; height: 20px; background: #f3f4f6 url(images/table-head-bg.gif) repeat-x top left; font-weight: normal; padding: 0; margin: 0; }
.bookingtable td { font-size: 84%; padding: 0 2px; }
.bookingtable.tickets td { font-size: 94%; text-align: center; }

 

May be an amendment or something.

 

2. It might be worth making an addition to the installation manual to say that for it to fully work the home directory needs to be in active directory as I never spotted this and know a few places that rely completely on login scripts for mapping drives. This would cause the unauthorised access and error I and others may experience.

 

Just two things I hope you don’t think I am being pushy or stepping on your toes, I would just like to help in whatever why I can. Oh and if anything I said above is wrong please ignore it.

 

Thanks

Posted
Wils86 have you had any luck resolving your last error. I am getting exactly the same thing.

 

I can create new items, delete existing items but can't open/download existing or new items.

 

Any help would be greatly appreciated.

 

nickbro pointed me in the right direction, HAP+ uses the home profile location in AD to do the authentication even if you tell it not to. If you go to your user and select the profile tab and half way down is the Home Folder option. Select the drive letter and then type in UNC path to that specific users home folder. That will allow HAP+ top work. If you select multiple users to do it in bulk type ' \\server\staff\%username% ' if you use the username to map the home folder.

 

This will fill in every ones home path with the correct location making HAP+ work.

 

In other news nickbro I need help again. Any domain Admin who clicks on the booking system is presented with this:

 

Server Error in '/Extranet' Application.
--------------------------------------------------------------------------------

There is no such object on the server.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.DirectoryServices.DirectoryServicesCOMException: There is no such object on the server.


Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace: 


[DirectoryServicesCOMException (0x80072030): There is no such object on the server.
]
  System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) +420085
  System.DirectoryServices.DirectoryEntry.Bind() +36
  System.DirectoryServices.DirectoryEntry.get_AdsObject() +31
  System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne) +78
  System.DirectoryServices.DirectorySearcher.FindAll() +9
  HAP.AD.ADUtil.FindUsers(ouobject ou, String subou) +324

[Exception: LDAP://CURRIC-B.astonmanor.bham.sch.uk/OU=Users,DC=astonmanor,DC=bham,DC=sch,DC=uk]
  HAP.AD.ADUtil.FindUsers(ouobject ou, String subou) +1119
  HAP.AD.ADUtil.FindUsers() +193
  HAP.Web.BookingSystem.BookingPopup.Page_Load(Object sender, EventArgs e) +100
  System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
  System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
  System.Web.UI.Control.OnLoad(EventArgs e) +91
  System.Web.UI.Control.LoadRecursive() +74
  System.Web.UI.Control.LoadRecursive() +146
  System.Web.UI.Control.LoadRecursive() +146
  System.Web.UI.Control.LoadRecursive() +146
  System.Web.UI.Control.LoadRecursive() +146
  System.Web.UI.Control.LoadRecursive() +146
  System.Web.UI.Control.LoadRecursive() +146
  System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1 

 

I tried adding a new AD group to access the admin bookings incase there was an issue with my admin account but the same happened again.

 

Thank you as always and ama178 let me know how you get on.

Posted
The system uses OUs not AD Groups for getting a listing users.

 

My mistake I meant OU. I still have the issue as when the domain admin clicks on the bookings icon this appears:

Server Error in '/Extranet' Application.
--------------------------------------------------------------------------------

There is no such object on the server.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.DirectoryServices.DirectoryServicesCOMException: There is no such object on the server.


Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace: 


[DirectoryServicesCOMException (0x80072030): There is no such object on the server.
]
  System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) +420085
  System.DirectoryServices.DirectoryEntry.Bind() +36
  System.DirectoryServices.DirectoryEntry.get_AdsObject() +31
  System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne) +78
  System.DirectoryServices.DirectorySearcher.FindAll() +9
  HAP.AD.ADUtil.FindUsers(ouobject ou, String subou) +324

[Exception: LDAP://CURRIC-B.astonmanor.bham.sch.uk/OU=Users,DC=astonmanor,DC=bham,DC=sch,DC=uk]
  HAP.AD.ADUtil.FindUsers(ouobject ou, String subou) +1119
  HAP.AD.ADUtil.FindUsers() +193
  HAP.Web.BookingSystem.BookingPopup.Page_Load(Object sender, EventArgs e) +100
  System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
  System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
  System.Web.UI.Control.OnLoad(EventArgs e) +91
  System.Web.UI.Control.LoadRecursive() +74
  System.Web.UI.Control.LoadRecursive() +146
  System.Web.UI.Control.LoadRecursive() +146
  System.Web.UI.Control.LoadRecursive() +146
  System.Web.UI.Control.LoadRecursive() +146
  System.Web.UI.Control.LoadRecursive() +146
  System.Web.UI.Control.LoadRecursive() +146
  System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1 

 

I have spoken with a freind at another school and he has the same issue. Apart from that I'm all done thank you.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...