Showing posts with label applications. Show all posts
Showing posts with label applications. Show all posts

Wednesday, March 28, 2012

The compiler failed with error code 128

HELP!!!!
We have got a W2k server running IIS5 with .NET framework 1.1 and .NET
framework SP1. All ASP.NET applications cannot run on this box. It all
returned with the same error:
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: The compiler failed with error code 128.
I have made sure there is only ASP.NET ISAPI filter running and tried
aspnet_iis -i. Basically I'm out of ideas. Can someone please tell me what
the heck is going on here?
RogerHi, Roger.
I googled for "The compiler failed with error code 128"
and found a few references. The most promising are :
http://www.sitepoint.com/forums/pri...ad.php?t=164998
where it's reported that either
http://www.hanselman.com/blog/Perma...b4.
aspx
or
http://www.webservertalk.com/Uwe/Fo...
irus_k=100252
Here's the Google search,
to facilitate your search for more info:
http://www.google.com/search?as_q=&...ch=&safe=images
Good luck !
Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaol
=====================
"Roger Wang" <rogerw@dotnet.itags.org.sybrel.com> wrote in message
news:uXyaKb$CFHA.3376@dotnet.itags.org.TK2MSFTNGP12.phx.gbl...
> HELP!!!!
> We have got a W2k server running IIS5 with .NET framework 1.1 and .NET
> framework SP1. All ASP.NET applications cannot run on this box. It all
> returned with the same error:
> 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: The compiler failed with error code 128.
>
> I have made sure there is only ASP.NET ISAPI filter running and tried
> aspnet_iis -i. Basically I'm out of ideas. Can someone please tell me what
> the heck is going on here?
> Roger
>
I have the same error too.
I installed the SP1 of .NET Framework:
http://www.microsoft.com/downloads/...db-a83353618b38
and when I restarted my computer I could see my aspx pages, but then, when I
opened Visual Studio.NET and I continued with my ASP.NET application, when I
debug my app the error occurred again.
I don't know why, and I don't know if there's a good solution
I updated Windows but the problem continues.
I have Windows 2000 Sever with SP3.
I hope someone can help me.
Regards.
"Juan T. Llibre" wrote:

> Hi, Roger.
> I googled for "The compiler failed with error code 128"
> and found a few references. The most promising are :
> http://www.sitepoint.com/forums/pri...ad.php?t=164998
> where it's reported that either
> http://www.hanselman.com/blog/Perma...b
4.aspx
> or
> http://www.webservertalk.com/Uwe/Fo...ode-128

> solved the problem.
> Though both links refer to faulty ISAPI filter
> issues, which you say you've discarded, it might
> help you to get the background info at those links.
> There's an additional comment by Jacob Yang
> ( Microsoft Online Partner Support ) which refers
> that the issue might be related to this backdoor trojan:
> http://de.mcafee.com/root/genericVI...&virus_k=100252
> Here's the Google search,
> to facilitate your search for more info:
> http://www.google.com/search?as_q=&...ch=&safe=images
> Good luck !
>
> Juan T. Llibre
> ASP.NET MVP
> http://asp.net.do/foros/
> Foros de ASP.NET en Espa?ol
> =====================
> "Roger Wang" <rogerw@dotnet.itags.org.sybrel.com> wrote in message
> news:uXyaKb$CFHA.3376@dotnet.itags.org.TK2MSFTNGP12.phx.gbl...
>
>

Monday, March 26, 2012

The compiler failed with error code 128

HELP!!!!

We have got a W2k server running IIS5 with .NET framework 1.1 and .NET
framework SP1. All ASP.NET applications cannot run on this box. It all
returned with the same error:

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: The compiler failed with error code 128.

I have made sure there is only ASP.NET ISAPI filter running and tried
aspnet_iis -i. Basically I'm out of ideas. Can someone please tell me what
the heck is going on here?

RogerHi, Roger.

I googled for "The compiler failed with error code 128"
and found a few references. The most promising are :

http://www.sitepoint.com/forums/pri...ad.php?t=164998
where it's reported that either
http://www.hanselman.com/blog/Perma...ad081eaab4.aspx
or
http://www.dotnetmonster.com/Uwe/Fo...-error-code-128
solved the problem.

