Jump to content

Access to the path 'c:\inetpub\wwwroot\hap\app_data\hapconfig.xml' is denied in 7


Recommended Posts

Posted

Hi,

I followed your instructions, and after replacing the hap.web.dll file I get a different error: 500 Internal Server Error.

The event log for for Home Access Plus on the server is empty.

 

Regards

Posted
When you use intenet explorer on the HAP+ server to launch HAP+ it provides more information in IE. Not the event viewer! Usually on something that is wrong in IIS
Posted

There no more information.

hap4.JPG

Only internal server error message which came after changing the dll file you told me to previously.

 

Thanks

Posted

Hi, now I can't get the setup page to start.

This is the message:

Server Error in '/hap' Application.

--------------------------------------------------------------------------------

 

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: CS1061: 'ASP.setup_aspx' does not contain a definition for 'sg_TextChanged' and no extension method 'sg_TextChanged' accepting a first argument of type 'ASP.setup_aspx' could be found (are you missing a using directive or an assembly reference?)

 

Source Error:

 

 

 

Line 111:

Line 112:

Line 113:

Line 114:

Line 115:

 

 

Source File: c:\Inetpub\wwwroot\hap\Setup.aspx Line: 113

 

 

 

Show Detailed Compiler Output:

 

 

c:\windows\system32\inetsrv> "C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\csc.exe" /t:library /utf8output /R:"C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\hap\55cd546f\70e6ba5a\App_global.asax.g_d-lw43.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.DirectoryServices.AccountManagement\v4.0_4.0.0.0__b77a5c561934e089\System.DirectoryServices.AccountManagement.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Web\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.DirectoryServices.Protocols\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.DirectoryServices.Protocols.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\hap\55cd546f\70e6ba5a\assembly\dl3\67b9618a\9d8bb77b_e497cc01\HAP.AD.DLL" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.DynamicData\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.DynamicData.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.WorkflowServices\v4.0_4.0.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.DirectoryServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.DirectoryServices.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\hap\55cd546f\70e6ba5a\assembly\dl3\dedac25f\f9edb97b_e497cc01\HAP.Data.DLL" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__

 

I can fit it all in.

Posted

I tried this as i'd got past the exception error so i thought and started getting this:

 

 

[ArgumentException: An item with the same key has already been added.]

System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) +52

System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) +9375355

System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value) +11

HAP.Web.Configuration.LinkGroups..ctor(XmlDocument& doc) +390

HAP.Web.Configuration.Homepage.get_Groups() +56

HAP.Web.Default.Page_Load(Object sender, EventArgs e) +6740

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

 

 

Alas, after applying the update above, and having tried with different users / clearing cache etc, still getting the above error.

Posted

I replaced th \bin folder with the one you posted and now get:

Server Error in '/hap' Application.

--------------------------------------------------------------------------------

 

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: CS1061: 'ASP.setup_aspx' does not contain a definition for 'sg_TextChanged' and no extension method 'sg_TextChanged' accepting a first argument of type 'ASP.setup_aspx' could be found (are you missing a using directive or an assembly reference?)

 

Source Error:

 

 

 

Line 111:

Line 112:

Line 113:

Line 114:

Line 115:

 

 

Source File: c:\Inetpub\wwwroot\hap\Setup.aspx Line: 113

Posted

Ok I done the changes to the web.comfig file and now get this error.

 

Server Error in '/hap' Application.

--------------------------------------------------------------------------------

 

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: The 'location' start tag on line 143 position 3 does not match the end tag of 'configuration'. Line 196, position 3.

 

Source Error:

 

 

Line 194:

Line 195:

Line 196:

Posted
In the Deny Users section, replace the * with an OU, or multiple OUs from AD that you want to restrict access to, such as students, teaching staff, etc.
Posted

Now I get this error:

Did anyone manage to get it working on IIS6?

 

Server Error in '/hap' Application.

--------------------------------------------------------------------------------

 

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: The 'location' start tag on line 143 position 3 does not match the end tag of 'configuration'. Line 196, position 3.

 

Source Error:

 

 

Line 194:

Line 195:

Line 196:

 

 

 

Source File: c:\inetpub\wwwroot\hap\web.config Line: 196

Posted

On that line, used


    
        
            
            
        
    

This will allow domain admins, and deny any other users.

 

   
  
     
     
     
   

That code will stop HAP Users from Accessing as well as unauthenticated users, but allow everyone else

Posted

Now I get the same message again:

 

If you have not already done so, please edit ~/web.config with notepad, etc..., changing:

to

 

 

This is the entry already in my file:

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...