Compilation Error on "Global.GetApplicationPath(Request)" Function

I have installed the portal application on a windows 2000 advanced server with IIS5. When I try to run the site I get a compilation error on the  Global.GetApplicationPath(Request) funtion throughout the site with any page that has that funtion in it. I get this error when running ASP.NET Framework 2.0.

Example of error:

D:\WINNT\system32> "D:\WINNT\Microsoft.NET\Framework\v2.0.50727\vbc.exe" /t:library /utf8output /R:"D:\WINNT\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"D:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\portal\5c932d09\750eca95\App_global.asax.0p5eiqqe.dll" /R:"D:\WINNT\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"D:\WINNT\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"D:\WINNT\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"D:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\portal\5c932d09\750eca95\assembly\dl3\b31e1b68\009100e0_dc14c301\ASPNETPortal.DLL" /R:"D:\WINNT\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"D:\WINNT\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"D:\WINNT\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"D:\WINNT\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"D:\WINNT\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /out:"D:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\portal\5c932d09\750eca95\App_Web_desktopportalbanner.ascx.cdcab7d2.1xt8w7st.dll" /debug- /define:_MYTYPE=\"Web\" /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Specialized,System.Configuration,System.Text,System.Text.RegularExpressions,System.Web,System.Web.Caching,System.Web.SessionState,System.Web.Security,System.Web.Profile,System.Web.UI,System.Web.UI.WebControls,System.Web.UI.WebControls.WebParts,System.Web.UI.HtmlControls  "D:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\portal\5c932d09\750eca95\App_Web_desktopportalbanner.ascx.cdcab7d2.1xt8w7st.0.vb" "D:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\portal\5c932d09\750eca95\App_Web_desktopportalbanner.ascx.cdcab7d2.1xt8w7st.1.vb"


Microsoft (R) Visual Basic Compiler version 8.0.50727.42
for Microsoft (R) .NET Framework version 2.0.50727.42
Copyright (c) Microsoft Corporation.  All rights reserved.

D:\Program Files\ASP.NET Starter Kits\ASP.NET Portal (VBSDK)\PortalVBSDK\DesktopPortalBanner.ascx(25) : error BC30456: 'GetApplicationPath' is not a member of '<Default>'.

                LogoffLink = "<" & "span class=""Accent"">|</span>" & ControlChars.Cr & "<" & "a href=" & Global.GetApplicationPath(Request) & "/Admin/Logoff.aspx class=SiteLink> Logoff" & "<" & "/a>"
                                                                                                          ~~~~~~~~~~~~~~~~~~~~~~~~~                                                                    
D:\Program Files\ASP.NET Starter Kits\ASP.NET Portal (VBSDK)\PortalVBSDK\DesktopPortalBanner.ascx(81) : error BC30456: 'GetApplicationPath' is not a member of '<Default>'.

                                         __w.Write( Global.GetApplicationPath(Request) )
                                                    ~~~~~~~~~~~~~~~~~~~~~~~~~          
D:\Program Files\ASP.NET Starter Kits\ASP.NET Portal (VBSDK)\PortalVBSDK\DesktopPortalBanner.ascx(83) : error BC30456: 'GetApplicationPath' is not a member of '<Default>'.

      __w.Write( Global.GetApplicationPath(Request) )
                 ~~~~~~~~~~~~~~~~~~~~~~~~~          
D:\Program Files\ASP.NET Starter Kits\ASP.NET Portal (VBSDK)\PortalVBSDK\DesktopPortalBanner.ascx(86) : error BC30456: 'GetApplicationPath' is not a member of '<Default>'.

      __w.Write( Global.GetApplicationPath(Request) )
                 ~~~~~~~~~~~~~~~~~~~~~~~~~          
D:\Program Files\ASP.NET Starter Kits\ASP.NET Portal (VBSDK)\PortalVBSDK\DesktopPortalBanner.ascx(107) : error BC30456: 'GetApplicationPath' is not a member of '<Default>'.

              __w.Write( Global.GetApplicationPath(Request) )
                         ~~~~~~~~~~~~~~~~~~~~~~~~~

When I try running the application using ASP.NET 1.1 I get this error instead.

Access to the path "D:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\portal\ca7ee419\fd769eba" is denied.

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.UnauthorizedAccessException: Access to the path "D:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\portal\ca7ee419\fd769eba" is denied.

ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET write access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.

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:

[UnauthorizedAccessException: Access to the path "D:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\portal\ca7ee419\fd769eba" is denied.]
   System.IO.__Error.WinIOError(Int32 errorCode, String str) +393
   System.IO.Directory.InternalCreateDirectory(String fullPath, String path) +632
   System.IO.Directory.CreateDirectory(String path) +195
   System.Web.Compilation.PreservedAssemblyEntry.DoFirstTimeInit(HttpContext context) +85
   System.Web.Compilation.PreservedAssemblyEntry.EnsureFirstTimeInit(HttpContext context) +97
   System.Web.Compilation.PreservedAssemblyEntry.GetPreservedAssemblyEntry(HttpContext context, String virtualPath, Boolean fApplicationFile) +29
   System.Web.UI.TemplateParser.GetParserCacheItemFromPreservedCompilation() +91
   System.Web.UI.TemplateParser.GetParserCacheItemInternal(Boolean fCreateIfNotFound) +148
   System.Web.UI.TemplateParser.GetParserCacheItemWithNewConfigPath() +125
   System.Web.UI.TemplateParser.GetParserCacheItem() +88
   System.Web.UI.ApplicationFileParser.GetCompiledApplicationType(String inputFile, HttpContext context, ApplicationFileParser& parser) +171
   System.Web.HttpApplicationFactory.CompileApplication(HttpContext context) +43
   System.Web.HttpApplicationFactory.Init(HttpContext context) +485
   System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +170
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +414

 

It also seems that the ASPNET user account was not created right either because when I tried using the starter kit to install it, I kept getting an error that it could not find the ASPNET user account. When I installed the framework it created to account for me, but the install program for the starter kit is looking for the user <machinename>\ASPNET when really it is <workgroup>\ASPNET.

Example:

My computer name is NSI, so the program is looking for NSI\ASPNET, but when I view the user properties under the account tab it is listed like this. NSI1\ASPNET in the pre-windows 2000 section.

I need help. Any suggestions as to the fix needed?

0
JDGonier
2/10/2006 4:54:00 PM
asp.net.portal-starter-kit 2189 articles. 0 followers. Follow

4 Replies
526 Views

Similar Articles

[PageSpeed] 19

I had this same problem, there is a knowledgebase article that solved the problem for me:

http://support.microsoft.com/default.aspx?kbid=823379

I hope this helps.
0
plclogic
4/16/2006 5:56:34 PM

That helped with that error problem running the page, but I still have this problem.

"It also seems that the ASPNET user account was not created right either because when I tried using the starter kit to install it, I kept getting an error that it could not find the ASPNET user account. When I installed the framework it created to account for me, but the install program for the starter kit is looking for the user <machinename>\ASPNET when really it is <workgroup>\ASPNET.

Example:

My computer name is NSI, so the program is looking for NSI\ASPNET, but when I view the user properties under the account tab it is listed like this. NSI1\ASPNET in the pre-windows 2000 section. So the user account is really NSI1/ASPNET (where NSI1 = Workgroup).

I need help. Any suggestions as to the fix needed?"

 

0
JDGonier
4/19/2006 4:03:32 PM
Hi 
     It is look like Global is keyword with 2005
     Replace all the "Global.GetApplicationPath(Request)" with "[Global].GetApplicationPath(Request)"
    This work for me to convert Asp.net portal 2003.
regards
Suminda


Suminda
http://www.rentlanka.com/
0
earls
6/1/2006 1:37:20 AM

 

Sumida's answer worked for me as well with same problem in Time Tracker Starter Kit.

0
TimMartin
9/28/2006 1:23:27 PM
Reply:

Similar Artilces:

"Compilation Error Compiler Error Message: BC30002: Type "'ws.Email' is not defined." after webservice request.
Hi,  I created a Webservice, which sends emails of a filled form. Offline I have no problems to get it to work, but when I put my website online I get "Compilation Error Compiler Error Message: BC30002: Type "'ws.Email'  is not defined." It seems it can't find the webservice anymore, although I added the webreference (which worked fine) before I put the website online (with dir App_WebReferences -> ws -> Email.wsdl,...)  This is the code which requests the webrequest:Dim SendEmail As New ws.Email() SendEmail.Send_Mail(code, 2, TextB...

superreview requested: [Bug 319391] "eval('...') = ..." gives "invalid assignment lefthand side" as a compile-time error instead of as a runtime error : [Attachment 205374] revert regressing change
Brendan Eich <brendan@mozilla.org> has asked Mike Shaver <shaver@mozilla.org> for superreview: Bug 319391: "eval('...') = ..." gives "invalid assignment lefthand side" as a compile-time error instead of as a runtime error https://bugzilla.mozilla.org/show_bug.cgi?id=319391 Attachment 205374: revert regressing change https://bugzilla.mozilla.org/attachment.cgi?id=205374&action=edit ------- Additional Comments from Brendan Eich <brendan@mozilla.org> The effect is to turn a JSOP_EVAL in a left-hand side of assignment into a JSOP_SETCA...

Difference between Request.ServerVariables["HTTP_X_FORWARDED_FOR"] and Request.ServerVariables["REMOTE_ADDR"] in .net
Hi,      What is the difference between Request.ServerVariables["HTTP_X_FORWARDED_FOR"] and Request.ServerVariables["REMOTE_ADDR"] in Asp.Net. I think both are used for showing the system's IP address. then what's the major difference between both? anybody pls explain me clearly. RegardsVijay. Request.ServerVariables["HTTP_X_FORWARDED_FOR"] will tell you the IP if the user is behind a proxy server. You should use this first and if the value results in null or "unknown", then use Request.ServerVariables["RE...

superreview requested: [Bug 404716] AIX Compilation error for trunk build source xptcstubs_ppc_aix64.cpp : " nsIInterfaceInfo" did not find a declaration , "CallMethod" is not a member of "class nsXPT
Reed Loden [:reed] (busy until 12/11) <reed@reedloden.com> has asked Benjamin Smedberg [:bs] (bsmedberg) <benjamin@smedbergs.us> for superreview: Bug 404716: AIX Compilation error for trunk build source xptcstubs_ppc_aix64.cpp : "nsIInterfaceInfo" did not find a declaration , "CallMethod" is not a member of "class nsXPTCStubBase" https://bugzilla.mozilla.org/show_bug.cgi?id=404716 Attachment 291641: Patch V1 https://bugzilla.mozilla.org/attachment.cgi?id=291641&action=edit ------- Additional Comments from Reed Loden [:reed] (busy until...

superreview requested: [Bug 249578] Move XMLPrettyPrint chrome from "communicator" into "global" : [Attachment 152197] move prettyprint chrome to "global" package
Benjamin Smedberg <bsmedberg@covad.net> has asked neil@parkwaycc.co.uk <neil.parkwaycc.co.uk@myrealbox.com> for superreview: Bug 249578: Move XMLPrettyPrint chrome from "communicator" into "global" http://bugzilla.mozilla.org/show_bug.cgi?id=249578 Attachment 152197: move prettyprint chrome to "global" package http://bugzilla.mozilla.org/attachment.cgi?id=152197&action=edit ...

superreview requested: [Bug 350268] "}" in "new Function" should cause syntax error instead of making the rest be ignored : [Attachment 235536] fix
Brendan Eich <brendan@mozilla.org> has asked Mike Shaver <shaver@mozilla.org> for superreview: Bug 350268: "}" in "new Function" should cause syntax error instead of making the rest be ignored https://bugzilla.mozilla.org/show_bug.cgi?id=350268 Attachment 235536: fix https://bugzilla.mozilla.org/attachment.cgi?id=235536&action=edit ------- Additional Comments from Brendan Eich <brendan@mozilla.org> The old "forgot to check for unconsumed tokens" gotcha. /be ...

superreview requested: [Bug 166369] download "foo.binary" fails at 100% "because an unexpected error occurred" [@ nsIFile.leafName] : [Attachment 133662] Fixed so it compiles
Boris Zbarsky <bzbarsky@mit.edu> has asked Simon Fraser <sfraser@aol.net> for superreview: Bug 166369: download "foo.binary" fails at 100% "because an unexpected error occurred" [@ nsIFile.leafName] http://bugzilla.mozilla.org/show_bug.cgi?id=166369 Attachment 133662: Fixed so it compiles http://bugzilla.mozilla.org/attachment.cgi?id=133662&action=edit ------- Additional Comments from Boris Zbarsky <bzbarsky@mit.edu> Thoughts? ...

superreview requested: [Bug 384735] JS Error of "folderSummaryInfoEl. parseFolder is not a function" in newmailalert.js just after " Copy to folder by message filter", and the folder is locked, then s
David Bienvenu <bienvenu@nventure.com> has asked Scott MacGregor <mscott@mozilla.org> for superreview: Bug 384735: JS Error of "folderSummaryInfoEl.parseFolder is not a function" in newmailalert.js just after "Copy to folder by message filter", and the folder is locked, then subsequent problem occurs(e.g. copy of second or later mail by filter won't complete) https://bugzilla.mozilla.org/show_bug.cgi?id=384735 Attachment 268866: proposed fix https://bugzilla.mozilla.org/attachment.cgi?id=268866&action=edit ------- Additional Comments from Da...

superreview requested: [Bug 390160] "Out of memory" and " Nothing active on context" errors in Error console
Blake Kaplan <mrbkap@gmail.com> has asked Brendan Eich <brendan@mozilla.org> for superreview: Bug 390160: "Out of memory" and "Nothing active on context" errors in Error console https://bugzilla.mozilla.org/show_bug.cgi?id=390160 Attachment 274726: Proposed fix https://bugzilla.mozilla.org/attachment.cgi?id=274726&action=edit ------- Additional Comments from Blake Kaplan <mrbkap@gmail.com> This patch should fix this bug by not calling JS_GetScopeChain if there's no JS on the stack. ...

Starter kit and "404" error.
Hi, I am very embarrassed to ask such a newbie question. I do most of my work in notepad. I have some VB6 experience. Go easy on me. I am trying load the ASP.NET Reports starter kit project file in VS.NET 2002 (ReportsVSVB.vbproj) I can't get past a 404 error telling me my URL must match my file path: Unable to open web project '/'. The file path: 'x' does not correspond to the URL 'y'. The two need to map to the same server location. HTTP Error 404: Not Found I'm sure that path('x') = URL('y'). I've tried various things and combed this site for clues, but I am still clu...

compilation defaultLanguage="vb" debug="true" ERROR
I don't have this error when I visit the site on 127.0.0.1 But I have it when I visit my site on the internet!! The ERROR: Server Error in '/' 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: It is an error to use a section registered as allowDefinition='MachineOnly' beyond machi...

superreview requested: [Bug 390160] "Out of memory" and " Nothing active on context" errors in Error console #2
Blake Kaplan <mrbkap@gmail.com> has asked Johnny Stenback <jst@mozilla.org> for superreview: Bug 390160: "Out of memory" and "Nothing active on context" errors in Error console https://bugzilla.mozilla.org/show_bug.cgi?id=390160 Attachment 274847: Another attempt https://bugzilla.mozilla.org/attachment.cgi?id=274847&action=edit ------- Additional Comments from Blake Kaplan <mrbkap@gmail.com> This even innerizes, which makes sense from an API standpoint -- if the global object doesn't have an innerObject hook (as it would be for most em...

What is a "Session" and a "Request" ??
Hello,  I'm new to ASP.Net 2.0 , and I still can't understand what is a "Session" and what is a "Request" ??   Thank You the client browser will request a page and the Request object will give you information about what page they are requesting. the session is a statebag where you can store information that will continue to exist after the page has executed.  information can be added to the Session in page A and then read back from the Session in page B.  the session object is unique per user - so one users does not see data stored b...

superreview requested: [Bug 408812] AIX Compilation error for trunk build source nsThebesRegion.cpp : ./dist/ include/gfx/nsRegion.h", line 85.18: 1540-0723 (S) The inline function " void operator del
Shailen <shailen.n.jain@gmail.com> has asked Robert O'Callahan (:roc) <roc@ocallahan.org> for superreview: Bug 408812: AIX Compilation error for trunk build source nsThebesRegion.cpp : ../dist/include/gfx/nsRegion.h", line 85.18: 1540-0723 (S) The inline function "void operator delete(void *, size_t)" is referenced, but it is not defined. https://bugzilla.mozilla.org/show_bug.cgi?id=408812 Attachment 293811: Patch V3 https://bugzilla.mozilla.org/attachment.cgi?id=293811&action=edit ...

Web resources about - Compilation Error on "Global.GetApplicationPath(Request)" Function - asp.net.portal-starter-kit

Resources last updated: 1/19/2016 9:38:20 PM