Though both links refer to faulty ISAPI filter
issues, which you say you've discarded, it might
help you to get the background info at those links.

There's an additional comment by Jacob Yang
( Microsoft Online Partner Support ) which refers
that the issue might be related to this backdoor trojan:
http://de.mcafee.com/root/genericVI...&virus_k=100252

Here's the Google search,
to facilitate your search for more info:

http://www.google.com/search?as_q=&...ch=&safe=images

Good luck !

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaol
=====================

"Roger Wang" <rogerw@dotnet.itags.org.sybrel.com> wrote in message
news:uXyaKb$CFHA.3376@dotnet.itags.org.TK2MSFTNGP12.phx.gbl...
> HELP!!!!
> We have got a W2k server running IIS5 with .NET framework 1.1 and .NET
> framework SP1. All ASP.NET applications cannot run on this box. It all
> returned with the same error:
> 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: The compiler failed with error code 128.
>
> I have made sure there is only ASP.NET ISAPI filter running and tried
> aspnet_iis -i. Basically I'm out of ideas. Can someone please tell me what
> the heck is going on here?
> Roger
I have the same error too.
I installed the SP1 of .NET Framework:
http://www.microsoft.com/downloads/...db-a83353618b38
and when I restarted my computer I could see my aspx pages, but then, when I
opened Visual Studio.NET and I continued with my ASP.NET application, when I
debug my app the error occurred again.
I don't know why, and I don't know if there's a good solution
I updated Windows but the problem continues.
I have Windows 2000 Sever with SP3.
I hope someone can help me.
Regards.

"Juan T. Llibre" wrote:

> Hi, Roger.
> I googled for "The compiler failed with error code 128"
> and found a few references. The most promising are :
> http://www.sitepoint.com/forums/pri...ad.php?t=164998
> where it's reported that either
> http://www.hanselman.com/blog/Perma...ad081eaab4.aspx
> or
> http://www.dotnetmonster.com/Uwe/Fo...-error-code-128
> solved the problem.
> Though both links refer to faulty ISAPI filter
> issues, which you say you've discarded, it might
> help you to get the background info at those links.
> There's an additional comment by Jacob Yang
> ( Microsoft Online Partner Support ) which refers
> that the issue might be related to this backdoor trojan:
> http://de.mcafee.com/root/genericVI...&virus_k=100252
> Here's the Google search,
> to facilitate your search for more info:
> http://www.google.com/search?as_q=&...ch=&safe=images
> Good luck !
>
> Juan T. Llibre
> ASP.NET MVP
> http://asp.net.do/foros/
> Foros de ASP.NET en Espa?ol
> =====================
> "Roger Wang" <rogerw@dotnet.itags.org.sybrel.com> wrote in message
> news:uXyaKb$CFHA.3376@dotnet.itags.org.TK2MSFTNGP12.phx.gbl...
> > HELP!!!!
> > We have got a W2k server running IIS5 with .NET framework 1.1 and .NET
> > framework SP1. All ASP.NET applications cannot run on this box. It all
> > returned with the same error:
> > 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: The compiler failed with error code 128.
> > I have made sure there is only ASP.NET ISAPI filter running and tried
> > aspnet_iis -i. Basically I'm out of ideas. Can someone please tell me what
> > the heck is going on here?
> > Roger
>

The connection name ConnectionString was not found in the applications configuration or th

Hi All, I need help. I am developing a very simple ASP.NET Application that retreived some information from an Oracle Database.

The application was working fine, but suddenly it stopped working with the following exception:

"The connection name 'ConnectionString' was not found in the applications configuration or the connection string is empty."

Furthermore, I had backups of the application on my hard drive, and all suddenly stopped working with the same exception. I beieve it is a general Configuration issue ... because all the connections are failing with the same exception.

Following is the excepton, and the line where the exception is given:

Line 55:
Line 56:
Line 57: <asp:SqlDataSource ID="SqlDataSource42" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString42%>"
Line 58: ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>"
Line 59: SelectCommand="Select * from TBORDER_ACTION where customer_id = 'XYZ'">

