Hello:
I have an app that has been running for several months, but
after installing SP4 on the Win2k server, it would no
longer run.
First I had a TemplateControl parser exception when the
server tried to compile and run the ASPX page. (Which runs
fine on my workstation).
After stripping out everything from the page except the
line linking to the code behind, I was able to run again.
However, when I try to call a function in the page (by
passing an url parameter) that uses a SQL Server database,
I get some kind of security exception:
[InvalidOperationException: Computer name could not be
obtained.]
System.Environment.get_MachineName() +155
System.Data.SqlClient.SqlConnectionString.MachineN ame() +167
System.Data.SqlClient.SqlConnectionString.WorkStat ionId() +27
System.Data.SqlClient.SqlConnectionString.CheckSet Network()
+124
System.Data.SqlClient.SqlConnectionString.Validate Parse() +683
System.Data.Common.DBConnectionString..ctor(String
connectionString, UdlSupport checkForUdl) +144
System.Data.SqlClient.SqlConnectionString..ctor(St ring
connectionString) +13
System.Data.SqlClient.SqlConnectionString.ParseStr ing(String
connectionString) +96
System.Data.SqlClient.SqlConnection.set_Connection String(String
value) +11
CIS.Data.Connection.set_ConnectionString(String Value)
CIS.Data.Connection..ctor(String connectString)
CIS.Data.Database..ctor(Object connectionstring)
webtrack.frmProTrack.DoLogin()
webtrack.frmProTrack.Page_Load(Object sender, EventArgs e)
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework
Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
How do I change the security to make this work again? I
have the ASP.Net process impersonating a network login with
access to see the SQL Server machine, and login to SQL Server.
Thanks,
Mat 4 1311
Mathew,
Does the process account (ASPNET by default) have the
SeImpersonatePrivilege (Impersontate a client after authentication) user
right? If not, you'll need to give it that right.
Jim Cheshire, MCSE, MCSD [MSFT]
Developer Support
ASP.NET ja******@online.microsoft.com
This post is provided as-is with no warranties and confers no rights.
-------------------- Content-Class: urn:content-classes:message From: "Mathew" <mv******@yahoo.com> Sender: "Mathew" <mv******@yahoo.com> Subject: ASP.Net security after SP4 on W2k Server Date: Mon, 17 Nov 2003 13:57:33 -0800 Lines: 60 Message-ID: <05****************************@phx.gbl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Newsreader: Microsoft CDO for Windows 2000 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Thread-Index: AcOtVc35V6v4yNzNTribdBdO3IBgAA== Newsgroups: microsoft.public.dotnet.framework.aspnet Path: cpmsftngxa06.phx.gbl Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:191531 NNTP-Posting-Host: TK2MSFTNGXA09 10.40.1.161 X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
Hello: I have an app that has been running for several months, but after installing SP4 on the Win2k server, it would no longer run. First I had a TemplateControl parser exception when the server tried to compile and run the ASPX page. (Which runs fine on my workstation). After stripping out everything from the page except the line linking to the code behind, I was able to run again. However, when I try to call a function in the page (by passing an url parameter) that uses a SQL Server database, I get some kind of security exception: [InvalidOperationException: Computer name could not be obtained.] System.Environment.get_MachineName() +155 System.Data.SqlClient.SqlConnectionString.MachineN ame() +167
System.Data.SqlClient.SqlConnectionString.WorkSta tionId() +27
System.Data.SqlClient.SqlConnectionString.CheckSe tNetwork() +124
System.Data.SqlClient.SqlConnectionString.Validat eParse() +683 System.Data.Common.DBConnectionString..ctor(String connectionString, UdlSupport checkForUdl) +144 System.Data.SqlClient.SqlConnectionString..ctor(St ring connectionString) +13
System.Data.SqlClient.SqlConnectionString.ParseSt ring(String connectionString) +96
System.Data.SqlClient.SqlConnection.set_Connectio nString(String value) +11 CIS.Data.Connection.set_ConnectionString(String Value) CIS.Data.Connection..ctor(String connectString) CIS.Data.Database..ctor(Object connectionstring) webtrack.frmProTrack.DoLogin() webtrack.frmProTrack.Page_Load(Object sender, EventArgs e) System.Web.UI.Control.OnLoad(EventArgs e) +67 System.Web.UI.Control.LoadRecursive() +35 System.Web.UI.Page.ProcessRequestMain() +731 ---------------------------------------------------------------------------
-----Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573 How do I change the security to make this work again? I have the ASP.Net process impersonating a network login with access to see the SQL Server machine, and login to SQL Server. Thanks, Mat
I was able to fix this by taking your advice.
In the domain controller, under the default policy, add
the desired users to the Enable Impersonatation setting.
This is probably why I wasn't able to compile before as
well. -----Original Message----- Mathew,
Does the process account (ASPNET by default) have the SeImpersonatePrivilege (Impersontate a client after
authentication) userright? If not, you'll need to give it that right.
Jim Cheshire, MCSE, MCSD [MSFT] Developer Support ASP.NET ja******@online.microsoft.com
This post is provided as-is with no warranties and
confers no rights. --------------------Content-Class: urn:content-classes:message From: "Mathew" <mv******@yahoo.com> Sender: "Mathew" <mv******@yahoo.com> Subject: ASP.Net security after SP4 on W2k Server Date: Mon, 17 Nov 2003 13:57:33 -0800 Lines: 60 Message-ID: <05****************************@phx.gbl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Newsreader: Microsoft CDO for Windows 2000 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Thread-Index: AcOtVc35V6v4yNzNTribdBdO3IBgAA== Newsgroups: microsoft.public.dotnet.framework.aspnet Path: cpmsftngxa06.phx.gbl Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.aspnet:191531NNTP-Posting-Host: TK2MSFTNGXA09 10.40.1.161 X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
Hello: I have an app that has been running for several months,
butafter installing SP4 on the Win2k server, it would no longer run. First I had a TemplateControl parser exception when the server tried to compile and run the ASPX page. (Which
runsfine on my workstation). After stripping out everything from the page except the line linking to the code behind, I was able to run
again.However, when I try to call a function in the page (by passing an url parameter) that uses a SQL Server
database,I get some kind of security exception: [InvalidOperationException: Computer name could not be obtained.] System.Environment.get_MachineName() +155 System.Data.SqlClient.SqlConnectionString.MachineN ame
() +167 System.Data.SqlClient.SqlConnectionString.WorkSt ationId
() +27 System.Data.SqlClient.SqlConnectionString.CheckS etNetwor
k()+124
System.Data.SqlClient.SqlConnectionString.Valida teParse
() +683 System.Data.Common.DBConnectionString..ctor(String connectionString, UdlSupport checkForUdl) +144 System.Data.SqlClient.SqlConnectionString..ctor
(StringconnectionString) +13
System.Data.SqlClient.SqlConnectionString.ParseS tring
(StringconnectionString) +96
System.Data.SqlClient.SqlConnection.set_Connecti onString
(Stringvalue) +11 CIS.Data.Connection.set_ConnectionString(String
Value) CIS.Data.Connection..ctor(String connectString) CIS.Data.Database..ctor(Object connectionstring) webtrack.frmProTrack.DoLogin() webtrack.frmProTrack.Page_Load(Object sender,
EventArgs e) System.Web.UI.Control.OnLoad(EventArgs e) +67 System.Web.UI.Control.LoadRecursive() +35 System.Web.UI.Page.ProcessRequestMain() +731 --------------------------------------------------------
------------------------Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573 How do I change the security to make this work again? I have the ASP.Net process impersonating a network login
withaccess to see the SQL Server machine, and login to SQL
Server.Thanks, Mat
.
Glad to know it's fixed, Mathew.
Jim Cheshire, MCSE, MCSD [MSFT]
Developer Support
ASP.NET ja******@online.microsoft.com
This post is provided as-is with no warranties and confers no rights.
-------------------- Content-Class: urn:content-classes:message From: <an*******@discussions.microsoft.com> Sender: <an*******@discussions.microsoft.com> References: <05****************************@phx.gbl>
<52**************@cpmsftngxa06.phx.gbl>Subject: RE: ASP.Net security after SP4 on W2k Server Date: Tue, 18 Nov 2003 13:02:47 -0800 Lines: 116 Message-ID: <03****************************@phx.gbl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Newsreader: Microsoft CDO for Windows 2000 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Thread-Index: AcOuF1GBA2GnXGsQSj2Xmuqq1GUuHQ== Newsgroups: microsoft.public.dotnet.framework.aspnet Path: cpmsftngxa06.phx.gbl Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:191818 NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164 X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
I was able to fix this by taking your advice. In the domain controller, under the default policy, add the desired users to the Enable Impersonatation setting.
This is probably why I wasn't able to compile before as well.
-----Original Message----- Mathew,
Does the process account (ASPNET by default) have the SeImpersonatePrivilege (Impersontate a client after authentication) userright? If not, you'll need to give it that right.
Jim Cheshire, MCSE, MCSD [MSFT] Developer Support ASP.NET ja******@online.microsoft.com
This post is provided as-is with no warranties and confers no rights. --------------------Content-Class: urn:content-classes:message From: "Mathew" <mv******@yahoo.com> Sender: "Mathew" <mv******@yahoo.com> Subject: ASP.Net security after SP4 on W2k Server Date: Mon, 17 Nov 2003 13:57:33 -0800 Lines: 60 Message-ID: <05****************************@phx.gbl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Newsreader: Microsoft CDO for Windows 2000 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Thread-Index: AcOtVc35V6v4yNzNTribdBdO3IBgAA== Newsgroups: microsoft.public.dotnet.framework.aspnet Path: cpmsftngxa06.phx.gbl Xref: cpmsftngxa06.phx.gblmicrosoft.public.dotnet.framework.aspnet:191531NNTP-Posting-Host: TK2MSFTNGXA09 10.40.1.161 X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
Hello: I have an app that has been running for several months,butafter installing SP4 on the Win2k server, it would no longer run. First I had a TemplateControl parser exception when the server tried to compile and run the ASPX page. (Whichrunsfine on my workstation). After stripping out everything from the page except the line linking to the code behind, I was able to runagain.However, when I try to call a function in the page (by passing an url parameter) that uses a SQL Serverdatabase,I get some kind of security exception: [InvalidOperationException: Computer name could not be obtained.] System.Environment.get_MachineName() +155 System.Data.SqlClient.SqlConnectionString.MachineN ame() +167 System.Data.SqlClient.SqlConnectionString.WorkS tationId() +27 System.Data.SqlClient.SqlConnectionString.Check SetNetwork()+124
System.Data.SqlClient.SqlConnectionString.Valid ateParse() +683 System.Data.Common.DBConnectionString..ctor(String connectionString, UdlSupport checkForUdl) +144 System.Data.SqlClient.SqlConnectionString..ctor(StringconnectionString) +13
System.Data.SqlClient.SqlConnectionString.Parse String(StringconnectionString) +96
System.Data.SqlClient.SqlConnection.set_Connect ionString(Stringvalue) +11 CIS.Data.Connection.set_ConnectionString(StringValue) CIS.Data.Connection..ctor(String connectString) CIS.Data.Database..ctor(Object connectionstring) webtrack.frmProTrack.DoLogin() webtrack.frmProTrack.Page_Load(Object sender,EventArgs e) System.Web.UI.Control.OnLoad(EventArgs e) +67 System.Web.UI.Control.LoadRecursive() +35 System.Web.UI.Page.ProcessRequestMain() +731 --------------------------------------------------------------------------------Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573 How do I change the security to make this work again? I have the ASP.Net process impersonating a network login withaccess to see the SQL Server machine, and login to SQLServer.Thanks, Mat
.
Based on the amount of virus spam in my spamcatcher, other people have
read or had this problem.
Here's a Microsoft support link that solved it:
BUG: IWAM Account Is Not Granted the Impersonate Privilege for ASP.NET
1.1 on a Windows 2000 Domain Controller with SP4 http://support.microsoft.com/default.aspx?kbid=824308
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Sean Newton |
last post by:
I am absolutely bewildered by now by the Microsoft.Samples SSPI and Security
assemblies. I've been trying to set these up in a very straightforward
harness in the way that I'd like to be able to...
|
by: Marina |
last post by:
Hi,
I am trying to find the minimum security settings to allow a windows control
embedded in IE have full trust.
If I give the entire Intranet zone full trust, this works. However, this is...
|
by: Sean Newton |
last post by:
I am absolutely bewildered by now by the Microsoft.Samples SSPI and Security
assemblies. I've been trying to set these up in a very straightforward
harness in the way that I'd like to be able to...
|
by: Magdelin |
last post by:
Hi,
My security team thinks allowing communication between the two IIS instances
leads to severe security risks. Basically, we want to put our presentation
tier on the perimeter network and the...
|
by: Ken Fine |
last post by:
I want to add the security question and answer security feature to the
ChangePassword control. I am aware that this functionality is built into the
PasswordRecovery tool. I have implemented the...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |