|
-
Aug 5th, 2003, 04:50 AM
#1
Thread Starter
Frenzied Member
Authentication
I try to deploy my app to the web server. On my pc everything works fine. In my Web.config file I have
Code:
<authentication mode="Windows" />
But this doesn't work when I deploy, do I have to change the web.config?
-
Aug 5th, 2003, 07:41 AM
#2
Why not explain what 'doesnt work' mean?
Error? Does nothing? What?
-
Aug 5th, 2003, 08:06 AM
#3
Thread Starter
Frenzied Member
ok, this is the error message:
Code:
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: BC30138: Unable to create temp file in path 'C:\DOCUME~1\TALKAC~1\ASPNET\LOCALS~1\Temp\': System Error &H80070005&
Source Error:
[No relevant source lines]
Source File: vbc : Line: 0
Show Detailed Compiler Output:
C:\WINNT\system32> "c:\winnt\microsoft.net\framework\v1.1.4322\vbc.exe" /t:library /utf8output /R:"c:\winnt\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.xml.dll" /R:"c:\winnt\assembly\gac\system.web.mobile\1.0.5000.0__b03f5f7f11d50a3a\system.web.mobile.dll" /R:"c:\winnt\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system.drawing.dll" /R:"c:\winnt\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.data.dll" /R:"c:\winnt\assembly\gac\system.enterpriseservices\1.0.5000.0__b03f5f7f11d50a3a\system.enterpriseservices.dll" /R:"c:\winnt\assembly\gac\system.web.services\1.0.5000.0__b03f5f7f11d50a3a\system.web.services.dll" /R:"c:\winnt\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll" /R:"c:\winnt\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.web.dll" /out:"C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\0a700e27\a8f8cdac\blybvjia.dll" /debug- "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\0a700e27\a8f8cdac\blybvjia.0.vb"
Microsoft (R) Visual Basic .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322.573
Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.
vbc : error BC30138: Unable to create temp file in path 'C:\DOCUME~1\TALKAC~1\ASPNET\LOCALS~1\Temp\': System Error &H80070005&
Show Complete Compilation Source:
Line 1: '------------------------------------------------------------------------------
Line 2: ' <autogenerated>
Line 3: ' This code was generated by a tool.
Line 4: ' Runtime Version: 1.1.4322.573
Line 5: '
Line 6: ' Changes to this file may cause incorrect behavior and will be lost if
Line 7: ' the code is regenerated.
Line 8: ' </autogenerated>
Line 9: '------------------------------------------------------------------------------
Line 10:
Line 11: Option Strict Off
Line 12: Option Explicit On
Line 13:
Line 14: Imports Microsoft.VisualBasic
Line 15: Imports System
Line 16: Imports System.Collections
Line 17: Imports System.Collections.Specialized
Line 18: Imports System.Configuration
Line 19: Imports System.Text
Line 20: Imports System.Text.RegularExpressions
Line 21: Imports System.Web
Line 22: Imports System.Web.Caching
Line 23: Imports System.Web.Security
Line 24: Imports System.Web.SessionState
Line 25: Imports System.Web.UI
Line 26: Imports System.Web.UI.HtmlControls
Line 27: Imports System.Web.UI.WebControls
Line 28:
Line 29: Namespace ASP
Line 30:
Line 31: Public Class punctual_aspx
Line 32: Inherits System.Web.UI.Page
Line 33: Implements System.Web.SessionState.IRequiresSessionState
Line 34:
Line 35: Private Shared __autoHandlers As Integer
Line 36:
Line 37:
Line 38: #ExternalSource("c:\inetpub\web3938\www\punctual.aspx",17)
Line 39: Protected time As System.Web.UI.WebControls.Label
Line 40:
Line 41: #End ExternalSource
Line 42:
Line 43: Private Shared __initialized As Boolean = false
Line 44:
Line 45: Private Shared __fileDependencies As System.Collections.ArrayList
Line 46:
Line 47:
Line 48: #ExternalSource("c:\inetpub\web3938\www\punctual.aspx",2)
Line 49:
Line 50:
Line 51: Sub Page_Load()
Line 52: time.text=Hour(Now) & ":" & Minute(Now) & ":" & Second(Now)
Line 53: End Sub
Line 54:
Line 55:
Line 56: #End ExternalSource
Line 57:
Line 58: Public Sub New()
Line 59: MyBase.New
Line 60: Dim dependencies As System.Collections.ArrayList
Line 61: If (ASP.punctual_aspx.__initialized = false) Then
Line 62: dependencies = New System.Collections.ArrayList
Line 63: dependencies.Add("c:\inetpub\web3938\www\punctual.aspx")
Line 64: ASP.punctual_aspx.__fileDependencies = dependencies
Line 65: ASP.punctual_aspx.__initialized = true
Line 66: End If
Line 67: End Sub
Line 68:
Line 69: Protected Overrides Property AutoHandlers As Integer
Line 70: Get
Line 71: Return ASP.punctual_aspx.__autoHandlers
Line 72: End Get
Line 73: Set
Line 74: ASP.punctual_aspx.__autoHandlers = value
Line 75: End Set
Line 76: End Property
Line 77:
Line 78: Protected ReadOnly Property ApplicationInstance As System.Web.HttpApplication
Line 79: Get
Line 80: Return CType(Me.Context.ApplicationInstance,System.Web.HttpApplication)
Line 81: End Get
Line 82: End Property
Line 83:
Line 84: Public Overrides ReadOnly Property TemplateSourceDirectory As String
Line 85: Get
Line 86: Return "/"
Line 87: End Get
Line 88: End Property
Line 89:
Line 90: Private Function __BuildControltime() As System.Web.UI.Control
Line 91: Dim __ctrl As System.Web.UI.WebControls.Label
Line 92:
Line 93: #ExternalSource("c:\inetpub\web3938\www\punctual.aspx",17)
Line 94: __ctrl = New System.Web.UI.WebControls.Label
Line 95:
Line 96: #End ExternalSource
Line 97: Me.time = __ctrl
Line 98:
Line 99: #ExternalSource("c:\inetpub\web3938\www\punctual.aspx",17)
Line 100: __ctrl.ID = "time"
Line 101:
Line 102: #End ExternalSource
Line 103: Return __ctrl
Line 104: End Function
Line 105:
Line 106: Private Sub __BuildControlTree(ByVal __ctrl As System.Web.UI.Control)
Line 107: Dim __parser As System.Web.UI.IParserAccessor = CType(__ctrl,System.Web.UI.IParserAccessor)
Line 108:
Line 109: #ExternalSource("c:\inetpub\web3938\www\punctual.aspx",1)
Line 110: __parser.AddParsedSubObject(New System.Web.UI.LiteralControl(""&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&"<html>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&"<head>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&" <title>The Punctual Web Server</title>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&"</head>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&"<body>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&" "& _
Line 111: " <h1>Welcome"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&" </h1>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&" In WebServerLand the time is currently: "&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&" "))
Line 112:
Line 113: #End ExternalSource
Line 114:
Line 115: #ExternalSource("c:\inetpub\web3938\www\punctual.aspx",1)
Line 116: Me.__BuildControltime
Line 117:
Line 118: #End ExternalSource
Line 119:
Line 120: #ExternalSource("c:\inetpub\web3938\www\punctual.aspx",1)
Line 121: __parser.AddParsedSubObject(Me.time)
Line 122:
Line 123: #End ExternalSource
Line 124:
Line 125: #ExternalSource("c:\inetpub\web3938\www\punctual.aspx",1)
Line 126: __parser.AddParsedSubObject(New System.Web.UI.LiteralControl(""&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&"</body>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&"</html>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)))
Line 127:
Line 128: #End ExternalSource
Line 129: End Sub
Line 130:
Line 131: Protected Overrides Sub FrameworkInitialize()
Line 132: Me.__BuildControlTree(Me)
Line 133: Me.FileDependencies = ASP.punctual_aspx.__fileDependencies
Line 134: Me.EnableViewStateMac = true
Line 135: Me.Request.ValidateInput
Line 136: End Sub
Line 137:
Line 138: Public Overrides Function GetTypeHashCode() As Integer
Line 139: Return 939796707
Line 140: End Function
Line 141: End Class
Line 142: End Namespace
Line 143:
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
-
Aug 5th, 2003, 08:35 AM
#4
Ok, well that has nothing to do with your authentication. The ASPNET account probably is not setup correctly on the server.
-
Aug 6th, 2003, 03:01 PM
#5
Lively Member
You may need to configure the machine.config file for .net framework.
How do you want to authenticate your users? Windows, Forms, Passport, None? How do you want IIS to authenticate users? Windows, None, Basic, Digest? Do you use any other services like a database or active directory(AD)? If so are these resouces located on the same server, or are they on a different box?
I ran into the same problem with my first app. We use windows authentication in ASP.Net, IIS, Sql Server, and AD. To get the app working I did the following
ASP.Net - web.config file
Code:
<configuration>
<system.web>
<authentication mode="windows" />
<identity impersonate="true" />
<authorization>
<deny users="?" />
</authorization>
</system.web>
</configuration>
IIS
Uncheck Anonymous accounts
check only Integrated Windows Authentication
Active Directory
Create domain account [domain]\ASPNet
The account can be any name you choose
Find the computer that IIS runs on and open up the properties window.
Check the "Trust for Delegation" box
Machine.config file
Find the machine.config file on the server.
Open the file and find the <proccessmodel> tag
Change the username and password to the domain account you created.
Restart IIS.
WARNING this will effect all other ASP.Net applications running on this instance of IIS
Hope this helps.
Jason Meckley
Database Analyst
WITF
-
Aug 7th, 2003, 03:11 AM
#6
Lively Member
Hello,
with all respect to Jason's answer but I think it has something to do with the setup of the .NET framework.
In the past, there have been several problems with the installation of .NET framework.
So try to reinstall it by this :
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322>aspnet_regiis -i
try also the /? to see other parameters.
2 remarks :
* Windows can be winnt
* v1.1.4322 can be v1.0.3755
HTH
-
Aug 7th, 2003, 03:13 AM
#7
Lively Member
I should say... try first my thing and try then Jason his solution. It will be one of the two.
It's or setup or security settings.
Bjorn
-
Aug 12th, 2003, 05:17 AM
#8
Thread Starter
Frenzied Member
I still get this error:
Code:
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='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Source Error:
Line 23: "Forms", "Passport" and "None"
Line 24: -->
Line 25: <authentication mode="Windows" />
Line 26:
Line 27:
Source File: c:\inetpub\web3938\www\gf\web.config Line: 25
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
Any good ideas? I can run a simple application with the code shown below without any problems.
Code:
<%@ Page Language="vb" %>
<script runat="server">
Sub Page_Load()
time.text=Hour(Now) & ":" & Minute(Now) & ":" & Second(Now)
End Sub
</script>
<html>
<head>
<title>The Punctual Web Server</title>
</head>
<body>
<h1>Welcome
</h1>
In WebServerLand the time is currently:
<asp:label id="time" runat="server"></asp:label>
</body>
</html>
To Jmeckley: I've tried to use your web.config file, but the same error appears.
-
Aug 12th, 2003, 05:21 AM
#9
Thread Starter
Frenzied Member
Now I saw that the server message is:
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
and on my pc it is v1.0.3705, could this be the reason? Would the solution be to reinstall on my pc?
-
Aug 12th, 2003, 05:47 AM
#10
Lively Member
Hi Hpl,
please don't reinstall your windows ....
Just change 1 letter in your web.config ... it will be LESS effort then reinstalling windows
Look, xml is case-sensitive.. so this is the problem :
<authentication mode="Windows" />
must be
<authentication mode="windows" />
HTH
Bjorn
-
Aug 12th, 2003, 06:20 AM
#11
Thread Starter
Frenzied Member
Hi Bjorn, I've tried to change to "windows" but the error is still the same.
-
Aug 12th, 2003, 06:31 AM
#12
Thread Starter
Frenzied Member
To Bjorn: what I meant by "Reinstall" was to reinstall the Framework. Will it matter whether I install v1.0.3705 or v1.1.4322?
-
Aug 12th, 2003, 06:36 AM
#13
Lively Member
Yes, install the newest version
-
Aug 12th, 2003, 06:59 AM
#14
Thread Starter
Frenzied Member
Now I installed v1.1.4322, but the problem is still there.
-
Aug 12th, 2003, 07:08 AM
#15
Lively Member
Originally posted by hpl
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
did you do this ?
-
Aug 12th, 2003, 07:29 AM
#16
Thread Starter
Frenzied Member
The problem occurs only on the webserver, not on my localhost. You can reach the address at www.vbdotnet.dk/GF. I don't have permission on this web server, but what is it that has to be changed? Then I can mail the supplier and get it fixed that way.
-
Aug 12th, 2003, 07:34 AM
#17
Lively Member
it's pretty hard to analyze the problem if you don't own the machine.
Maybe you could just send it to the support of the provider and explain your problem including the Framework details.
HTH
-
Aug 14th, 2003, 03:40 AM
#18
Addicted Member
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
MachineToApplication error, its misconfiguration of your server.
Is your site in the root of a site (for example http://www.domain.com) or in a virtual path (http://www.domain.com/site1)?
If running in virtual folder, make sure the folder is tagged as application (see IIS - site properties, create button)
If this is correct, do u have frontpage server extentions installed?
Do u use an ASP.NET account with enough priveleges to run the site?
if this still doesnt work, just create a dummy aspx file and check if your server can run any aspx file at all.
===
ps. dont worry about the version of .NET, if you got 1.0.3xxx on your local pc u still running Framework 1.0.
If you see 1.1.4xxx then you got Framework 1.1
Running a site on 1.1 thats builded on 1.0 must run fine.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|