chazdavis24 Posted September 28, 2010 Posted September 28, 2010 Dont know if any of you still use this? Looks pretty awsome. Im having a couple of issues when accessing the site for the first time. 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. Any ideas? Thank You
sister_annex Posted September 28, 2010 Posted September 28, 2010 hmmm..... do you have the latest version of the .net framework installed (v4) also have you checked that the LDAP settings in the web.config file are correct? a directory services error usually(!) points to problems with one of those. HTH Mark
chazdavis24 Posted September 28, 2010 Posted September 28, 2010 Thank you for the fast reply. I do have the latest .net framework, however i do think there is something wrong with the LDAP. Im not too strong on this subject. LDAP://chs01.crickhowell.internal/{0}OU=Teaching Staff,OU={1},OU=Establishments,DC=crickhowell,DC=internal Do i need the {0} parts? or is this part of the CHS domain? Thank You
sister_annex Posted September 28, 2010 Posted September 28, 2010 You will need to edit the LDAP settings to match your domain. The ones in the default web.config file are the domain settings for the developer Ours for example is: "LDAP://mgmtcore.xx.xx.xx.xx/OU=IOST,DC=xx,DC=xx,DC=xx,DC=xx" and usually follows the format "LDAP://Domain Controller FQDN/DN of OU where the specific accounts are located. Note: we are a vanilla network if you are RM i think the {0} will need to stay based on your OU groups. HTH
lewisburgess Posted September 29, 2010 Posted September 29, 2010 I'm still having trouble downloading any files using HAP. I'm using v5.3 on IIS7.5 (Win 2008 R2) joined to our main domain. I've followed the video and checked the permissions on folders etc, but it still doesn't want to work. Safari reports a 303 error whenever I try to download a file. It tries to download but fails. Looking at the IIS logs, it appears to be an error 500. Always fun. 2010-09-28 12:12:54 10.18.116.2 GET /extranet/Download/N/OX-NetMon09.pptx - 443 lburgess 10.18.116.68 Mozilla/5.0+(Macintosh;+U;+Intel+Mac+OS+X+10_6_4;+en-us)+AppleWebKit/533.18.1+(KH TML,+like+Gecko)+Version/5.0.2+Safari/533.18.5 500 0 64 59 I then tried clicking many times on the same file, and amazingly 1 in 4 attempts worked. If you try enough times in quick succession, it will download it but obviously usually fails. Very frustrating! Help!!!
bert113 Posted September 29, 2010 Posted September 29, 2010 Sorry to ask this, I've been trying to fix this for the last couple of days, I'm getting the following error when I login to the HAP Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: Could not load file or assembly 'CMS' or one of its dependencies. The system cannot find the file specified. Source Error: Line 146: Line 147: Line 148: Line 149: Line 150: Source File: c:\inetpub\wwwroot\extranet\web.config Line: 148 Sorry if this has been asked before, I've followed the instructions and I've hit a brickwall with this..... anyhelp would be greatly appreciated (we're running Server 2003 fully updated and IIS6) Looks like a fantastic product can't wait to get it working
JAB1a Posted September 29, 2010 Posted September 29, 2010 Hi Nick, Home access plus looks SO good, thank you for all your hard work and time. I feel bad asking for your (or anyones) help but I have hit a brick wall with this. background... Server 2003 STD SP2 running AD, DNS, DHCP our ISP is SWGFL I have 3 sites that are the same spec/setup for the servers and one is a CC3 network I have NO background knowledge of VPN's or IIS services (terrible I know but I am sure this will change with the use of this site). I have followed your instructions (from the PDF on the documentation page of your site) to the letter but nothing is working at all. I have installed IIs and also installed the .net V4 (4.0.30319) and then I ran windows update just to make sure all was up-to-date and restarted. During the instructions I came accross a problem, during steps 21-24 I found the wwwroot folder in 'c:\inetpub\wwwroot' but it looks like it has a website in there already so I created another folder on the server 'F:\wwwroot\Extranet' which I added to the 'Home directory' under the 'local path' section. I have set the permissions as stated but I wasn't sure if I should remove the inherited permissions aswell (there is nothing that would denie access to admins or staff). During steps 27-30 I had a problem as I did not have a site called 'Extranet', only 3 sites ('Default website', 'Administration' and 'Microsoft sharepoint administration' so I created a site called 'extranet'. At step 31 I selected 'extranet' and the 'starting point' section under the 'Application name' now reads . On the ASP.net tab I have the following details... ASP.net version: 4.0.30319 Virtual path: Extranet file location: f:\wwwroot\extranet\web.config all the other sections went fine but nothing sems to be doing anything when I type in my address (http://%domianname%/extranet), I am swapping the %domainname% with only my domain name and not the server plus domain name i.e. HAL.myshool.devon.sch.uk. So the address I am typing is... http://myschool.devon.sch.uk/extranet I get a page back saying...'The URL could not be retieved' 'the domain name does not exist' I have trolled all the threads in this post and can't find any answers. So sorry to send such NOOB questions your way but I hope you can help. Please let me know if I have left any important details out that you need to know I have done. I hope someone can help me as the teachers at all the sites will be SOOOOO happy to have this access at home P.s I have not done this on the CC3 network yet as they might be upgrading soon.
clarky2k3 Posted September 30, 2010 Posted September 30, 2010 Line 148: As far as I know this should be Line 148: CHS is hard coded in the web files. 1
bert113 Posted September 30, 2010 Posted September 30, 2010 Line 148: As far as I know this should be Line 148: CHS is hard coded in the web files. Thank you this got past that error... now I get this 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 CHS.ActiveDirectoryHelper.getUser(DirectoryEntry root, String userName) +153 CHS.ActiveDirectoryHelper.GetRolesForUser(DirectoryEntry root, String username) +35 CHS.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 Anyone have any ideas?
sister_annex Posted September 30, 2010 Posted September 30, 2010 Looks like a problem with you LDAP settings, I would first check that your domain entry, Username (in DOMAIN\Username format) and password are correct. could you post up the contents of your web.config file (obviously removing any passwords etc)? I posted here about someone who was having similar issues http://www.edugeek.net/forums/web-development/59485-home-access-plus-10.html#post566945 Let me know if you need more help Mark 1
bert113 Posted September 30, 2010 Posted September 30, 2010 Looks like a problem with you LDAP settings, I would first check that your domain entry, Username (in DOMAIN\Username format) and password are correct. could you post up the contents of your web.config file (obviously removing any passwords etc)? I posted here about someone who was having similar issues Home Access Plus+ Let me know if you need more help Mark Thank you, I think I've entered everything correctly.... Here is the web.config file (our FQDN is nsnet.net , we logon onto school and as a domain name. Domain controllers khs-alpha & khs-app) I've removed the II7 bit at the end as the post was too long
nickbro Posted September 30, 2010 Author Posted September 30, 2010 The Connection string should look more like: Then go through: Changing the showto= sections to be AD groups 1
CarlBooth Posted October 4, 2010 Posted October 4, 2010 We've just installed HAP on our web server, but can't seem to get it working. We've followed the HAPConfig.exe wizard through but when we visit the website it just keeps asking for a password. HTTP Error 401.1 - Unauthorized You do not have permission to view this directory or page using the credentials that you supplied. I've checked that basic authentication is set on the server and the Default domain is set correctly. Any ideas?
Edu-IT Posted October 4, 2010 Posted October 4, 2010 If two people try to open the same file, you get an asp error?
CarlBooth Posted October 4, 2010 Posted October 4, 2010 If two people try to open the same file, you get an asp error? Was that directed at me?
JAB1a Posted October 4, 2010 Posted October 4, 2010 (edited) Hello, I know you are all probably very busy but just seeing if anyone has any ideas about POST #247? (dated:29/09/10) Thanks for your time anyone Edited October 4, 2010 by JAB1a spelling
mrbios Posted October 5, 2010 Posted October 5, 2010 (edited) Trying to get this running, im using IIS 7.5 on Server 2008R2 I've gone through the setup, .net 4 is installed and i have an app pool for the site using .net 4.0, set to basic authentication, whenever i try to access it i get a logon box appear but nothing works, obviously set my security settings wrong somewhere but i can't see what? Please help EDIT new problem: <%=Request.ApplicationPath %> doesn't work as far as i can see, the links just go to http://images/xxx.png etc Edited October 5, 2010 by mrbios
mrbios Posted October 6, 2010 Posted October 6, 2010 (edited) EDIT: Forget all the other problems, there sorted now, my new problems: We've had to do this http://www.asp.net/learn/whitepapers/aspnet4/breaking-changes#0.1__Toc256770149 in order to get the extranet working as an application of our main website, now it's running i can view the pages again with it running as an app, but now if i go to the silver light version i get: Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; image_azv; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C) Timestamp: Thu, 7 Oct 2010 10:38:31 UTC Message: Unhandled Error in Silverlight Application [Async_ExceptionOccurred] Arguments: Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See [url]http://go.microsoft.com/fwlink/?linkid=106663&Version=4.0.50524.0&File=System.dll&Key=Async_ExceptionOccurred[/url] at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary() at HAP.Silverlight.Browser.MainPage.driveclient_DownloadStringCompleted2(Object sender, DownloadStringCompletedEventArgs e) Line: 1 Char: 1 Code: 0 URI: [url]http://webapps02/extranet/MyComputerSL.aspx[/url] and if i go to the basic version and click on something it goes to: http://webapps02/extranet/MyComputer/T with a "404 file or directory not found" (just running internally at the moment) What do i need to do now in order to get these two things to work? EDIT: NO LONGER AN ISSUE got it working Edited October 7, 2010 by mrbios
JAB1a Posted October 6, 2010 Posted October 6, 2010 Ok after alot of hair pulling (my own that is) I have managed to get it working. Next problem is how do I get teachers from home to access it, we are behind SWGFL. I have setup 'Routing and Remote access' with VPN and NAT but I dont get how the server knows what its external IP address is etc. Any help would be very much appriciated
dezt Posted October 7, 2010 Posted October 7, 2010 Right, firstly i'd like to say how good this thing is, thanks for building something that should solve a lot of problems for me. Now for my issues. I've managed to create a working version on this on a VM running server 2008, iis7, on my laptop, everything works when i test it internally. I have managed to find a physical server and tried mirroring the install that works on the VM on it, and I get a http 500 error. I even went so far as to copy my Extranet directory from the VM to the physical server, and export my iis settings and import them on the physical server, but I still get a http 500 error. I thought it may have been something silly, so I formatted the server and started from scratch, all that was installed was .net framework 4.0 and silverlight. I then added the role of iis like I did on the VM and went from there. I have no idea why it's not working. Can someone please help. I'm running a vanilla network, not RM, but had it configured perfectly on the VM running on my laptop, but for some reason it doesn't want to play now its being moved to physical hardware.
mrbios Posted October 7, 2010 Posted October 7, 2010 Im trying to enable external access to our RDweb on the terminal server, I've setup an ISA rule so that https://www.website.com/RDWeb should access it but firefox tells me "Firefox has detected that the server is redirecting the request for this address in a way that will never complete." What have i done wrong there, how do i solve that? It works ok internally
sister_annex Posted October 8, 2010 Posted October 8, 2010 Right, firstly i'd like to say how good this thing is, thanks for building something that should solve a lot of problems for me. Now for my issues. I've managed to create a working version on this on a VM running server 2008, iis7, on my laptop, everything works when i test it internally. I have managed to find a physical server and tried mirroring the install that works on the VM on it, and I get a http 500 error. I even went so far as to copy my Extranet directory from the VM to the physical server, and export my iis settings and import them on the physical server, but I still get a http 500 error. I thought it may have been something silly, so I formatted the server and started from scratch, all that was installed was .net framework 4.0 and silverlight. I then added the role of iis like I did on the VM and went from there. I have no idea why it's not working. Can someone please help. I'm running a vanilla network, not RM, but had it configured perfectly on the VM running on my laptop, but for some reason it doesn't want to play now its being moved to physical hardware. A 500 error is a generic one. Your computer event logs should give more information on the problem. The first things i would check are: - Permissions on the Extranet (or whatever you have decided to call it) folder - That ASP.Net 4 is allowed and configured to be used on the site (not ASP.net 1 or 2) - That your web.config is setup correctly sorry for the vagueness of the answer but, it is early and my brain has yet to begin functioning at the usual level HTH anyway Mark 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now