Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Startup Exception
pkatsoulas
#1 Posted : Wednesday, February 22, 2012 9:43:21 AM(UTC)
Groups: Member
Joined: 8/1/2011(UTC)
Posts: 33

I have been using Web Server Pro 9 and all has been well. I just upgraded from Web Server Pro 9 to 14 and now get the following exception when I attempt to start my application:

[HttpException (0x80004005): The current identity (NT AUTHORITY\NETWORK SERVICE) does not have write access to 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files'.]
System.Web.HttpRuntime.SetUpCodegenDirectory(CompilationSection compilationSection) +698
System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) +175

[HttpException (0x80004005): The current identity (NT AUTHORITY\NETWORK SERVICE) does not have write access to 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files'.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +543
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +90
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +256


The UltiDev Web Server Explorer tells me that my Default Shared Host Process is ASP.NET 4, NetworkService.

The arguments for Starter.exe are:

"[ProgramFilesFolder]\UltiDev\Web Server\UWS.RegApp.exe" /r /AppID="[UpgradeCode]" /aspnet:4 /defaultdoc:Default.aspx /vdir:KnowledgePLAN /path:"[TARGETDIR]KnowledgePLAN" /appname:"SPR KnowledgePLAN®" /appdesc:"SPR KnowledgePLAN® Enterprise"

Note that the same application runs fine under IIS. Any help would be appreciated.
Ultidev Team
#2 Posted : Wednesday, February 22, 2012 9:57:40 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hmm... This should not be happening unless .NET Framework 4 was installed after most recent UWS installation, because UWS does grant appropriate permissions to "Temporary ASP.NET Files" folder. If .NET Framework 4 was installed after UWS installation, you could run UWS "Repair Server Configuration" utility and try again.

Please take a look at "C:\Program Files\UltiDev\Web Server\UWS.Installer.log.txt" file and see whether there were any errors around "Creating temporary ASP.NET folders..." section. Please also consider sending us the file above for analysis. You may put the file into password-protected ZIP and attach it to your response, while sending us the password over the PM.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
pkatsoulas
#3 Posted : Wednesday, February 22, 2012 10:55:29 AM(UTC)
Groups: Member
Joined: 8/1/2011(UTC)
Posts: 33

You are correct. Web Server Pro was installed before .NET Framework 4.0. I uninstalled Web Server Pro and installed it again and all was well. The reason that this happened is that both Web Server Pro and .NET Framework 4.0 are prerequisites in my Visual Studio setup project. Unfortunately, VS installs Web Server Pro before .NET Framework 4.0. There does not seem to be an obvious way to order the prerequisites. If anyone knows a way, I would love to hear it. Note that "C:\Program Files\UltiDev\Web Server\UWS.Installer.log.txt" did not have any errors in it.
Ultidev Team
#4 Posted : Wednesday, February 22, 2012 11:14:37 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi!

Reinstalling UWS was not necessary - you could just run UWS.RegRepair.exe ("Repair Server Configuration" from UWS Programs menu folder): it re-ACLs temporary folders and does a few other things that sometimes need to be done out of band.

Since your application is .NET 4 specific, you could work around the issue by modifying UWS VS Setup Project prerequisite and make UWS prereq depend on .NET Framework 4. The downside is that you would need to modify UWS VS prereq file after every installation of UWS on a development box.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
pkatsoulas
#5 Posted : Wednesday, February 22, 2012 3:22:30 PM(UTC)
Groups: Member
Joined: 8/1/2011(UTC)
Posts: 33

I am familiar with the prerequisite file approach and ruled it out for the same reason you gave. I have decided to detect if .NET is installed before detecting if Web Server Pro is installed within the setup script I am using. This seems to solve my problem. Thanks for the help.
Ultidev Team
#6 Posted : Wednesday, February 22, 2012 3:46:27 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
You welcome!

We are glad you were able to modify the installation script to ensure .NET Framework is installed prior to UWS.

Cheers,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Rss Feed  Atom Feed
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.