And again the exception is "The connection name 'ConnectionString' was not found in the applications configuration or the connection string is empty."

Following is my Web.config:

<?xmlversion="1.0"?><!--

Note: As an alternative to hand editing this file you can use the

web admin tool to configure settings for your application. Use

the Website->Asp.Net Configuration option in Visual Studio.

A full list of settings and comments can be found in

machine.config.comments usually located in

\Windows\Microsoft.Net\Framework\v2.x\Config

-->

<configurationxmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">

<connectionStrings>

<addname="ConnectionString42"connectionString="Data Source=DatabaseInstance;User ID=Username42;Password=Password42;Unicode=True"providerName="System.Data.OracleClient" />

<addname="ConnectionString42m"connectionString="Data Source=DatabaseInstance;User ID=Username;Password=Password42;Unicode=True"

providerName="System.Data.OracleClient" />

</connectionStrings>

<system.web>

<!--

Set compilation debug="true" to insert debugging

symbols into the compiled page. Because this

affects performance, set this value to true only

during development.

Visual Basic options:

Set strict="true" to disallow all data type conversions

where data loss can occur.

Set explicit="true" to force declaration of all variables.

-->

<compilationdebug="true"strict="false"explicit="true"/>

<pages>

<namespaces>

<clear/>

<addnamespace="System"/>

<addnamespace="System.Data"/>

<addnamespace="System.Collections"/>

<addnamespace="System.Collections.Specialized"/>

<addnamespace="System.Configuration"/>

<addnamespace="System.Text"/>

<addnamespace="System.Text.RegularExpressions"/>

<addnamespace="System.Web"/>

<addnamespace="System.Web.Caching"/>

<addnamespace="System.Web.SessionState"/>

<addnamespace="System.Web.Security"/>

<addnamespace="System.Web.Profile"/>

<addnamespace="System.Web.UI"/>

<addnamespace="System.Web.UI.WebControls"/>

<addnamespace="System.Web.UI.WebControls.WebParts"/>

<addnamespace="System.Web.UI.HtmlControls"/>

</namespaces>

</pages>

<!--

The <authentication> section enables configuration

of the security authentication mode used by

ASP.NET to identify an incoming user.

--> <authenticationmode="Windows"/>

<!--

The <customErrors> section enables configuration

of what to do if/when an unhandled error occurs

during the execution of a request. Specifically,

it enables developers to configure html error pages

to be displayed in place of a error stack trace.

<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">

<error statusCode="403" redirect="NoAccess.htm" />

<error statusCode="404" redirect="FileNotFound.htm" />

</customErrors>

--> </system.web>

</configuration>

Please help; I have been stuck with this issue for 1 week...

You have two connections strings with the same name. Is that the problem?


No - I have 2 connection string with 2 different names.

Please advice,

Mahdi


Line 57: <asp:SqlDataSource ID="SqlDataSource42" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString42%>"
Line 58: ProviderName="<%$ ConnectionStrings:ConnectionString42.ProviderName %>"



Dear jfmccarthy,

You are number 1; You are the best. I have been trying 3 days to find an answer, explored many sites, and spent more than 30 hours but could not find the answer.

Your suggestion was correct. I want to realyyyy... thank you, and wish you much success in your life (Although I am sure you are successfull).

Thanks Thanks Thanks...Big Smile


Well thank you very muchEmbarrassed

Saturday, March 24, 2012

The dread COMException (0x80004005): Unspecified error...

Well, the problem I'am having now applies to web applications only.
Therefore, I believe it has something to do with security settings. Here's
the code:
---
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim child As System.DirectoryServices.DirectoryEntry
' dirEntry is a DirectoryEntry component that points to
' WinNT://someserver
' I tried to retrieve the current user Active Directory information by
' using the Find function and specifying the logon userId and which
' schema the user belongs to. In this case, "User"...
child = dirEntry.Children.Find(getCurrentUserId, "User")
' lb is a ListBox
lb.DataSource = child.Properties()
End Sub
Public Function getCurrentUserId() As String
' I attempt to retrieve the current user windows logon id with the
' domain name removed using a Spilt("/") but it returns an empty
' string instead
Return
System.Security.Principal.WindowsIdentity.GetCurrent.Name.Spilt("/")(1)
End Function
---
After launching the site, the following error occurs:
---
[COMException (0x80004005): Unspecified error
]
System.DirectoryServices.Interop.IAdsContainer.GetObject(String
className, String relativeName) +0
System.DirectoryServices.DirectoryEntries.Find(String name, String
schemaClassName)
ADSearch.WebForm1.Page_Load(Object sender, EventArgs e) in c:\inetpub\
wwwroot\ADSearch\WebForm1.aspx.vb:36
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()
---
I've tried using only the windows logon userId(dirEntry.Children.Find
(getCurrentUserId)) to retrieve the Active Directory entry for the current
user but the error still comes back.
I'am at my wits end...
solutions anyone?
Message posted via http://www.webservertalk.comThe user under which your application is running (most likely
IUSR_SERVERNAME) might not have permissions to access AD.
You should configure the virtual directory's security to run under a user
that has permissions to do so. Simply create a separate account for it in AD
and use it as the anonymous user (in IIS properties).
Alternatively, you can use ASP.NET impersonation configurable in web.config
(search MSDN for it).
Try doing the same AD stuff from a winforms application, and see if it's
indeed the problem with permissions.
-Oleg.
"Shihao Png via webservertalk.com" <forum@.webservertalk.com> wrote in
message news:2aeb59d02bc64258b8b6e15300e5aaa4@.Do
webservertalk.com...
> Well, the problem I'am having now applies to web applications only.
> Therefore, I believe it has something to do with security settings. Here's
> the code:
> ---
> Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
> System.EventArgs) Handles MyBase.Load
> Dim child As System.DirectoryServices.DirectoryEntry
> ' dirEntry is a DirectoryEntry component that points to
> ' WinNT://someserver
> ' I tried to retrieve the current user Active Directory information by
> ' using the Find function and specifying the logon userId and which
> ' schema the user belongs to. In this case, "User"...
> child = dirEntry.Children.Find(getCurrentUserId, "User")
> ' lb is a ListBox
> lb.DataSource = child.Properties()
> End Sub
> Public Function getCurrentUserId() As String
> ' I attempt to retrieve the current user windows logon id with the
> ' domain name removed using a Spilt("/") but it returns an empty
> ' string instead
> Return
> System.Security.Principal.WindowsIdentity.GetCurrent.Name.Spilt("/")(1)
> End Function
> ---
> After launching the site, the following error occurs:
> ---
> [COMException (0x80004005): Unspecified error
> ]
> System.DirectoryServices.Interop.IAdsContainer.GetObject(String
> className, String relativeName) +0
> System.DirectoryServices.DirectoryEntries.Find(String name, String
> schemaClassName)
> ADSearch.WebForm1.Page_Load(Object sender, EventArgs e) in c:\inetpub\
> wwwroot\ADSearch\WebForm1.aspx.vb:36
> System.Web.UI.Control.OnLoad(EventArgs e)
> System.Web.UI.Control.LoadRecursive()
> System.Web.UI.Page.ProcessRequestMain()
> ---
> I've tried using only the windows logon userId(dirEntry.Children.Find
> (getCurrentUserId)) to retrieve the Active Directory entry for the current
> user but the error still comes back.
> I'am at my wits end...
> solutions anyone?
> --
> Message posted via http://www.webservertalk.com
Sorry but I don't really get what you mean...do you mean that the user
account that I run on when I attempt to search AD do not have the
permission to do so by the AD server? So that means I should configure AD
so that it allows searching by my user account? Is that what you mean?
Message posted via http://www.webservertalk.com

The dread COMException (0x80004005): Unspecified error...

Well, the problem I'am having now applies to web applications only.
Therefore, I believe it has something to do with security settings. Here's
the code:

--------------------
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim child As System.DirectoryServices.DirectoryEntry

' dirEntry is a DirectoryEntry component that points to
' WinNT://someserver
' I tried to retrieve the current user Active Directory information by
' using the Find function and specifying the logon userId and which
' schema the user belongs to. In this case, "User"...

