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

Notification

Icon
Error

mixing .html with .aspx and .vbhtml/.cshtml
ZEE
#1 Posted : Friday, November 11, 2011 7:58:33 AM(UTC)
Groups: Member
Joined: 11/11/2011(UTC)
Posts: 5

Thanks: 1 times

Hi ppl

Great product, hope this will fix the IIS version nightmare from microsoft (2K, XP, 2K3, Vista, Win7, Win8, etc.)

Im testing UWS and configured a test site to funcion as localhost/127.0.0.1 (nothing in the virtual directory name input box), so if you put http://127.0.0.1 in the browser adress the site apear ok.

I configured a "index.html" as first page with some JQuery (works OK) with links to some .aspx pages and some .vbhtml pages...

register and test asp.net 2 and asp.net 4, everything works ok
put in the root a web.config file with minimum configuration
and start testing... clicked in the links to .aspx and .vbhtml pages and fails

if I use "UWS Interactive User (32bit)" everything works OK... ?whats happening
I've try to debug in several ways but cant find a good answer...

Thanx for you attention, ZEE
Ultidev Team
#2 Posted : Friday, November 11, 2011 4:41:29 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)
Hello, ZEE. Sorry for late reply.

Could you please attach a screenshot of the error message to your reply?

If UWS Interactive Host 32 bit can run the application, while UWS service host can't, it means one of two things:

- It's access rights issue, as Interactive Host runs under your interactive user context, while service host runs either quite constrained Network Service account, or very powerful Local System account. If your application was registered with UWS under Network Server, move it to Local System host, and see if that fixed the problem. If it did, then something is definitely with access rights. But, hosting web applications under Local System or other powerful accounts, is not a secure approach.

- Service host is running as 64 bit while your application loads some 32-bit components, like an ODBC driver. To test this theory, try to run your app under 64-bit version of UWS Interactive Host.

Please also check Windows Event Log (Application) for error information.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
ZEE
#3 Posted : Saturday, November 12, 2011 8:38:48 AM(UTC)
Groups: Member
Joined: 11/11/2011(UTC)
Posts: 5

Thanks: 1 times
OK, here it goes
Calling ASPX throw thin one to system event log


Event code: 3007
Event message: A compilation error has occurred.
Event time: 11/12/2011 1:36:47 PM
Event time (UTC): 11/12/2011 1:36:47 PM
Event ID: 9dc33cb3a0964d0185ec404ecb511311
Event sequence: 37
Event occurrence: 3
Event detail code: 0

Application information:
Application domain: /UWS/{A22C128F-2878-44E5-8BF4-49A1BFA893FB}-2-129655779666406250
Trust level: Full
Application Virtual Path: /
Application Path: C:\DAT\_mixdev\ZEE-PC\
Machine name: ZEE-PC

Process information:
Process ID: 3416
Process name: UWS.AppHost.Clr4.AnyCPU.exe
Account name: NT AUTHORITY\NETWORK SERVICE

Exception information:
Exception type: HttpCompileException
Exception message: c:\SYS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\ba2f3259\9e7018bb\App_Web_test1.aspx.288c0f4c.tjcegolx.0.vb : (0): error BC31007: Unable to open module file 'c:\SYS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\ba2f3259\9e7018bb\App_Web_test1.aspx.288c0f4c.tjcegolx.0.vb': System Error &Hc0000005& (Visual Basic internal compiler error)
at System.Web.Compilation.AssemblyBuilder.Compile()
at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)
at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)
at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
at System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)



Request information:
Request URL: http://127.0.0.1/_test/test1.aspx
Request path: /_test/test1.aspx
User host address: 127.0.0.1
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITY\NETWORK SERVICE

Thread information:
Thread ID: 27
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at System.Web.Compilation.AssemblyBuilder.Compile()
at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)
at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)
at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
at System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


Custom event details:
ZEE
#4 Posted : Saturday, November 12, 2011 8:41:26 AM(UTC)
Groups: Member
Joined: 11/11/2011(UTC)
Posts: 5

Thanks: 1 times
And gave this error in browser (tested with firefox 7.0 and ie 8.0)


Server Error in '/' 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: BC31007: Unable to open module file 'c:\SYS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\ba2f3259\9e7018bb\App_Web_test1.aspx.288c0f4c.kpqgy2kq.0.vb': System Error &Hc0000005& (Visual Basic internal compiler error)

Source Error:

[No relevant source lines]


Source File: c:\SYS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\ba2f3259\9e7018bb\App_Web_test1.aspx.288c0f4c.kpqgy2kq.0.vb : Line: 0


Show Detailed Compiler Output:


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.225
ZEE
#9 Posted : Saturday, November 12, 2011 8:51:19 AM(UTC)
Groups: Member
Joined: 11/11/2011(UTC)
Posts: 5

Thanks: 1 times
Also, following your suggestion, tested as "Local Service" and it *WORKS* OK...

?should I change some rights to the site folder in the OS to let it work under "Network Service" as it should

THX

ZEE

Ultidev Team
#10 Posted : Saturday, November 12, 2011 12:26:07 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)
Hello, ZEE.

Please check whether Network Service user has Modify, Read, Write, Delete access rights to "c:\SYS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files". Our installer attempts to grant rights to the folder, and it uses Environment.GetEnvironmentVariable("WINDIR") to find Windows directory. To see whether that is working on your system, please open DOS prompt/Command Line window and run "set windir" command, and see whether it returns "C:\SYS". Also, please open "C:\Program Files\UltiDev\Web Server\UWS.Installer.log.txt" and see if you handling of Temporary ASP.NET folders had any problems.

Please let us know what you have found.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
1 user thanked Ultidev Team for this useful post.
ZEE on 11/12/2011(UTC)
ZEE
#11 Posted : Saturday, November 12, 2011 2:41:25 PM(UTC)
Groups: Member
Joined: 11/11/2011(UTC)
Posts: 5

Thanks: 1 times
Hi,

Checked "Network Service" user for Modify, Read, Write, Delete access rights to "c:\SYS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files" and it is OK, it has all rights

WinDir is "c:\sys", no problem from here... unless the software has code-wired "c:\windows" like so many others ;)

Checked the "C:\Program Files\UltiDev\Web Server\UWS.Installer.log.txt" log file and no errors were stated


Thx... ZEE
Ultidev Team
#12 Posted : Saturday, November 12, 2011 8:19:21 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)
Hello, ZEE.

No, we have not hard-coded "c:\windows", we used "Environment.GetEnvironmentVariable("WINDIR")" in up to build 12, and since build 13 we'll use different method that does not rely on environment variables.

We have googled exceptions you have mentioned and we see that it happens under IIS sometimes too. Do you by chance have an IIS on the same box? If so, could you please try to run the application under IIS and see if the problem is really UWS-specific?

Best regards,
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 (4)
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.