Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# joegasper 6/29/2005 5:51 PM
Attempting an install. Getting the error below:
_________________________________________
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: Required permissions cannot be acquired.

Source Error:

[No relevant source lines]

Source File: machine.config Line: 198

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
_________________________________________

Line 198 in my machine.config file is:
<add assembly="*"/>

What I've done so far:

1) nant build and deploy 0.8.0
2) created a web folder and copied over cuyahoga
3) made the web folder an web application and put it in its own App Pool.
4) created the db in MSSQL2K, ran the sql scripts (looks good).
5) modified the web.config connection string.
6) created a domain account. Set this domain account as the db admin for the db I created in 4).
7) set the App Pool indentity to this domain account (reset the AppPool and site).
8) gave this domain account full rights to the web folder and a local user on the web server.
9) tried connecting to the site (/admin and all pages produce the above error).

I've tried adding the domain account to the local admin group on the web server but that didn't have any effect.

Thanks,
Joe
# joegasper 6/29/2005 6:54 PM
I didn't expect any but no change with 0.8.1.
# joegasper 6/29/2005 6:55 PM
Oh, yeah. I had to logout of the forum to see the items on the Download page...
# martijnb 6/30/2005 1:46 AM
Hi Joe,

I have the feeling that it's definately a permissions problem. Do other ASP.NET applications work in your server setup?.
joegasperOh, yeah. I had to logout of the forum to see the items on the Download page...

Aha, that's why people said the downloads disappeared every now and then! Thanks for the hint. Should be fixed now.
# joegasper 6/30/2005 3:40 PM
I have existing ASP.NET apps that work fine. I have an existing ASP.NET site that runs fine with a different domain user for the identity of its AppPool, just like what I'd like to do with Cuyahoga. I took an existing site running ASP.NET pages and changed its AppPool identity to the new domain account I had created to use with Cuyahoga - after a stop/start of the site and AppPool it runs just fine, also. If I put Cuyahoga's AppPool back to the default identity of Network Service, I get the same error.

For a what the heck, I tried running under a site registered to use ASP.NET 2.0 beta (2.0.50215.0). and was getting the following error:
______________________________________
Exception information:
Exception type: ConfigurationErrorsException
Exception message: Could not load file or assembly 'Mono.Security.Protocol.Tls, Version=1.0.1528.33423, Culture=neutral, PublicKeyToken=4c884638a2b03853' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417) (D:\fa\wwwroot\ufsnew\web.config line 53)

Request information:
Request URL: http://10.227.208.5/ufsnew/admin/default.aspx
Request path: /ufsnew/admin/default.aspx
User host address: 10.227.151.155
User:
Is authenticated: False
Authentication Type:
Thread account name: MyDomain\cuyahogaUser

Thread information:
Thread ID: 7
Thread account name: MyDomain\cuyahogaUser
Is impersonating: False
Stack trace: at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
at System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory()
at System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai)
at System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig)
at System.Web.Compilation.BuildProvidersCompiler..ctor(String configPath, Boolean supportLocalization)
at System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxType(Boolean isPrecompiledApp)
at System.Web.Compilation.BuildManager.CompileGlobalAsax()
at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)
________________________________________

Do you understand what the line in my machine.config that the error points to is trying to allow? (I'm pretty sure the maching.config file has not been modified.)

Thanks again,
Joe
# joegasper 6/30/2005 9:45 PM
If I comment out that line in machine.config I get the following error:

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'Cuyahoga.Web.Global'.

Source Error:

[No relevant source lines]

Source File: global.asax Line: 1

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
# martijnb 7/1/2005 1:36 AM
joegasperIf I comment out that line in machine.config I get the following error:

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'Cuyahoga.Web.Global'.

That's usually a sign that the application's assemblies cannot be found. Did you map the Cuyahoga IIS application to the Web directory?
# joegasper 7/5/2005 9:18 PM
Getting further...

Yes, running as an IIS App...

I added in the <system.web> area of web.config:

<trust level="Full" originUrl="" />

Got the idea from web searches. A few below:

http://support.microsoft.com/kb/835248
http://odetocode.com/Blogs/scott/archive/2004/10/8.aspx
http://support.microsoft.com/kb/887289/
http://support.microsoft.com/Default.aspx?kbid=813830
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/gngrftrustsection.asp

But now I get on the admin/default.aspx page:
_______________________________________________

Specified cast is not valid.
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.InvalidCastException: Specified cast is not valid.

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:

[InvalidCastException: Specified cast is not valid.]
Cuyahoga.Web.Admin.UI.AdminBasePage.OnInit(EventArgs e) in c:\Documents and Settings\Administrator\Desktop\Cuyahoga081\Cuyahoga-0[1].8.1-src\Web\Admin\UI\AdminBasePage.cs:73
Cuyahoga.Web.Admin._Default.OnInit(EventArgs e) in c:\Documents and Settings\Administrator\Desktop\Cuyahoga081\Cuyahoga-0[1].8.1-src\Web\Admin\Default.aspx.cs:31
System.Web.UI.Control.InitRecursive(Control namingContainer) +241
System.Web.UI.Page.ProcessRequestMain() +195

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032

_______________________________________________

-Joe
# martijnb 7/6/2005 12:19 PM
The error message indicates that the logged-in user isn't a 'Cuyahoga' user. Did you log in on the login page before this error occured?