child = dirEntry.Children.Find(getCurrentUserId, "User")

' lb is a ListBox

lb.DataSource = child.Properties()
End Sub

Public Function getCurrentUserId() As String

' I attempt to retrieve the current user windows logon id with the
' domain name removed using a Spilt("/") but it returns an empty
' string instead

Return
System.Security.Principal.WindowsIdentity.GetCurre nt.Name.Spilt("/")(1)
End Function
--------------------

After launching the site, the following error occurs:

--------------------
[COMException (0x80004005): Unspecified error
]
System.DirectoryServices.Interop.IAdsContainer.Get Object(String
className, String relativeName) +0
System.DirectoryServices.DirectoryEntries.Find(Str ing name, String
schemaClassName)
ADSearch.WebForm1.Page_Load(Object sender, EventArgs e) in c:\inetpub\
wwwroot\ADSearch\WebForm1.aspx.vb:36
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()
--------------------

I've tried using only the windows logon userId(dirEntry.Children.Find
(getCurrentUserId)) to retrieve the Active Directory entry for the current
user but the error still comes back.

I'am at my wits end...
solutions anyone?

--
Message posted via http://www.dotnetmonster.comThe user under which your application is running (most likely
IUSR_SERVERNAME) might not have permissions to access AD.
You should configure the virtual directory's security to run under a user
that has permissions to do so. Simply create a separate account for it in AD
and use it as the anonymous user (in IIS properties).
Alternatively, you can use ASP.NET impersonation configurable in web.config
(search MSDN for it).

Try doing the same AD stuff from a winforms application, and see if it's
indeed the problem with permissions.

-Oleg.

"Shihao Png via DotNetMonster.com" <forum@.DotNetMonster.com> wrote in
message news:2aeb59d02bc64258b8b6e15300e5aaa4@.DotNetMonste r.com...
> Well, the problem I'am having now applies to web applications only.
> Therefore, I believe it has something to do with security settings. Here's
> the code:
> --------------------
> Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
> System.EventArgs) Handles MyBase.Load
> Dim child As System.DirectoryServices.DirectoryEntry
> ' dirEntry is a DirectoryEntry component that points to
> ' WinNT://someserver
> ' I tried to retrieve the current user Active Directory information by
> ' using the Find function and specifying the logon userId and which
> ' schema the user belongs to. In this case, "User"...
> child = dirEntry.Children.Find(getCurrentUserId, "User")
> ' lb is a ListBox
> lb.DataSource = child.Properties()
> End Sub
> Public Function getCurrentUserId() As String
> ' I attempt to retrieve the current user windows logon id with the
> ' domain name removed using a Spilt("/") but it returns an empty
> ' string instead
> Return
> System.Security.Principal.WindowsIdentity.GetCurre nt.Name.Spilt("/")(1)
> End Function
> --------------------
> After launching the site, the following error occurs:
> --------------------
> [COMException (0x80004005): Unspecified error
> ]
> System.DirectoryServices.Interop.IAdsContainer.Get Object(String
> className, String relativeName) +0
> System.DirectoryServices.DirectoryEntries.Find(Str ing name, String
> schemaClassName)
> ADSearch.WebForm1.Page_Load(Object sender, EventArgs e) in c:\inetpub\
> wwwroot\ADSearch\WebForm1.aspx.vb:36
> System.Web.UI.Control.OnLoad(EventArgs e)
> System.Web.UI.Control.LoadRecursive()
> System.Web.UI.Page.ProcessRequestMain()
> --------------------
> I've tried using only the windows logon userId(dirEntry.Children.Find
> (getCurrentUserId)) to retrieve the Active Directory entry for the current
> user but the error still comes back.
> I'am at my wits end...
> solutions anyone?
> --
> Message posted via http://www.dotnetmonster.com
Sorry but I don't really get what you mean...do you mean that the user
account that I run on when I attempt to search AD do not have the
permission to do so by the AD server? So that means I should configure AD
so that it allows searching by my user account? Is that what you mean?

--
Message posted via http://www.dotnetmonster.com