Showing posts with label code. Show all posts
Showing posts with label code. Show all posts

Saturday, March 31, 2012

The ASPX name

Hi,

Inside an .aspx code, what would be the reliable way to know what is the
..aspx page file name on IIS?

Thanks,
Ali> Inside an .aspx code, what would be the reliable way to know what is the
> .aspx page file name on IIS?

Request.ServerVariables["SCRIPT_NAME"] would return the base name. You can
combine it with Request.ServerVariables["SERVER_NAME"] and a "http://"
prefix to get the full url.

This is C#, you should replace brackets with parentheses for VB.
Here's another:

string myPath = Page.Request.Path;
string pageName = myPath.Substring(myPath.LastIndexOf('/') + 1);

Michael Earls

"A.M" <IHateSpam@dotnet.itags.org.sapm123.com> wrote in message
news:uhiYpoB5DHA.3848@dotnet.itags.org.TK2MSFTNGP11.phx.gbl...
> Hi,
> Inside an .aspx code, what would be the reliable way to know what is the
> .aspx page file name on IIS?
> Thanks,
> Ali
>> Inside an .aspx code, what would be the reliable way to know what is the
>> .aspx page file name on IIS?

> string myPath = Page.Request.Path;
> string pageName = myPath.Substring(myPath.LastIndexOf('/') + 1);

That would actually be the pretty way, I gave you the old and ugly way.

Martin.

The beginning.

Ok,

I have a file 'WeatherPage.aspx' with the following code, basic stuff:

<%@dotnet.itags.org. Page language="VB" %>
<script runat="server"
Shared rand As Random = New Random()
Function GetForecast(zip As String) As String
Dim ret As String = String.Empty
Select rand.Next(5)
Case 0
ret = "Sunny and warm"
Case 1
ret = "Partly cloudy and chilly"
Case 2
ret = "Cold with a chance of snow"
Case 3
ret = "Rain"
Case 4
ret = "Foggy and damp"
End Select
Return ret
End Function

</script>
<html>
<body>
<h1>My weather forecast page</h1>
<p>The weather for zipcode 04090 is: <%= GetForecast("04090") %> </p>
<p>The weather for zipcode 90210 is: <%= GetForecast("90210") %> </p>
<p>The weather for zipcode 84101 is: <%= GetForecast("84101") %> </p>
<p>The weather for zipcode 80014 is: <%= GetForecast("80014") %> </p>
<p>The weather for zipcode 02101 is: <%= GetForecast("02101") %> </p>
</body>
</html
my operating system is Windows XP profesional. I use Internet Information
Services 5.1 (IIS).

When I run this page in a webbrowser, the function 'GetForecast' doesn't
display anything ( no error's). All I see is the HTML text. What can I be
doing wrong? I got this code from a tutorial.
Is the code incorrect? Can IIS have incorrect settings?

Thanks.The browser does give an error: Line 4, ";" is expected.
Isn't ";" used for "C#".
Page language is set to "VB".

"Qwert" <nosp@dotnet.itags.org.nosp.com> schreef in bericht
news:Cpidncmdb6Qw76TfRVnyvg@dotnet.itags.org.casema.nl...
> Ok,
> I have a file 'WeatherPage.aspx' with the following code, basic stuff:
> <%@dotnet.itags.org. Page language="VB" %>
> <script runat="server">
> Shared rand As Random = New Random()
> Function GetForecast(zip As String) As String
> Dim ret As String = String.Empty
> Select rand.Next(5)
> Case 0
> ret = "Sunny and warm"
> Case 1
> ret = "Partly cloudy and chilly"
> Case 2
> ret = "Cold with a chance of snow"
> Case 3
> ret = "Rain"
> Case 4
> ret = "Foggy and damp"
> End Select
> Return ret
> End Function
> </script>
> <html>
> <body>
> <h1>My weather forecast page</h1>
> <p>The weather for zipcode 04090 is: <%= GetForecast("04090") %> </p>
> <p>The weather for zipcode 90210 is: <%= GetForecast("90210") %> </p>
> <p>The weather for zipcode 84101 is: <%= GetForecast("84101") %> </p>
> <p>The weather for zipcode 80014 is: <%= GetForecast("80014") %> </p>
> <p>The weather for zipcode 02101 is: <%= GetForecast("02101") %> </p>
> </body>
> </html>
>
> my operating system is Windows XP profesional. I use Internet Information
> Services 5.1 (IIS).
> When I run this page in a webbrowser, the function 'GetForecast' doesn't
> display anything ( no error's). All I see is the HTML text. What can I be
> doing wrong? I got this code from a tutorial.
> Is the code incorrect? Can IIS have incorrect settings?
> Thanks.
You need to enclose your frunctions within

Sub

End Sub

statements.

If you want the code to execut automatically
when the page loads, use Sub Page_Load :

<script runat="server">
Sub Page_Load(Src as Object, e As System.EventArgs)

...rest of your code

End Sub
<//script
best,

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

"Qwert" <nosp@dotnet.itags.org.nosp.com> wrote in message
news:Cpidncmdb6Qw76TfRVnyvg@dotnet.itags.org.casema.nl...
> Ok,
> I have a file 'WeatherPage.aspx' with the following code, basic stuff:
> <%@dotnet.itags.org. Page language="VB" %>
> <script runat="server"
> Shared rand As Random = New Random()
> Function GetForecast(zip As String) As String
> Dim ret As String = String.Empty
> Select rand.Next(5)
> Case 0
> ret = "Sunny and warm"
> Case 1
> ret = "Partly cloudy and chilly"
> Case 2
> ret = "Cold with a chance of snow"
> Case 3
> ret = "Rain"
> Case 4
> ret = "Foggy and damp"
> End Select
> Return ret
> End Function
> </script>
> <html>
> <body>
> <h1>My weather forecast page</h1>
> <p>The weather for zipcode 04090 is: <%= GetForecast("04090") %> </p>
> <p>The weather for zipcode 90210 is: <%= GetForecast("90210") %> </p>
> <p>The weather for zipcode 84101 is: <%= GetForecast("84101") %> </p>
> <p>The weather for zipcode 80014 is: <%= GetForecast("80014") %> </p>
> <p>The weather for zipcode 02101 is: <%= GetForecast("02101") %> </p>
> </body>
> </html>
>
> my operating system is Windows XP profesional. I use Internet Information
> Services 5.1 (IIS).
> When I run this page in a webbrowser, the function 'GetForecast' doesn't
> display anything ( no error's). All I see is the HTML text. What can I be
> doing wrong? I got this code from a tutorial.
> Is the code incorrect? Can IIS have incorrect settings?
> Thanks.
You mean something like this, it does not work either:

<html
<script language="VB" runat="server">
Sub Page_Load(Sender As Object, E As EventArgs)
Message.Text = "You last accessed this page at: " & DateTime.Now
End Sub
</script
<body>
<h3><font face="Verdana">Manipulating Server Controls</font></h3>
This sample demonstrates how to manipulate the <asp:label>
server control within
the Page_Load event to output the current time.
<p>
<hr>
<asp:label id="Message" font-size="24" font-bold="true"
runat=server/>
</body>
</html
I see the HTML in the browser, but not the Message.Text in the label
control.

"Juan T. Llibre" <nomailreplies@dotnet.itags.org.nowhere.com> schreef in bericht
news:ew9vH$uKFHA.1948@dotnet.itags.org.TK2MSFTNGP14.phx.gbl...
> You need to enclose your frunctions within
> Sub
> End Sub
> statements.
> If you want the code to execut automatically
> when the page loads, use Sub Page_Load :
> <script runat="server">
> Sub Page_Load(Src as Object, e As System.EventArgs)
> ...rest of your code
> End Sub
> <//script>
> best,
>
> Juan T. Llibre
> ASP.NET MVP
> http://asp.net.do/foros/
> Foros de ASP.NET en Espaol
> Ven, y hablemos de ASP.NET...
> ======================
> "Qwert" <nosp@dotnet.itags.org.nosp.com> wrote in message
> news:Cpidncmdb6Qw76TfRVnyvg@dotnet.itags.org.casema.nl...
>> Ok,
>>
>> I have a file 'WeatherPage.aspx' with the following code, basic stuff:
>>
>> <%@dotnet.itags.org. Page language="VB" %>
>> <script runat="server">
>> Shared rand As Random = New Random()
>> Function GetForecast(zip As String) As String
>> Dim ret As String = String.Empty
>> Select rand.Next(5)
>> Case 0
>> ret = "Sunny and warm"
>> Case 1
>> ret = "Partly cloudy and chilly"
>> Case 2
>> ret = "Cold with a chance of snow"
>> Case 3
>> ret = "Rain"
>> Case 4
>> ret = "Foggy and damp"
>> End Select
>> Return ret
>> End Function
>>
>> </script>
>> <html>
>> <body>
>> <h1>My weather forecast page</h1>
>> <p>The weather for zipcode 04090 is: <%= GetForecast("04090") %> </p>
>> <p>The weather for zipcode 90210 is: <%= GetForecast("90210") %> </p>
>> <p>The weather for zipcode 84101 is: <%= GetForecast("84101") %> </p>
>> <p>The weather for zipcode 80014 is: <%= GetForecast("80014") %> </p>
>> <p>The weather for zipcode 02101 is: <%= GetForecast("02101") %> </p>
>> </body>
>> </html>
>>
>>
>> my operating system is Windows XP profesional. I use Internet Information
>> Services 5.1 (IIS).
>>
>> When I run this page in a webbrowser, the function 'GetForecast' doesn't
>> display anything ( no error's). All I see is the HTML text. What can I be
>> doing wrong? I got this code from a tutorial.
>> Is the code incorrect? Can IIS have incorrect settings?
>>
>> Thanks.
I just pasted your code into
http://asp.net.do/test/vbtest2.aspx

It works fine.

Are you using http://localhost/virtualdirectory/yourfile.aspx ?
Or http://localhost/yourfile.aspx ?
Or http://YourComputerName/virtualdirectory/yourfile.aspx ?
Or http://yourserver.com/directory/yourfile.aspx ?

If you are, and it still doesn't work, try re-registering ASP.NET
from the .NET framework's main directory :

aspnet_regiis -i

( You did install the .NET Framework, right ? )

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

"Qwert" <nosp@dotnet.itags.org.nosp.com> wrote in message
news:CpOdnY2NHqHpHKTfRVnyiw@dotnet.itags.org.casema.nl...
> You mean something like this, it does not work either:
> <html>
> <script language="VB" runat="server">
> Sub Page_Load(Sender As Object, E As EventArgs)
> Message.Text = "You last accessed this page at: " &
> DateTime.Now
> End Sub
> </script>
> <body>
> <h3><font face="Verdana">Manipulating Server Controls</font></h3>
> This sample demonstrates how to manipulate the <asp:label>
> server control within
> the Page_Load event to output the current time.
> <p>
> <hr>
> <asp:label id="Message" font-size="24" font-bold="true"
> runat=server/>
> </body>
> </html>
>
> I see the HTML in the browser, but not the Message.Text in the label
> control.
>
> "Juan T. Llibre" <nomailreplies@dotnet.itags.org.nowhere.com> schreef in bericht
> news:ew9vH$uKFHA.1948@dotnet.itags.org.TK2MSFTNGP14.phx.gbl...
>> You need to enclose your frunctions within
>>
>> Sub
>>
>> End Sub
>>
>> statements.
>>
>> If you want the code to execut automatically
>> when the page loads, use Sub Page_Load :
>>
>> <script runat="server">
>> Sub Page_Load(Src as Object, e As System.EventArgs)
>>
>> ...rest of your code
>>
>> End Sub
>> <//script>
>>
>> best,
>>
>>
>> Juan T. Llibre
>> ASP.NET MVP
>> http://asp.net.do/foros/
>> Foros de ASP.NET en Espaol
>> Ven, y hablemos de ASP.NET...
>> ======================
>>
>> "Qwert" <nosp@dotnet.itags.org.nosp.com> wrote in message
>> news:Cpidncmdb6Qw76TfRVnyvg@dotnet.itags.org.casema.nl...
>>> Ok,
>>>
>>> I have a file 'WeatherPage.aspx' with the following code, basic stuff:
>>>
>>> <%@dotnet.itags.org. Page language="VB" %>
>>> <script runat="server">
>>
>>> Shared rand As Random = New Random()
>>> Function GetForecast(zip As String) As String
>>> Dim ret As String = String.Empty
>>> Select rand.Next(5)
>>> Case 0
>>> ret = "Sunny and warm"
>>> Case 1
>>> ret = "Partly cloudy and chilly"
>>> Case 2
>>> ret = "Cold with a chance of snow"
>>> Case 3
>>> ret = "Rain"
>>> Case 4
>>> ret = "Foggy and damp"
>>> End Select
>>> Return ret
>>> End Function
>>>
>>> </script>
>>> <html>
>>> <body>
>>> <h1>My weather forecast page</h1>
>>> <p>The weather for zipcode 04090 is: <%= GetForecast("04090") %> </p>
>>> <p>The weather for zipcode 90210 is: <%= GetForecast("90210") %> </p>
>>> <p>The weather for zipcode 84101 is: <%= GetForecast("84101") %> </p>
>>> <p>The weather for zipcode 80014 is: <%= GetForecast("80014") %> </p>
>>> <p>The weather for zipcode 02101 is: <%= GetForecast("02101") %> </p>
>>> </body>
>>> </html>
>>>
>>>
>>> my operating system is Windows XP profesional. I use Internet
>>> Information Services 5.1 (IIS).
>>>
>>> When I run this page in a webbrowser, the function 'GetForecast' doesn't
>>> display anything ( no error's). All I see is the HTML text. What can I
>>> be doing wrong? I got this code from a tutorial.
>>> Is the code incorrect? Can IIS have incorrect settings?
>>>
>>> Thanks.
>>
>>
> If you are, and it still doesn't work, try re-registering ASP.NET
> from the .NET framework's main directory :
> aspnet_regiis -i

It worked....but weird. Someone already installed .NET Framework. Doesn't
make sense ASP.NET needs a seperate installement...I wasn't there when it
was installed on my comp, maybe you can select an option during installation
that you don't want to install ASP.NET.

3 cheers for spain!

Thanks.

> ( You did install the .NET Framework, right ? )
> Juan T. Llibre
> ASP.NET MVP
> http://asp.net.do/foros/
> Foros de ASP.NET en Espaol
> Ven, y hablemos de ASP.NET...
> ======================
> "Qwert" <nosp@dotnet.itags.org.nosp.com> wrote in message
> news:CpOdnY2NHqHpHKTfRVnyiw@dotnet.itags.org.casema.nl...
>> You mean something like this, it does not work either:
>>
>> <html>
>>
>> <script language="VB" runat="server">
>> Sub Page_Load(Sender As Object, E As EventArgs)
>> Message.Text = "You last accessed this page at: " &
>> DateTime.Now
>> End Sub
>> </script>
>>
>> <body>
>> <h3><font face="Verdana">Manipulating Server Controls</font></h3>
>> This sample demonstrates how to manipulate the <asp:label>
>> server control within
>> the Page_Load event to output the current time.
>> <p>
>> <hr>
>> <asp:label id="Message" font-size="24" font-bold="true"
>> runat=server/>
>> </body>
>> </html>
>>
>>
>> I see the HTML in the browser, but not the Message.Text in the label
>> control.
>>
>>
>> "Juan T. Llibre" <nomailreplies@dotnet.itags.org.nowhere.com> schreef in bericht
>> news:ew9vH$uKFHA.1948@dotnet.itags.org.TK2MSFTNGP14.phx.gbl...
>>> You need to enclose your frunctions within
>>>
>>> Sub
>>>
>>> End Sub
>>>
>>> statements.
>>>
>>> If you want the code to execut automatically
>>> when the page loads, use Sub Page_Load :
>>>
>>> <script runat="server">
>>> Sub Page_Load(Src as Object, e As System.EventArgs)
>>>
>>> ...rest of your code
>>>
>>> End Sub
>>> <//script>
>>>
>>> best,
>>>
>>>
>>> Juan T. Llibre
>>> ASP.NET MVP
>>> http://asp.net.do/foros/
>>> Foros de ASP.NET en Espaol
>>> Ven, y hablemos de ASP.NET...
>>> ======================
>>>
>>> "Qwert" <nosp@dotnet.itags.org.nosp.com> wrote in message
>>> news:Cpidncmdb6Qw76TfRVnyvg@dotnet.itags.org.casema.nl...
>>>> Ok,
>>>>
>>>> I have a file 'WeatherPage.aspx' with the following code, basic stuff:
>>>>
>>>> <%@dotnet.itags.org. Page language="VB" %>
>>>> <script runat="server">
>>>
>>>> Shared rand As Random = New Random()
>>>> Function GetForecast(zip As String) As String
>>>> Dim ret As String = String.Empty
>>>> Select rand.Next(5)
>>>> Case 0
>>>> ret = "Sunny and warm"
>>>> Case 1
>>>> ret = "Partly cloudy and chilly"
>>>> Case 2
>>>> ret = "Cold with a chance of snow"
>>>> Case 3
>>>> ret = "Rain"
>>>> Case 4
>>>> ret = "Foggy and damp"
>>>> End Select
>>>> Return ret
>>>> End Function
>>>>
>>>> </script>
>>>> <html>
>>>> <body>
>>>> <h1>My weather forecast page</h1>
>>>> <p>The weather for zipcode 04090 is: <%= GetForecast("04090") %> </p>
>>>> <p>The weather for zipcode 90210 is: <%= GetForecast("90210") %> </p>
>>>> <p>The weather for zipcode 84101 is: <%= GetForecast("84101") %> </p>
>>>> <p>The weather for zipcode 80014 is: <%= GetForecast("80014") %> </p>
>>>> <p>The weather for zipcode 02101 is: <%= GetForecast("02101") %> </p>
>>>> </body>
>>>> </html>
>>>>
>>>>
>>>> my operating system is Windows XP profesional. I use Internet
>>>> Information Services 5.1 (IIS).
>>>>
>>>> When I run this page in a webbrowser, the function 'GetForecast'
>>>> doesn't display anything ( no error's). All I see is the HTML text.
>>>> What can I be doing wrong? I got this code from a tutorial.
>>>> Is the code incorrect? Can IIS have incorrect settings?
>>>>
>>>> Thanks.
>>>
>>>
>>
>>
re:
> Thanks.

You're very much welcome!
Glad it worked!

re:
> Someone already installed .NET Framework. Doesn't make sense ASP.NET needs
> a seperate installement.

Maybe someone uninstalled/reinstalled IIS ?
That would require re-registering ASP.NET with the new IIS.

re:
> 3 cheers for spain!

Make that the Dominican Republic... ;-)

Happy coding!
Don't let the bug(ger)s get you!

:-)

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

"Qwert" <nosp@dotnet.itags.org.nosp.com> wrote in message
news:-b6dnYlGzYMPDaTfRVnyiw@dotnet.itags.org.casema.nl...
>> If you are, and it still doesn't work, try re-registering ASP.NET
>> from the .NET framework's main directory :
>>
>> aspnet_regiis -i
> It worked....but weird. Someone already installed .NET Framework. Doesn't
> make sense ASP.NET needs a seperate installement...I wasn't there when it
> was installed on my comp, maybe you can select an option during
> installation that you don't want to install ASP.NET.
> 3 cheers for spain!
> Thanks.

>> ( You did install the .NET Framework, right ? )
>>
>> Juan T. Llibre
>> ASP.NET MVP
>> http://asp.net.do/foros/
>> Foros de ASP.NET en Espaol
>> Ven, y hablemos de ASP.NET...
>> ======================
>>
>> "Qwert" <nosp@dotnet.itags.org.nosp.com> wrote in message
>> news:CpOdnY2NHqHpHKTfRVnyiw@dotnet.itags.org.casema.nl...
>>> You mean something like this, it does not work either:
>>>
>>> <html>
>>>
>>> <script language="VB" runat="server">
>>> Sub Page_Load(Sender As Object, E As EventArgs)
>>> Message.Text = "You last accessed this page at: " &
>>> DateTime.Now
>>> End Sub
>>> </script>
>>>
>>> <body>
>>> <h3><font face="Verdana">Manipulating Server Controls</font></h3>
>>> This sample demonstrates how to manipulate the <asp:label>
>>> server control within
>>> the Page_Load event to output the current time.
>>> <p>
>>> <hr>
>>> <asp:label id="Message" font-size="24" font-bold="true"
>>> runat=server/>
>>> </body>
>>> </html>
>>>
>>>
>>> I see the HTML in the browser, but not the Message.Text in the label
>>> control.
>>>
>>>
>>> "Juan T. Llibre" <nomailreplies@dotnet.itags.org.nowhere.com> schreef in bericht
>>> news:ew9vH$uKFHA.1948@dotnet.itags.org.TK2MSFTNGP14.phx.gbl...
>>>> You need to enclose your frunctions within
>>>>
>>>> Sub
>>>>
>>>> End Sub
>>>>
>>>> statements.
>>>>
>>>> If you want the code to execut automatically
>>>> when the page loads, use Sub Page_Load :
>>>>
>>>> <script runat="server">
>>>> Sub Page_Load(Src as Object, e As System.EventArgs)
>>>>
>>>> ...rest of your code
>>>>
>>>> End Sub
>>>> <//script>
>>>>
>>>> best,
>>>>
>>>>
>>>> Juan T. Llibre
>>>> ASP.NET MVP
>>>> http://asp.net.do/foros/
>>>> Foros de ASP.NET en Espaol
>>>> Ven, y hablemos de ASP.NET...
>>>> ======================
>>>>
>>>> "Qwert" <nosp@dotnet.itags.org.nosp.com> wrote in message
>>>> news:Cpidncmdb6Qw76TfRVnyvg@dotnet.itags.org.casema.nl...
>>>>> Ok,
>>>>>
>>>>> I have a file 'WeatherPage.aspx' with the following code, basic stuff:
>>>>>
>>>>> <%@dotnet.itags.org. Page language="VB" %>
>>>>> <script runat="server">
>>>>
>>>>> Shared rand As Random = New Random()
>>>>> Function GetForecast(zip As String) As String
>>>>> Dim ret As String = String.Empty
>>>>> Select rand.Next(5)
>>>>> Case 0
>>>>> ret = "Sunny and warm"
>>>>> Case 1
>>>>> ret = "Partly cloudy and chilly"
>>>>> Case 2
>>>>> ret = "Cold with a chance of snow"
>>>>> Case 3
>>>>> ret = "Rain"
>>>>> Case 4
>>>>> ret = "Foggy and damp"
>>>>> End Select
>>>>> Return ret
>>>>> End Function
>>>>>
>>>>> </script>
>>>>> <html>
>>>>> <body>
>>>>> <h1>My weather forecast page</h1>
>>>>> <p>The weather for zipcode 04090 is: <%= GetForecast("04090") %> </p>
>>>>> <p>The weather for zipcode 90210 is: <%= GetForecast("90210") %> </p>
>>>>> <p>The weather for zipcode 84101 is: <%= GetForecast("84101") %> </p>
>>>>> <p>The weather for zipcode 80014 is: <%= GetForecast("80014") %> </p>
>>>>> <p>The weather for zipcode 02101 is: <%= GetForecast("02101") %> </p>
>>>>> </body>
>>>>> </html>
>>>>>
>>>>>
>>>>> my operating system is Windows XP profesional. I use Internet
>>>>> Information Services 5.1 (IIS).
>>>>>
>>>>> When I run this page in a webbrowser, the function 'GetForecast'
>>>>> doesn't display anything ( no error's). All I see is the HTML text.
>>>>> What can I be doing wrong? I got this code from a tutorial.
>>>>> Is the code incorrect? Can IIS have incorrect settings?
>>>>>
>>>>> Thanks.
>>>>
>>>>
>>>
>>>
>>
>>

The beginning.

Ok,
I have a file 'WeatherPage.aspx' with the following code, basic stuff:
<%@dotnet.itags.org. Page language="VB" %>
<script runat="server">
Shared rand As Random = New Random()
Function GetForecast(zip As String) As String
Dim ret As String = String.Empty
Select rand.Next(5)
Case 0
ret = "Sunny and warm"
Case 1
ret = "Partly cloudy and chilly"
Case 2
ret = "Cold with a chance of snow"
Case 3
ret = "Rain"
Case 4
ret = "Foggy and damp"
End Select
Return ret
End Function
</script>
<html>
<body>
<h1>My weather forecast page</h1>
<p>The weather for zipcode 04090 is: <%= GetForecast("04090") %> </p>
<p>The weather for zipcode 90210 is: <%= GetForecast("90210") %> </p>
<p>The weather for zipcode 84101 is: <%= GetForecast("84101") %> </p>
<p>The weather for zipcode 80014 is: <%= GetForecast("80014") %> </p>
<p>The weather for zipcode 02101 is: <%= GetForecast("02101") %> </p>
</body>
</html>
my operating system is Windows XP profesional. I use Internet Information
Services 5.1 (IIS).
When I run this page in a webbrowser, the function 'GetForecast' doesn't
display anything ( no error's). All I see is the HTML text. What can I be
doing wrong? I got this code from a tutorial.
Is the code incorrect? Can IIS have incorrect settings?
Thanks.The browser does give an error: Line 4, ";" is expected.
Isn't ";" used for "C#".
Page language is set to "VB".
"Qwert" <nosp@dotnet.itags.org.nosp.com> schreef in bericht
news:Cpidncmdb6Qw76TfRVnyvg@dotnet.itags.org.casema.nl...
> Ok,
> I have a file 'WeatherPage.aspx' with the following code, basic stuff:
> <%@dotnet.itags.org. Page language="VB" %>
> <script runat="server">
> Shared rand As Random = New Random()
> Function GetForecast(zip As String) As String
> Dim ret As String = String.Empty
> Select rand.Next(5)
> Case 0
> ret = "Sunny and warm"
> Case 1
> ret = "Partly cloudy and chilly"
> Case 2
> ret = "Cold with a chance of snow"
> Case 3
> ret = "Rain"
> Case 4
> ret = "Foggy and damp"
> End Select
> Return ret
> End Function
> </script>
> <html>
> <body>
> <h1>My weather forecast page</h1>
> <p>The weather for zipcode 04090 is: <%= GetForecast("04090") %> </p>
> <p>The weather for zipcode 90210 is: <%= GetForecast("90210") %> </p>
> <p>The weather for zipcode 84101 is: <%= GetForecast("84101") %> </p>
> <p>The weather for zipcode 80014 is: <%= GetForecast("80014") %> </p>
> <p>The weather for zipcode 02101 is: <%= GetForecast("02101") %> </p>
> </body>
> </html>
>
> my operating system is Windows XP profesional. I use Internet Information
> Services 5.1 (IIS).
> When I run this page in a webbrowser, the function 'GetForecast' doesn't
> display anything ( no error's). All I see is the HTML text. What can I be
> doing wrong? I got this code from a tutorial.
> Is the code incorrect? Can IIS have incorrect settings?
> Thanks.
>
You need to enclose your frunctions within
Sub
End Sub
statements.
If you want the code to execut automatically
when the page loads, use Sub Page_Load :
<script runat="server">
Sub Page_Load(Src as Object, e As System.EventArgs)
...rest of your code
End Sub
<//script>
best,
Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaol
Ven, y hablemos de ASP.NET...
======================
"Qwert" <nosp@dotnet.itags.org.nosp.com> wrote in message
news:Cpidncmdb6Qw76TfRVnyvg@dotnet.itags.org.casema.nl...
> Ok,
> I have a file 'WeatherPage.aspx' with the following code, basic stuff:
> <%@dotnet.itags.org. Page language="VB" %>
> <script runat="server">

> Shared rand As Random = New Random()
> Function GetForecast(zip As String) As String
> Dim ret As String = String.Empty
> Select rand.Next(5)
> Case 0
> ret = "Sunny and warm"
> Case 1
> ret = "Partly cloudy and chilly"
> Case 2
> ret = "Cold with a chance of snow"
> Case 3
> ret = "Rain"
> Case 4
> ret = "Foggy and damp"
> End Select
> Return ret
> End Function
> </script>
> <html>
> <body>
> <h1>My weather forecast page</h1>
> <p>The weather for zipcode 04090 is: <%= GetForecast("04090") %> </p>
> <p>The weather for zipcode 90210 is: <%= GetForecast("90210") %> </p>
> <p>The weather for zipcode 84101 is: <%= GetForecast("84101") %> </p>
> <p>The weather for zipcode 80014 is: <%= GetForecast("80014") %> </p>
> <p>The weather for zipcode 02101 is: <%= GetForecast("02101") %> </p>
> </body>
> </html>
>
> my operating system is Windows XP profesional. I use Internet Information
> Services 5.1 (IIS).
> When I run this page in a webbrowser, the function 'GetForecast' doesn't
> display anything ( no error's). All I see is the HTML text. What can I be
> doing wrong? I got this code from a tutorial.
> Is the code incorrect? Can IIS have incorrect settings?
> Thanks.
You mean something like this, it does not work either:
<html>
<script language="VB" runat="server">
Sub Page_Load(Sender As Object, E As EventArgs)
Message.Text = "You last accessed this page at: " & DateTime.Now
End Sub
</script>
<body>
<h3><font face="Verdana">Manipulating Server Controls</h3>
This sample demonstrates how to manipulate the <asp:label>
server control within
the Page_Load event to output the current time.
<p>
<hr>
<asp:label id="Message" font-size="24" font-bold="true"
runat=server/>
</body>
</html>
I see the HTML in the browser, but not the Message.Text in the label
control.
"Juan T. Llibre" <nomailreplies@dotnet.itags.org.nowhere.com> schreef in bericht
news:ew9vH$uKFHA.1948@dotnet.itags.org.TK2MSFTNGP14.phx.gbl...
> You need to enclose your frunctions within
> Sub
> End Sub
> statements.
> If you want the code to execut automatically
> when the page loads, use Sub Page_Load :
> <script runat="server">
> Sub Page_Load(Src as Object, e As System.EventArgs)
> ...rest of your code
> End Sub
> <//script>
> best,
>
> Juan T. Llibre
> ASP.NET MVP
> http://asp.net.do/foros/
> Foros de ASP.NET en Espaol
> Ven, y hablemos de ASP.NET...
> ======================
> "Qwert" <nosp@dotnet.itags.org.nosp.com> wrote in message
> news:Cpidncmdb6Qw76TfRVnyvg@dotnet.itags.org.casema.nl...
>
>
I just pasted your code into
http://asp.net.do/test/vbtest2.aspx
It works fine.
Are you using http://localhost/virtualdirectory/yourfile.aspx ?
Or http://localhost/yourfile.aspx ?
Or http://YourComputerName/virtualdirectory/yourfile.aspx ?
Or http://yourserver.com/directory/yourfile.aspx ?
If you are, and it still doesn't work, try re-registering ASP.NET
from the .NET framework's main directory :
aspnet_regiis -i
( You did install the .NET Framework, right ? )
Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaol
Ven, y hablemos de ASP.NET...
======================
"Qwert" <nosp@dotnet.itags.org.nosp.com> wrote in message
news:CpOdnY2NHqHpHKTfRVnyiw@dotnet.itags.org.casema.nl...
> You mean something like this, it does not work either:
> <html>
> <script language="VB" runat="server">
> Sub Page_Load(Sender As Object, E As EventArgs)
> Message.Text = "You last accessed this page at: " &
> DateTime.Now
> End Sub
> </script>
> <body>
> <h3><font face="Verdana">Manipulating Server Controls</h3>
> This sample demonstrates how to manipulate the <asp:label>
> server control within
> the Page_Load event to output the current time.
> <p>
> <hr>
> <asp:label id="Message" font-size="24" font-bold="true"
> runat=server/>
> </body>
> </html>
>
> I see the HTML in the browser, but not the Message.Text in the label
> control.
>
> "Juan T. Llibre" <nomailreplies@dotnet.itags.org.nowhere.com> schreef in bericht
> news:ew9vH$uKFHA.1948@dotnet.itags.org.TK2MSFTNGP14.phx.gbl...
>
> If you are, and it still doesn't work, try re-registering ASP.NET
> from the .NET framework's main directory :
> aspnet_regiis -i
It worked....but weird. Someone already installed .NET Framework. Doesn't
make sense ASP.NET needs a seperate installement...I wasn't there when it
was installed on my comp, maybe you can select an option during installation
that you don't want to install ASP.NET.
3 cheers for spain!
Thanks.

> ( You did install the .NET Framework, right ? )
> Juan T. Llibre
> ASP.NET MVP
> http://asp.net.do/foros/
> Foros de ASP.NET en Espaol
> Ven, y hablemos de ASP.NET...
> ======================
> "Qwert" <nosp@dotnet.itags.org.nosp.com> wrote in message
> news:CpOdnY2NHqHpHKTfRVnyiw@dotnet.itags.org.casema.nl...
>
re:
> Thanks.
You're very much welcome!
Glad it worked!
re:
> Someone already installed .NET Framework. Doesn't make sense ASP.NET needs
> a seperate installement.
Maybe someone uninstalled/reinstalled IIS ?
That would require re-registering ASP.NET with the new IIS.
re:
> 3 cheers for spain!
Make that the Dominican Republic... ;-)
Happy coding!
Don't let the bug(ger)s get you!
:-)
Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaol
Ven, y hablemos de ASP.NET...
======================
"Qwert" <nosp@dotnet.itags.org.nosp.com> wrote in message
news:-b6dnYlGzYMPDaTfRVnyiw@dotnet.itags.org.casema.nl...
> It worked....but weird. Someone already installed .NET Framework. Doesn't
> make sense ASP.NET needs a seperate installement...I wasn't there when it
> was installed on my comp, maybe you can select an option during
> installation that you don't want to install ASP.NET.
> 3 cheers for spain!
> Thanks.

>

The benefit of events??

Hi,

I am trying to determine the best use for custom events.

Here is mytest code. (I know that the arguments are inappropriate for event handlers ... but this is just a test.) The code simply updates a Label control on the webform:

Namespace test

Public Class events
Inherits System.Web.UI.Page

Protected lblMessage As System.Web.UI.WebControls.Label

Protected Delegate Sub EventHandler( ByRef comment As String )
Protected Event Event1 As EventHandler

Protected Sub Page_Init( ByVal sender As System.Object, ByVal eArgs As System.EventArgs ) Handles MyBase.Init
AddHandler Me.Event1, AddressOf Me.Event1Handler
AddHandler Me.Event1, AddressOf Me.Event2Handler
End Sub

Protected Sub Page_Load( ByVal sender As System.Object, ByVal eArgs As System.EventArgs ) Handles MyBase.Load
If Not Page.IsPostBack Then
Dim toSay As String = "raised as event"
RaiseEvent Event1( toSay )
RaiseEvent Event1( toSay )
Event1Handler( "called as method" )
End If
End Sub

Private Sub Event1Handler( ByRef comment As String )
lblMessage.Text &= "Event1Handler: " & comment
comment &= ", changed by Event1Handler"
End Sub

Private Sub Event2Handler( ByRef comment As String )
lblMessage.Text &= "Event2Handler: " & comment
comment &= ", changed by Event2Handler"
End Sub

End Class

End Namespace

In terms of functionality, there doesn't seem to be any difference between raising an event [RaiseEvent Event1( "raised as event" )] and "calling" the event handler directly [Event1Handler( "called as method" )].

In my test, they did exactly the same thing. I can see only two benefits to using events.

First, I can dynamically attach one or more methods to an event. This helps in implementing certain design patterns.

Second, a raised event need not be handled at all. Whereas calling a missing method generates an exception, raising a custom event with no handler is okay.

Am I missing the importance of events?Well,

in your example Event1Handler is private method (it is event handler after all).

Generally events should have corresponding protected method <On>EventName which is used to raise the event by calling it.

For example you have :


Protected Event Event1 As EventHandler

which would have corresponding method:


Protected Sub OnEvent1(comment As String)
RaiseEvent Event1(comment1)
End Sub

which would provide a way for inherited classes to raise the event by calling the inherited method.


OnEvent1("Something")

So it is the inheritance thing in picture as well.

And usually event should always provide the sender of the event (object that raises the event) so that event's consumer would have straight access to the object that is raising the event (another alternative is of course just give enough event arguments)

C# provides a way to check if event has listeners attached so that event wouldn't be raised if there are no listeners (to save some horsepower ;-) ). VB doesn't currently have this feature.

The compiler failed with error code -1073741502

Hi all,
I was working on a little project, worked fine, but now all of a sudden I
get:
The compiler failed with error code -1073741502
as an error message (when running the site, not building).
I have NO idea what's wrong. I changed some code (only very small, which I
did like 10 times before that in the past 15 minutes) and I can't get it
back to work, whatever I do. The details of this error message are:
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 -1073741502.
Show Detailed Compiler Output:
C:\WINDOWS\system32> "c:\windows\microsoft.net\framework\v1.1.4322\csc.exe"
/t:library /utf8output
/R:"c:\windows\assembly\gac\system.web.mobile\1.0.5000.0__b03f5f7f11d50a3a\s
ystem.web.mobile.dll"
/R:"c:\windows\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.
data.dll"
/R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net
files\whoissite\d24d73f4\7403d467\assemb
ly\dl2\2f0f1907\a8f077d3_1bcbc401\wh
oissite.dll"
/R:"c:\windows\assembly\gac\system.enterpriseservices\1.0.5000.0__b03f5f7f11
d50a3a\system.enterpriseservices.dll"
/R:"c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll"
/R:"c:\windows\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.w
eb.dll"
/R:"c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll"
/R:"c:\windows\assembly\gac\system.web.services\1.0.5000.0__b03f5f7f11d50a3a
\system.web.services.dll"
/R:"c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.x
ml.dll"
/R:"c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\syst
em.drawing.dll"
/out:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\whoissite\d24d73f4\7403d467\aydmbx
nx.dll" /D:DEBUG /debug+ /optimize-
/warnaserror /w:1 "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary
ASP.NET Files\whoissite\d24d73f4\7403d467\aydmbx
nx.0.cs"
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.2032
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: namespace ASP {
Line 12: using System;
Line 13: using System.Collections;
Line 14: using System.Collections.Specialized;
Line 15: using System.Configuration;
Line 16: using System.Text;
Line 17: using System.Text.RegularExpressions;
Line 18: using System.Web;
Line 19: using System.Web.Caching;
Line 20: using System.Web.SessionState;
Line 21: using System.Web.Security;
Line 22: using System.Web.UI;
Line 23: using System.Web.UI.WebControls;
Line 24: using System.Web.UI.HtmlControls;
Line 25:
Line 26:
Line 27:
[System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
Line 28: public class Global_asax : WhoisSite.Global {
Line 29:
Line 30: private static bool __initialized = false;
Line 31:
Line 32: public Global_asax() {
Line 33: if ((ASP.Global_asax.__initialized == false)) {
Line 34: ASP.Global_asax.__initialized = true;
Line 35: }
Line 36: }
Line 37: }
Line 38: }
Line 39:
But when I only Build the project, it goes fine! I have already deleted the
site from IIS and Added it again, removed the temp folder it shows in
detailed compiler output, but without luck.
HELP?! :D
Thanks,
Razzieok solved it - somehow there was still an instance running in the background
(iexplore.exe) and I terminated them, and it worked again.
"Razzie" <razzieNOSPAM@dotnet.itags.org.quicknet.nl> wrote in message
news:O4o%23czxyEHA.3408@dotnet.itags.org.TK2MSFTNGP10.phx.gbl...
> Hi all,
> I was working on a little project, worked fine, but now all of a sudden I
> get:
> The compiler failed with error code -1073741502
> as an error message (when running the site, not building).
> I have NO idea what's wrong. I changed some code (only very small, which I
> did like 10 times before that in the past 15 minutes) and I can't get it
> back to work, whatever I do. The details of this error message are:
> 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 -1073741502.
> Show Detailed Compiler Output:
> C:\WINDOWS\system32>
> "c:\windows\microsoft.net\framework\v1.1.4322\csc.exe" /t:library
> /utf8output
> /R:"c:\windows\assembly\gac\system.web.mobile\1.0.5000.0__b03f5f7f11d50a3a
\system.web.mobile.dll"
> /R:"c:\windows\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\syste
m.data.dll"
> /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net
> files\whoissite\d24d73f4\7403d467\assemb
ly\dl2\2f0f1907\a8f077d3_1bcbc401\
whoissite.dll"
> /R:"c:\windows\assembly\gac\system.enterpriseservices\1.0.5000.0__b03f5f7f
11d50a3a\system.enterpriseservices.dll"
> /R:"c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll"
> /R:"c:\windows\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\system
.web.dll"
> /R:"c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll
"
> /R:"c:\windows\assembly\gac\system.web.services\1.0.5000.0__b03f5f7f11d50a
3a\system.web.services.dll"
> /R:"c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system
.xml.dll"
> /R:"c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\sy
stem.drawing.dll"
> /out:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
> Files\whoissite\d24d73f4\7403d467\aydmbx
nx.dll" /D:DEBUG /debug+
> /optimize- /warnaserror /w:1
> "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
> Files\whoissite\d24d73f4\7403d467\aydmbx
nx.0.cs"
>
>
> 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.2032
> 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: namespace ASP {
> Line 12: using System;
> Line 13: using System.Collections;
> Line 14: using System.Collections.Specialized;
> Line 15: using System.Configuration;
> Line 16: using System.Text;
> Line 17: using System.Text.RegularExpressions;
> Line 18: using System.Web;
> Line 19: using System.Web.Caching;
> Line 20: using System.Web.SessionState;
> Line 21: using System.Web.Security;
> Line 22: using System.Web.UI;
> Line 23: using System.Web.UI.WebControls;
> Line 24: using System.Web.UI.HtmlControls;
> Line 25:
> Line 26:
> Line 27: [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
> Line 28: public class Global_asax : WhoisSite.Global {
> Line 29:
> Line 30: private static bool __initialized = false;
> Line 31:
> Line 32: public Global_asax() {
> Line 33: if ((ASP.Global_asax.__initialized == false)) {
> Line 34: ASP.Global_asax.__initialized = true;
> Line 35: }
> Line 36: }
> Line 37: }
> Line 38: }
> Line 39:
>
> But when I only Build the project, it goes fine! I have already deleted
> the site from IIS and Added it again, removed the temp folder it shows in
> detailed compiler output, but without luck.
> HELP?! :D
> Thanks,
> Razzie
>

Wednesday, March 28, 2012

The code of my page doesnt execute.

Hello and thx for the help,

1. I have installed iis v5.1 - runs ok (http://localhost... )
2. I have also installed VStudio.Net, no problem.
3. I have started my first project on C#, which consists on a webform, some controls, and a hyperlink buttons.

My problem is: when run the application, the browser (I've tried with ie, mozilla & opera ) shows the page. The html seems to be ok, but no action at all occures.
I have used break points to make sure no action at all runs after javascript calls submit() function.
In my oppinion, theres something I haven't done , probably a question of folder/file project config, permits... dunno.

I will appreciate any help, thx

Have you build the solution?

Grz, Kris.


Hi,
First of all... thx for answering.

Yes, I have also tried building de solution, but had no success.

In my oppinion, it is more a question of assigning the right permissions or so, because aspx code doesn't run even when I run "Debug" from Visual studio.

Running debug (F5), for example, shows the page correctly. If I place the cursor over the hlinkbuttons it shows the jscript function call to the right event handler "__doPostBack(hlCon,'')". But, when I click the button, nothing happens, the page refreshes but nothing happens.

For example, what I've done now is a Step by step debug (F11) and the browser opens, shos the template, but no action / interruption occurs.

(I write the shortkeys cause I'm working with the Spanish version of Visual studio, inn order to avoid a mistake with menu names)

I'm a little bit lost with this, and also a little bit desperated... :(

thx for your help in an advice, url, or whatever way.

Juanjo.

PS: There's only one more thing... I dunno if it will help. When I created the first Webform, I changed the name from Webform1 to index, in order to convert the page as default one. (My iis admits index.aspx as def. page).
uhmm...
does your page declaration match with the name of your code-behind?
does your Codebhind attribute match the code-behind file? doesthe "Inherits" match the name of your class of your code-behind?


Yes, it does...

the problem was I was specting the same behaviour from a linkbutton Click than from a buttons.

I'm sorry, to waste your time with this stupidity.

Thx to all for reading and helping me.

The code is not working

I download the framework and install the IIS server 5.1, But when I
copy the code that supposed to print me 'hello world' from my manual
it didn't work. It showed me the page, but ignored the '.net' script.
What could be the reason?
Does my server version support asp.net?
This is the code I copy:
<%@dotnet.itags.org.Page Language="C#"%>
<script runat="server">
void Page_Load(object sender, EventArgs e) {
myLabel.Text = "Hello World!";
}
</script>
<html>
<head>
<title>My first ASP.NET page</title>
</head>
<body>
<asp:Label runat="server" id="myLabel"></asp:Label>
</body>
</html>
thanksOn Jul 13, 12:28 pm, Gandalf <goldn...@dotnet.itags.org.gmail.com> wrote:
> I download the framework and install the IIS server 5.1, But when I
> copy the code that supposed to print me 'hello world' from my manual
> it didn't work. It showed me the page, but ignored the '.net' script.
> What could be the reason?
> Does my server version support asp.net?
> This is the code I copy:
> <%@dotnet.itags.org.Page Language="C#"%>
> <script runat="server">
> void Page_Load(object sender, EventArgs e) {
> myLabel.Text = "Hello World!";
> }
> </script>
> <html>
> <head>
> <title>My first ASP.NET page</title>
> </head>
> <body>
> <asp:Label runat="server" id="myLabel"></asp:Label>
> </body>
> </html>
> thanks
Execute C:\WINDOWS\Microsoft.NET\Framework
\v2.0.50727\aspnet_regiis.aspx -i
That should register the ASP.NET with IIS.
http://support.microsoft.com/kb/306005
On Jul 13, 1:01 pm, Alexey Smirnov <alexey.smir...@dotnet.itags.org.gmail.com> wrote:
> On Jul 13, 12:28 pm, Gandalf <goldn...@dotnet.itags.org.gmail.com> wrote:
>
>
>
>
>
>
>
> Execute C:\WINDOWS\Microsoft.NET\Framework
> \v2.0.50727\aspnet_regiis.aspx -i
> That should register the ASP.NET with IIS.
> http://support.microsoft.com/kb/306005
I only have this two 'version' directories:
v1.1.4322
v1.0.3705
and none of them contains the file aspnet_regiis.aspx
On Jul 13, 8:57 am, Gandalf <goldn...@dotnet.itags.org.gmail.com> wrote:
> On Jul 13, 1:01 pm, Alexey Smirnov <alexey.smir...@dotnet.itags.org.gmail.com> wrote:
>
>
>
>
>
>
>
>
>
>
>
>
> I only have this two 'version' directories:
> v1.1.4322
> v1.0.3705
> and none of them contains the file aspnet_regiis.aspx- Hide quoted text -
> - Show quoted text -
I recommend you install .Net framework 3.0.
On Jul 13, 3:07 pm, Larry Bud <larrybud2...@dotnet.itags.org.yahoo.com> wrote:
> On Jul 13, 8:57 am, Gandalf <goldn...@dotnet.itags.org.gmail.com> wrote:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> I recommend you install .Net framework 3.0.
Thanks I will try it. it supposed to make it work?
re:
!> I recommend you install .Net framework 3.0.
I hope you meant *.Net Framework 2.0*, and not 3.0,
since 3.0 has nothing which an ASP.NET developer needs.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
======================================
"Larry Bud" <larrybud2002@dotnet.itags.org.yahoo.com> wrote in message news:1184332075.248198.101630@dotnet.itags.org.m3g2000
hsh.googlegroups.com...
> On Jul 13, 8:57 am, Gandalf <goldn...@dotnet.itags.org.gmail.com> wrote:
> I recommend you install .Net framework 3.0.
>
On Jul 13, 1:44 pm, "Juan T. Llibre" <nomailrepl...@dotnet.itags.org.nowhere.com>
wrote:
> re:
> !> I recommend you install .Net framework 3.0.
> I hope you meant *.Net Framework 2.0*, and not 3.0,
> since 3.0 has nothing which an ASP.NET developer needs.
> Juan T. Llibre, asp.net MVP
> asp.net faq :http://asp.net.do/faq/
> foros de asp.net, en espa=F1ol :http://asp.net.do/foros/
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
3D
>
> "LarryBud" <larrybud2...@dotnet.itags.org.yahoo.com> wrote in messagenews:1184332075.24819=
8=2E101630@dotnet.itags.org.m3g2000hsh.googlegroups.com...
>
>
al
ipt.
>
>
>
>
>
>
>
>
>
>
t -
>
>
Yes, I mean 2.0

the code in visual basic.net

how do i make the code stay in place in visual basic.net?
when i go to the design view and then back to the code view then my code has all been put to the left side and the structure that i made with tabs is gone..

can i choose somewhere not to make that happen?

so i don't have to tab all over again?That's real odd. Mine does the opposite. It auto tabs and makes everything look purty. :)

The compiler failed with error code -1073741819.

Anyone,

I have an ASP.NET webapp in the 1.0 framework that has been working for
the past 2ish years.

Two weeks ago a new developer received the following error when trying
to run the app in debug mode.

"The instruction at "0x77f57ec6" referenced memory at "0x797800004".
The memory could not be "written".

>From the IDE, before I attempt to run in debug mode I can "right click"
a given aspx file and "View Code". I can also "right click" and "View
in Designer". When I attempt to "right click" and "View in Browser" I
receive the following 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.

The detailed Compiler Output is as follows:

C:\WINDOWS\system32>
"c:\windows\microsoft.net\framework\v1.0.3705\vbc.e xe" /t:library
/utf8output
/R:"c:\windows\assembly\gac\crystaldecisions.web\9.1.3 300.0__692fbea5521e1304\crystaldecisions.web.dll"
/R:"c:\windows\microsoft.net\framework\v1.0.3705\tempo rary asp.net
files\nexsurex_working\cd5673eb\1b418a67\assembly\ dl2\5642a9da\c0eb1c67_a2aac501\xsm2.dll"
/R:"c:\windows\assembly\gac\crystaldecisions.crystalre ports.engine\9.1.3300.0__692fbea5521e1304\crystald ecisions.crystalreports.engine.dll"
/R:"c:\windows\assembly\gac\system.web.services\1.0.33 00.0__b03f5f7f11d50a3a\system.web.services.dll"
/R:"c:\windows\assembly\gac\system.drawing\1.0.3300.0_ _b03f5f7f11d50a3a\system.drawing.dll"
/R:"c:\windows\microsoft.net\framework\v1.0.3705\tempo rary asp.net
files\nexsurex_working\cd5673eb\1b418a67\assembly\ dl2\d898667e\c40d926c_a2aac501\nexsurex.dll"
/R:"c:\windows\assembly\gac\system.xml\1.0.3300.0__b77 a5c561934e089\system.xml.dll"
/R:"c:\windows\microsoft.net\framework\v1.0.3705\tempo rary asp.net
files\nexsurex_working\cd5673eb\1b418a67\assembly\ dl2\430dcb9f\147ce564_a2aac501\xaccounting.dll"
/R:"c:\windows\microsoft.net\framework\v1.0.3705\tempo rary asp.net
files\nexsurex_working\cd5673eb\1b418a67\assembly\ dl2\2c66c8b1\6c3aaed6_9baac501\controls.dll"
/R:"c:\windows\microsoft.net\framework\v1.0.3705\tempo rary asp.net
files\nexsurex_working\cd5673eb\1b418a67\assembly\ dl2\6834c7bf\32afd8a9_9baac501\dalplugindetailedlo g.dll"
/R:"c:\windows\assembly\gac\crystaldecisions.reportsou rce\9.1.3300.0__692fbea5521e1304\crystaldecisions. reportsource.dll"
/R:"c:\windows\microsoft.net\framework\v1.0.3705\tempo rary asp.net
files\nexsurex_working\cd5673eb\1b418a67\assembly\ dl2\dade88bd\0060bd99_534fc201\interop.vba.dll"
/R:"c:\windows\microsoft.net\framework\v1.0.3705\tempo rary asp.net
files\nexsurex_working\cd5673eb\1b418a67\assembly\ dl2\9f86c1cb\0ac2eba9_9baac501\xdom3.dll"
/R:"c:\windows\microsoft.net\framework\v1.0.3705\tempo rary asp.net
files\nexsurex_working\cd5673eb\1b418a67\assembly\ dl2\b0170de4\b0608c65_a2aac501\commonlib.dll"
/R:"c:\windows\assembly\gac\crystaldecisions.shared\9. 1.3300.0__692fbea5521e1304\crystaldecisions.shared .dll"
/R:"c:\windows\microsoft.net\framework\v1.0.3705\tempo rary asp.net
files\nexsurex_working\cd5673eb\1b418a67\assembly\ dl2\1edb7ee1\f99ae4a9_9baac501\xdba3.dll"
/R:"c:\windows\assembly\gac\system.data\1.0.3300.0__b7 7a5c561934e089\system.data.dll"
/R:"c:\windows\assembly\gac\system.enterpriseservices\ 1.0.3300.0__b03f5f7f11d50a3a\system.enterpriseserv ices.dll"
/R:"c:\windows\microsoft.net\framework\v1.0.3705\tempo rary asp.net
files\nexsurex_working\cd5673eb\1b418a67\assembly\ dl2\7996cee9\e873dda9_9baac501\vcrpagenavigator.dl l"
/R:"c:\windows\assembly\gac\system\1.0.3300.0__b77a5c5 61934e089\system.dll"
/R:"c:\windows\assembly\gac\system.web\1.0.3300.0__b03 f5f7f11d50a3a\system.web.dll"
/R:"c:\windows\microsoft.net\framework\v1.0.3705\tempo rary asp.net
files\nexsurex_working\cd5673eb\1b418a67\assembly\ dl2\93ce11ca\a67a0465_a2aac501\xdti.webcontols.dll "
/out:"C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\Tempo rary ASP.NET
Files\nexsurex_working\cd5673eb\1b418a67\thy6lfor. dll" /D:DEBUG=1
/debug+ "C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\Tempo rary
ASP.NET Files\nexsurex_working\cd5673eb\1b418a67\thy6lfor. 0.vb"

Microsoft (R) Visual Basic .NET Compiler version 7.00.9466
for Microsoft (R) .NET Framework version 1.00.3705.288
Copyright (C) Microsoft Corporation 1987-2001. All rights reserved.

The first developer who was receiving this issue had IT rebuild the
box, and the problem went away for a day or two, but came back. He is
currently on the third rebuild, with the application working for three
consecutive days.

With this now happening on my machine, I believe this to be an
application issue, not hardware.

Any help would be greatly appreciated.Check your hard disk(s) for errors.

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

<robert_m_fisher@dotnet.itags.org.yahoo.com> wrote in message
news:1125104686.827098.248920@dotnet.itags.org.g14g2000cwa.googlegr oups.com...
> Anyone,
> I have an ASP.NET webapp in the 1.0 framework that has been working for
> the past 2ish years.
> Two weeks ago a new developer received the following error when trying
> to run the app in debug mode.
> "The instruction at "0x77f57ec6" referenced memory at "0x797800004".
> The memory could not be "written".
>>From the IDE, before I attempt to run in debug mode I can "right click"
> a given aspx file and "View Code". I can also "right click" and "View
> in Designer". When I attempt to "right click" and "View in Browser" I
> receive the following 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.
> The detailed Compiler Output is as follows:
> C:\WINDOWS\system32>
> "c:\windows\microsoft.net\framework\v1.0.3705\vbc.e xe" /t:library
> /utf8output
> /R:"c:\windows\assembly\gac\crystaldecisions.web\9.1.3 300.0__692fbea5521e1304\crystaldecisions.web.dll"
> /R:"c:\windows\microsoft.net\framework\v1.0.3705\tempo rary asp.net
> files\nexsurex_working\cd5673eb\1b418a67\assembly\ dl2\5642a9da\c0eb1c67_a2aac501\xsm2.dll"
> /R:"c:\windows\assembly\gac\crystaldecisions.crystalre ports.engine\9.1.3300.0__692fbea5521e1304\crystald ecisions.crystalreports.engine.dll"
> /R:"c:\windows\assembly\gac\system.web.services\1.0.33 00.0__b03f5f7f11d50a3a\system.web.services.dll"
> /R:"c:\windows\assembly\gac\system.drawing\1.0.3300.0_ _b03f5f7f11d50a3a\system.drawing.dll"
> /R:"c:\windows\microsoft.net\framework\v1.0.3705\tempo rary asp.net
> files\nexsurex_working\cd5673eb\1b418a67\assembly\ dl2\d898667e\c40d926c_a2aac501\nexsurex.dll"
> /R:"c:\windows\assembly\gac\system.xml\1.0.3300.0__b77 a5c561934e089\system.xml.dll"
> /R:"c:\windows\microsoft.net\framework\v1.0.3705\tempo rary asp.net
> files\nexsurex_working\cd5673eb\1b418a67\assembly\ dl2\430dcb9f\147ce564_a2aac501\xaccounting.dll"
> /R:"c:\windows\microsoft.net\framework\v1.0.3705\tempo rary asp.net
> files\nexsurex_working\cd5673eb\1b418a67\assembly\ dl2\2c66c8b1\6c3aaed6_9baac501\controls.dll"
> /R:"c:\windows\microsoft.net\framework\v1.0.3705\tempo rary asp.net
> files\nexsurex_working\cd5673eb\1b418a67\assembly\ dl2\6834c7bf\32afd8a9_9baac501\dalplugindetailedlo g.dll"
> /R:"c:\windows\assembly\gac\crystaldecisions.reportsou rce\9.1.3300.0__692fbea5521e1304\crystaldecisions. reportsource.dll"
> /R:"c:\windows\microsoft.net\framework\v1.0.3705\tempo rary asp.net
> files\nexsurex_working\cd5673eb\1b418a67\assembly\ dl2\dade88bd\0060bd99_534fc201\interop.vba.dll"
> /R:"c:\windows\microsoft.net\framework\v1.0.3705\tempo rary asp.net
> files\nexsurex_working\cd5673eb\1b418a67\assembly\ dl2\9f86c1cb\0ac2eba9_9baac501\xdom3.dll"
> /R:"c:\windows\microsoft.net\framework\v1.0.3705\tempo rary asp.net
> files\nexsurex_working\cd5673eb\1b418a67\assembly\ dl2\b0170de4\b0608c65_a2aac501\commonlib.dll"
> /R:"c:\windows\assembly\gac\crystaldecisions.shared\9. 1.3300.0__692fbea5521e1304\crystaldecisions.shared .dll"
> /R:"c:\windows\microsoft.net\framework\v1.0.3705\tempo rary asp.net
> files\nexsurex_working\cd5673eb\1b418a67\assembly\ dl2\1edb7ee1\f99ae4a9_9baac501\xdba3.dll"
> /R:"c:\windows\assembly\gac\system.data\1.0.3300.0__b7 7a5c561934e089\system.data.dll"
> /R:"c:\windows\assembly\gac\system.enterpriseservices\ 1.0.3300.0__b03f5f7f11d50a3a\system.enterpriseserv ices.dll"
> /R:"c:\windows\microsoft.net\framework\v1.0.3705\tempo rary asp.net
> files\nexsurex_working\cd5673eb\1b418a67\assembly\ dl2\7996cee9\e873dda9_9baac501\vcrpagenavigator.dl l"
> /R:"c:\windows\assembly\gac\system\1.0.3300.0__b77a5c5 61934e089\system.dll"
> /R:"c:\windows\assembly\gac\system.web\1.0.3300.0__b03 f5f7f11d50a3a\system.web.dll"
> /R:"c:\windows\microsoft.net\framework\v1.0.3705\tempo rary asp.net
> files\nexsurex_working\cd5673eb\1b418a67\assembly\ dl2\93ce11ca\a67a0465_a2aac501\xdti.webcontols.dll "
> /out:"C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\Tempo rary ASP.NET
> Files\nexsurex_working\cd5673eb\1b418a67\thy6lfor. dll" /D:DEBUG=1
> /debug+ "C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\Tempo rary
> ASP.NET Files\nexsurex_working\cd5673eb\1b418a67\thy6lfor. 0.vb"
>
> Microsoft (R) Visual Basic .NET Compiler version 7.00.9466
> for Microsoft (R) .NET Framework version 1.00.3705.288
> Copyright (C) Microsoft Corporation 1987-2001. All rights reserved.
> The first developer who was receiving this issue had IT rebuild the
> box, and the problem went away for a day or two, but came back. He is
> currently on the third rebuild, with the application working for three
> consecutive days.
> With this now happening on my machine, I believe this to be an
> application issue, not hardware.
> Any help would be greatly appreciated.

The compiler failed with error code -1073741502.

Any ideals what would cause this ?

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
-1073741502.

Show Detailed Compiler Output:

C:\WINDOWS\system32"c:\windows\microsoft.net\framework
\v1.1.4322\csc.exe" /t:library /utf8output /R:"c:\windows\microsoft.net
\framework\v1.1.4322\mscorlib.dll" /R:"c:\windows\microsoft.net
\framework\v1.1.4322\temporary asp.net files\cnnencodingservices
\0f9adc62\70fb5ce7\g8avop1s.dll" /R:"c:\windows\assembly\gac
\system.enterpriseservices\1.0.5000.0__b03f5f7f11d 50a3a
\system.enterpriseservices.dll" /R:"c:\windows\microsoft.net\framework
\v1.1.4322\temporary asp.net files\cnnencodingservices
\0f9adc62\70fb5ce7\assembly\dl2\9b87984c
\00665a14_66a1c201\interop.wmencagentlocatorlib.dl l" /R:"c:\windows
\assembly\gac\system.data
\1.0.5000.0__b77a5c561934e089\system.data.dll" /R:"c:\windows
\microsoft.net\framework\v1.1.4322\temporary asp.net files
\cnnencodingservices\0f9adc62\70fb5ce7\assembly
\dl2\a9191987\00665a14_66a1c201\interop.wmencagtli b.dll" /R:"c:\windows
\assembly\gac\system.web.mobile\1.0.5000.0__b03f5f 7f11d50a3a
\system.web.mobile.dll" /R:"c:\windows\microsoft.net\framework
\v1.1.4322\temporary asp.net files\cnnencodingservices
\0f9adc62\70fb5ce7\assembly
\dl2\8656e736\0009e65d_74d4c701\log4net.dll" /R:"c:\windows
\microsoft.net\framework\v1.1.4322\temporary asp.net files
\cnnencodingservices\0f9adc62\70fb5ce7\assembly\dl 2\e0eb1a8b
\00bdaa62_74d4c701\cnnencodingservices.dll" /R:"c:\windows\assembly\gac
\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\syste m.drawing.dll" /R:"c:
\windows\microsoft.net\framework\v1.1.4322\tempora ry asp.net files
\cnnencodingservices\0f9adc62\70fb5ce7\assembly
\dl2\ebf89319\00dcb45c_74d4c701\wmewebsvcagent.dll " /R:"c:\windows
\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e 089\system.xml.dll" /
R:"c:\windows\microsoft.net\framework\v1.1.4322\tempo rary asp.net files
\cnnencodingservices\0f9adc62\70fb5ce7\assembly
\dl2\18b641f9\00665a14_66a1c201\interop.wmencoderl ib.dll" /R:"c:
\windows\assembly\gac\system.web.services\1.0.5000 .0__b03f5f7f11d50a3a
\system.web.services.dll" /R:"c:\windows\microsoft.net\framework
\v1.1.4322\temporary asp.net files\cnnencodingservices
\0f9adc62\70fb5ce7\assembly\dl2\b9e5a82b
\00dcb45c_74d4c701\wmewebsvc.dll" /R:"c:\windows\assembly\gac\system
\1.0.5000.0__b77a5c561934e089\system.dll" /R:"c:\windows\assembly\gac
\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.we b.dll" /out:"C:
\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Tempora ry ASP.NET Files
\cnnencodingservices\0f9adc62\70fb5ce7\hic1jo5y.dl l" /D:DEBUG /debug+ /
optimize- /warnaserror /w:1 "C:\WINDOWS\Microsoft.NET\Framework
\v1.1.4322\Temporary ASP.NET Files\cnnencodingservices
\0f9adc62\70fb5ce7\hic1jo5y.0.cs"

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.2032
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: namespace ASP {
Line 12: using System;
Line 13: using System.Collections;
Line 14: using System.Collections.Specialized;
Line 15: using System.Configuration;
Line 16: using System.Text;
Line 17: using System.Text.RegularExpressions;
Line 18: using System.Web;
Line 19: using System.Web.Caching;
Line 20: using System.Web.SessionState;
Line 21: using System.Web.Security;
Line 22: using System.Web.UI;
Line 23: using System.Web.UI.WebControls;
Line 24: using System.Web.UI.HtmlControls;
Line 25: using ASP;
Line 26:
Line 27: #line 2 "c:\windows\microsoft.net\framework
\v1.1.4322\Config\DefaultWsdlHelpGenerator.aspx"
Line 28: using System.IO;
Line 29:
Line 30: #line default
Line 31: #line hidden
Line 32:
Line 33: #line 3 "c:\windows\microsoft.net\framework
\v1.1.4322\Config\DefaultWsdlHelpGenerator.aspx"
Line 34: using System.Xml.Serialization;you had the app running while you were trying to build it. Not going to
happen. Close down the web app first then try and build it again.

<rkcons@dotnet.itags.org.gmail.comwrote in message
news:1190212403.368282.126580@dotnet.itags.org.57g2000hsv.googlegro ups.com...

Quote:

Originally Posted by

Any ideals what would cause this ?
>
>
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
-1073741502.
>
>
>
Show Detailed Compiler Output:
>
C:\WINDOWS\system32"c:\windows\microsoft.net\framework
\v1.1.4322\csc.exe" /t:library /utf8output /R:"c:\windows\microsoft.net
\framework\v1.1.4322\mscorlib.dll" /R:"c:\windows\microsoft.net
\framework\v1.1.4322\temporary asp.net files\cnnencodingservices
\0f9adc62\70fb5ce7\g8avop1s.dll" /R:"c:\windows\assembly\gac
\system.enterpriseservices\1.0.5000.0__b03f5f7f11d 50a3a
\system.enterpriseservices.dll" /R:"c:\windows\microsoft.net\framework
\v1.1.4322\temporary asp.net files\cnnencodingservices
\0f9adc62\70fb5ce7\assembly\dl2\9b87984c
\00665a14_66a1c201\interop.wmencagentlocatorlib.dl l" /R:"c:\windows
\assembly\gac\system.data
\1.0.5000.0__b77a5c561934e089\system.data.dll" /R:"c:\windows
\microsoft.net\framework\v1.1.4322\temporary asp.net files
\cnnencodingservices\0f9adc62\70fb5ce7\assembly
\dl2\a9191987\00665a14_66a1c201\interop.wmencagtli b.dll" /R:"c:\windows
\assembly\gac\system.web.mobile\1.0.5000.0__b03f5f 7f11d50a3a
\system.web.mobile.dll" /R:"c:\windows\microsoft.net\framework
\v1.1.4322\temporary asp.net files\cnnencodingservices
\0f9adc62\70fb5ce7\assembly
\dl2\8656e736\0009e65d_74d4c701\log4net.dll" /R:"c:\windows
\microsoft.net\framework\v1.1.4322\temporary asp.net files
\cnnencodingservices\0f9adc62\70fb5ce7\assembly\dl 2\e0eb1a8b
\00bdaa62_74d4c701\cnnencodingservices.dll" /R:"c:\windows\assembly\gac
\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\syste m.drawing.dll" /R:"c:
\windows\microsoft.net\framework\v1.1.4322\tempora ry asp.net files
\cnnencodingservices\0f9adc62\70fb5ce7\assembly
\dl2\ebf89319\00dcb45c_74d4c701\wmewebsvcagent.dll " /R:"c:\windows
\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e 089\system.xml.dll" /
R:"c:\windows\microsoft.net\framework\v1.1.4322\tempo rary asp.net files
\cnnencodingservices\0f9adc62\70fb5ce7\assembly
\dl2\18b641f9\00665a14_66a1c201\interop.wmencoderl ib.dll" /R:"c:
\windows\assembly\gac\system.web.services\1.0.5000 .0__b03f5f7f11d50a3a
\system.web.services.dll" /R:"c:\windows\microsoft.net\framework
\v1.1.4322\temporary asp.net files\cnnencodingservices
\0f9adc62\70fb5ce7\assembly\dl2\b9e5a82b
\00dcb45c_74d4c701\wmewebsvc.dll" /R:"c:\windows\assembly\gac\system
\1.0.5000.0__b77a5c561934e089\system.dll" /R:"c:\windows\assembly\gac
\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.we b.dll" /out:"C:
\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Tempora ry ASP.NET Files
\cnnencodingservices\0f9adc62\70fb5ce7\hic1jo5y.dl l" /D:DEBUG /debug+ /
optimize- /warnaserror /w:1 "C:\WINDOWS\Microsoft.NET\Framework
\v1.1.4322\Temporary ASP.NET Files\cnnencodingservices
\0f9adc62\70fb5ce7\hic1jo5y.0.cs"
>
>
>
>
>
>
>
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.2032
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: namespace ASP {
Line 12: using System;
Line 13: using System.Collections;
Line 14: using System.Collections.Specialized;
Line 15: using System.Configuration;
Line 16: using System.Text;
Line 17: using System.Text.RegularExpressions;
Line 18: using System.Web;
Line 19: using System.Web.Caching;
Line 20: using System.Web.SessionState;
Line 21: using System.Web.Security;
Line 22: using System.Web.UI;
Line 23: using System.Web.UI.WebControls;
Line 24: using System.Web.UI.HtmlControls;
Line 25: using ASP;
Line 26:
Line 27: #line 2 "c:\windows\microsoft.net\framework
\v1.1.4322\Config\DefaultWsdlHelpGenerator.aspx"
Line 28: using System.IO;
Line 29:
Line 30: #line default
Line 31: #line hidden
Line 32:
Line 33: #line 3 "c:\windows\microsoft.net\framework
\v1.1.4322\Config\DefaultWsdlHelpGenerator.aspx"
Line 34: using System.Xml.Serialization;
>

The compiler failed with error code -1073741502

Hi all,
I was working on a little project, worked fine, but now all of a sudden I
get:
The compiler failed with error code -1073741502
as an error message (when running the site, not building).
I have NO idea what's wrong. I changed some code (only very small, which I
did like 10 times before that in the past 15 minutes) and I can't get it
back to work, whatever I do. The details of this error message are:
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 -1073741502.
Show Detailed Compiler Output:
C:\WINDOWS\system32> "c:\windows\microsoft.net\framework\v1.1.4322\csc.exe"
/t:library /utf8output
/R:"c:\windows\assembly\gac\system.web.mobile\1.0.5000.0__b03f5f7f11d50a3a\s
ystem.web.mobile.dll"
/R:"c:\windows\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.
data.dll"
/R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net
files\whoissite\d24d73f4\7403d467\assemb
ly\dl2\2f0f1907\a8f077d3_1bcbc401\wh
oissite.dll"
/R:"c:\windows\assembly\gac\system.enterpriseservices\1.0.5000.0__b03f5f7f11
d50a3a\system.enterpriseservices.dll"
/R:"c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll"
/R:"c:\windows\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.w
eb.dll"
/R:"c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll"
/R:"c:\windows\assembly\gac\system.web.services\1.0.5000.0__b03f5f7f11d50a3a
\system.web.services.dll"
/R:"c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.x
ml.dll"
/R:"c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\syst
em.drawing.dll"
/out:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\whoissite\d24d73f4\7403d467\aydmbx
nx.dll" /D:DEBUG /debug+ /optimize-
/warnaserror /w:1 "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary
ASP.NET Files\whoissite\d24d73f4\7403d467\aydmbx
nx.0.cs"
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.2032
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: namespace ASP {
Line 12: using System;
Line 13: using System.Collections;
Line 14: using System.Collections.Specialized;
Line 15: using System.Configuration;
Line 16: using System.Text;
Line 17: using System.Text.RegularExpressions;
Line 18: using System.Web;
Line 19: using System.Web.Caching;
Line 20: using System.Web.SessionState;
Line 21: using System.Web.Security;
Line 22: using System.Web.UI;
Line 23: using System.Web.UI.WebControls;
Line 24: using System.Web.UI.HtmlControls;
Line 25:
Line 26:
Line 27:
[System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
Line 28: public class Global_asax : WhoisSite.Global {
Line 29:
Line 30: private static bool __initialized = false;
Line 31:
Line 32: public Global_asax() {
Line 33: if ((ASP.Global_asax.__initialized == false)) {
Line 34: ASP.Global_asax.__initialized = true;
Line 35: }
Line 36: }
Line 37: }
Line 38: }
Line 39:
But when I only Build the project, it goes fine! I have already deleted the
site from IIS and Added it again, removed the temp folder it shows in
detailed compiler output, but without luck.
HELP?! :D
Thanks,
Razzieok solved it - somehow there was still an instance running in the background
(iexplore.exe) and I terminated them, and it worked again.
"Razzie" <razzieNOSPAM@dotnet.itags.org.quicknet.nl> wrote in message
news:O4o%23czxyEHA.3408@dotnet.itags.org.TK2MSFTNGP10.phx.gbl...
> Hi all,
> I was working on a little project, worked fine, but now all of a sudden I
> get:
> The compiler failed with error code -1073741502
> as an error message (when running the site, not building).
> I have NO idea what's wrong. I changed some code (only very small, which I
> did like 10 times before that in the past 15 minutes) and I can't get it
> back to work, whatever I do. The details of this error message are:
> 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 -1073741502.
> Show Detailed Compiler Output:
> C:\WINDOWS\system32>
> "c:\windows\microsoft.net\framework\v1.1.4322\csc.exe" /t:library
> /utf8output
> /R:"c:\windows\assembly\gac\system.web.mobile\1.0.5000.0__b03f5f7f11d50a3a
\system.web.mobile.dll"
> /R:"c:\windows\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\syste
m.data.dll"
> /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net
> files\whoissite\d24d73f4\7403d467\assemb
ly\dl2\2f0f1907\a8f077d3_1bcbc401\
whoissite.dll"
> /R:"c:\windows\assembly\gac\system.enterpriseservices\1.0.5000.0__b03f5f7f
11d50a3a\system.enterpriseservices.dll"
> /R:"c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll"
> /R:"c:\windows\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\system
.web.dll"
> /R:"c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll
"
> /R:"c:\windows\assembly\gac\system.web.services\1.0.5000.0__b03f5f7f11d50a
3a\system.web.services.dll"
> /R:"c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system
.xml.dll"
> /R:"c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\sy
stem.drawing.dll"
> /out:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
> Files\whoissite\d24d73f4\7403d467\aydmbx
nx.dll" /D:DEBUG /debug+
> /optimize- /warnaserror /w:1
> "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
> Files\whoissite\d24d73f4\7403d467\aydmbx
nx.0.cs"
>
>
> 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.2032
> 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: namespace ASP {
> Line 12: using System;
> Line 13: using System.Collections;
> Line 14: using System.Collections.Specialized;
> Line 15: using System.Configuration;
> Line 16: using System.Text;
> Line 17: using System.Text.RegularExpressions;
> Line 18: using System.Web;
> Line 19: using System.Web.Caching;
> Line 20: using System.Web.SessionState;
> Line 21: using System.Web.Security;
> Line 22: using System.Web.UI;
> Line 23: using System.Web.UI.WebControls;
> Line 24: using System.Web.UI.HtmlControls;
> Line 25:
> Line 26:
> Line 27: [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
> Line 28: public class Global_asax : WhoisSite.Global {
> Line 29:
> Line 30: private static bool __initialized = false;
> Line 31:
> Line 32: public Global_asax() {
> Line 33: if ((ASP.Global_asax.__initialized == false)) {
> Line 34: ASP.Global_asax.__initialized = true;
> Line 35: }
> Line 36: }
> Line 37: }
> Line 38: }
> Line 39:
>
> But when I only Build the project, it goes fine! I have already deleted
> the site from IIS and Added it again, removed the temp folder it shows in
> detailed compiler output, but without luck.
> HELP?! :D
> Thanks,
> Razzie
>

The compiler failed with error code -1073741502

Hi all,

I was working on a little project, worked fine, but now all of a sudden I
get:

The compiler failed with error code -1073741502

as an error message (when running the site, not building).
I have NO idea what's wrong. I changed some code (only very small, which I
did like 10 times before that in the past 15 minutes) and I can't get it
back to work, whatever I do. The details of this error message are:

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 -1073741502.

Show Detailed Compiler Output:

C:\WINDOWS\system32> "c:\windows\microsoft.net\framework\v1.1.4322\csc.e xe"
/t:library /utf8output
/R:"c:\windows\assembly\gac\system.web.mobile\1.0.5000 .0__b03f5f7f11d50a3a\system.web.mobile.dll"
/R:"c:\windows\assembly\gac\system.data\1.0.5000.0__b7 7a5c561934e089\system.data.dll"
/R:"c:\windows\microsoft.net\framework\v1.1.4322\tempo rary asp.net
files\whoissite\d24d73f4\7403d467\assembly\dl2\2f0 f1907\a8f077d3_1bcbc401\whoissite.dll"
/R:"c:\windows\assembly\gac\system.enterpriseservices\ 1.0.5000.0__b03f5f7f11d50a3a\system.enterpriseserv ices.dll"
/R:"c:\windows\microsoft.net\framework\v1.1.4322\mscor lib.dll"
/R:"c:\windows\assembly\gac\system.web\1.0.5000.0__b03 f5f7f11d50a3a\system.web.dll"
/R:"c:\windows\assembly\gac\system\1.0.5000.0__b77a5c5 61934e089\system.dll"
/R:"c:\windows\assembly\gac\system.web.services\1.0.50 00.0__b03f5f7f11d50a3a\system.web.services.dll"
/R:"c:\windows\assembly\gac\system.xml\1.0.5000.0__b77 a5c561934e089\system.xml.dll"
/R:"c:\windows\assembly\gac\system.drawing\1.0.5000.0_ _b03f5f7f11d50a3a\system.drawing.dll"
/out:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Tempo rary ASP.NET
Files\whoissite\d24d73f4\7403d467\aydmbxnx.dll" /D:DEBUG /debug+ /optimize-
/warnaserror /w:1 "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Tempo rary
ASP.NET Files\whoissite\d24d73f4\7403d467\aydmbxnx.0.cs"

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.2032
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: namespace ASP {
Line 12: using System;
Line 13: using System.Collections;
Line 14: using System.Collections.Specialized;
Line 15: using System.Configuration;
Line 16: using System.Text;
Line 17: using System.Text.RegularExpressions;
Line 18: using System.Web;
Line 19: using System.Web.Caching;
Line 20: using System.Web.SessionState;
Line 21: using System.Web.Security;
Line 22: using System.Web.UI;
Line 23: using System.Web.UI.WebControls;
Line 24: using System.Web.UI.HtmlControls;
Line 25:
Line 26:
Line 27:
[System.Runtime.CompilerServices.CompilerGlobalScop eAttribute()]
Line 28: public class Global_asax : WhoisSite.Global {
Line 29:
Line 30: private static bool __initialized = false;
Line 31:
Line 32: public Global_asax() {
Line 33: if ((ASP.Global_asax.__initialized == false)) {
Line 34: ASP.Global_asax.__initialized = true;
Line 35: }
Line 36: }
Line 37: }
Line 38: }
Line 39:

But when I only Build the project, it goes fine! I have already deleted the
site from IIS and Added it again, removed the temp folder it shows in
detailed compiler output, but without luck.
HELP?! :D

Thanks,

Razzieok solved it - somehow there was still an instance running in the background
(iexplore.exe) and I terminated them, and it worked again.

"Razzie" <razzieNOSPAM@dotnet.itags.org.quicknet.nl> wrote in message
news:O4o%23czxyEHA.3408@dotnet.itags.org.TK2MSFTNGP10.phx.gbl...
> Hi all,
> I was working on a little project, worked fine, but now all of a sudden I
> get:
> The compiler failed with error code -1073741502
> as an error message (when running the site, not building).
> I have NO idea what's wrong. I changed some code (only very small, which I
> did like 10 times before that in the past 15 minutes) and I can't get it
> back to work, whatever I do. The details of this error message are:
> 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 -1073741502.
> Show Detailed Compiler Output:
> C:\WINDOWS\system32>
> "c:\windows\microsoft.net\framework\v1.1.4322\csc.e xe" /t:library
> /utf8output
> /R:"c:\windows\assembly\gac\system.web.mobile\1.0.5000 .0__b03f5f7f11d50a3a\system.web.mobile.dll"
> /R:"c:\windows\assembly\gac\system.data\1.0.5000.0__b7 7a5c561934e089\system.data.dll"
> /R:"c:\windows\microsoft.net\framework\v1.1.4322\tempo rary asp.net
> files\whoissite\d24d73f4\7403d467\assembly\dl2\2f0 f1907\a8f077d3_1bcbc401\whoissite.dll"
> /R:"c:\windows\assembly\gac\system.enterpriseservices\ 1.0.5000.0__b03f5f7f11d50a3a\system.enterpriseserv ices.dll"
> /R:"c:\windows\microsoft.net\framework\v1.1.4322\mscor lib.dll"
> /R:"c:\windows\assembly\gac\system.web\1.0.5000.0__b03 f5f7f11d50a3a\system.web.dll"
> /R:"c:\windows\assembly\gac\system\1.0.5000.0__b77a5c5 61934e089\system.dll"
> /R:"c:\windows\assembly\gac\system.web.services\1.0.50 00.0__b03f5f7f11d50a3a\system.web.services.dll"
> /R:"c:\windows\assembly\gac\system.xml\1.0.5000.0__b77 a5c561934e089\system.xml.dll"
> /R:"c:\windows\assembly\gac\system.drawing\1.0.5000.0_ _b03f5f7f11d50a3a\system.drawing.dll"
> /out:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Tempo rary ASP.NET
> Files\whoissite\d24d73f4\7403d467\aydmbxnx.dll" /D:DEBUG /debug+
> /optimize- /warnaserror /w:1
> "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Tempo rary ASP.NET
> Files\whoissite\d24d73f4\7403d467\aydmbxnx.0.cs"
>
>
> 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.2032
> 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: namespace ASP {
> Line 12: using System;
> Line 13: using System.Collections;
> Line 14: using System.Collections.Specialized;
> Line 15: using System.Configuration;
> Line 16: using System.Text;
> Line 17: using System.Text.RegularExpressions;
> Line 18: using System.Web;
> Line 19: using System.Web.Caching;
> Line 20: using System.Web.SessionState;
> Line 21: using System.Web.Security;
> Line 22: using System.Web.UI;
> Line 23: using System.Web.UI.WebControls;
> Line 24: using System.Web.UI.HtmlControls;
> Line 25:
> Line 26:
> Line 27: [System.Runtime.CompilerServices.CompilerGlobalScop eAttribute()]
> Line 28: public class Global_asax : WhoisSite.Global {
> Line 29:
> Line 30: private static bool __initialized = false;
> Line 31:
> Line 32: public Global_asax() {
> Line 33: if ((ASP.Global_asax.__initialized == false)) {
> Line 34: ASP.Global_asax.__initialized = true;
> Line 35: }
> Line 36: }
> Line 37: }
> Line 38: }
> Line 39:
>
> But when I only Build the project, it goes fine! I have already deleted
> the site from IIS and Added it again, removed the temp folder it shows in
> detailed compiler output, but without luck.
> HELP?! :D
> Thanks,
> Razzie

The compiler failed with error code 128

Hi there,
I've seen this error appear a few times in newsgroups but unfortunately I ha
ven't found one that actually provides a solution.
I'm basically deploying a new website into an area at a web hosting company
and when I try to run the site (which runs in our local IIS server), I get t
he following error:
Server Error in '/New' 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: The compiler failed with error code 128.
Detailed Compiler Output:
c:\windows\system32\inetsrv> "c:\windows\microsoft.net\framework\v1.1.4322\c
sc.exe" /t:library /utf8output /R:"c:\windows\microsoft.net\framework\v1.1.4
322\mscorlib.dll" /R:"c:\windows\assembly\gac\system.enterpriseservices\1.0.
5000.0__b03f5f7f11d50a3a\sy
stem.enterpriseservices.dll" /R:"c:\windows\assembly\gac\system.data\1.0.500
0.0__b77a5c561934e089\system.data.dll" /R:"c:\windows\assembly\gac\system.dr
awing\1.0.5000.0__b03f5f7f11d50a3a\system.drawing.dll" /R:"c:\windows\assemb
ly\gac\system.web.mobile\1.
0.5000.0__b03f5f7f11d50a3a\system.web.mobile.dll" /R:"c:\windows\microsoft.n
et\framework\v1.1.4322\temporary asp.net files\new\06f40836\72372c12\assembl
y\dl2\4409d694\a285e654_1960c401\csvutil
.dll" /R:"c:\windows\microsoft.net\f
ramework\v1.1.4322\temporar
y asp.net files\new\06f40836\72372c12\assembly\dl2
\96b27431\a470035a_1960c40
1\ohs.dll" /R:"c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e0
89\system.xml.dll" /R:"c:\windows\assembly\gac\system.web.services\1.0.5000.
0__b03f5f7f11d50a3a\system.
web.services.dll" /R:"c:\windows\assembly\gac\system\1.0.5000.0__b77a5c56193
4e089\system.dll" /R:"c:\windows\assembly\gac\system.web\1.0.5000.0__b03f5f7
f11d50a3a\system.web.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
\Temporary ASP.NET Files\ne
w\06f40836\72372c12\mzfpukxi.dll" /D:DEBUG /debug+ /optimize- /w:0 "C:\WIND
OWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\new\06f40836\7
2372c12\mzfpukxi.0.cs"
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: namespace ASP {
Line 12: using System;
Line 13: using System.Collections;
Line 14: using System.Collections.Specialized;
Line 15: using System.Configuration;
Line 16: using System.Text;
Line 17: using System.Text.RegularExpressions;
Line 18: using System.Web;
Line 19: using System.Web.Caching;
Line 20: using System.Web.SessionState;
Line 21: using System.Web.Security;
Line 22: using System.Web.UI;
Line 23: using System.Web.UI.WebControls;
Line 24: using System.Web.UI.HtmlControls;
Line 25:
Line 26:
Line 27: [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute
()]
Line 28: public class Global_asax : Ohs.Global {
Line 29:
Line 30: private static bool __initialized = false;
Line 31:
Line 32: public Global_asax() {
Line 33: if ((ASP.Global_asax.__initialized == false)) {
Line 34: ASP.Global_asax.__initialized = true;
Line 35: }
Line 36: }
Line 37: }
Line 38: }
Line 39:
Any help with this would be greatly appreciated.
Many thanks and best regards,
HamiltonHow come Microsoft cannot give a straight answer to this? What is the use of
"MSDN Managed" Discussion Groups if you cannot recieve an answer
to a question concerning a serious problem like this. I have been searching
the web for days trying to find a solution to this problem but nowhere have
I been able to find anything useful, least of all from Microsoft.
Two web sites on our production server suddenly stopped working, only
returning "The compiler failed with error code 128" no matter what aspx page
you request. We have changed permissions, recompiled the projects, installed
them and set them up on different disks with other addresses, reinstalled
.NET Framework;
in short everything but reinstalling Windows 2000 Server. Now we have found
out that the exact same thing happens to new ASP.NET web applications
installed on the
server! It will propably happen to all the existing ones as soon as we, God
forbid, have to change them or fix a bug.
Actually, there is one more thing we have not tried: installing the ASP.NET
1.1 June 2003 Hotfix Rollup Package described in
http://support.microsoft.com/default.aspx?kbid=821156.
We would gladly try this as well but there's one problem: the package is
nowhere to be found...
Could someone please point me to the hot fix or, even better, tell me how to
fix the problem. Thanks in advance!
"Hamilton" wrote:

> Hi there,
> I've seen this error appear a few times in newsgroups but unfortunately I
haven't found one that actually provides a solution.
> I'm basically deploying a new website into an area at a web hosting compan
y and when I try to run the site (which runs in our local IIS server), I get
the following error:
> Server Error in '/New' Application.
> Compilation Error
> Description: An error occurred during the compilation of a resource requir
ed to service this request. Please review the following specific error detai
ls and modify your source code appropriately.
> Compiler Error Message: The compiler failed with error code 128.
> Detailed Compiler Output:
> c:\windows\system32\inetsrv> "c:\windows\microsoft.net\framework\v1.1.4322\csc.exe
" /t:library /utf8output /R:"c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.d
ll" /R:"c:\windows\assembly\gac\system.enterpriseservices\1.0.5000.0__b03f5f7f11d50a
3a\
system.enterpriseservices.dll" /R:"c:\windows\assembly\gac\system.data\1.0.5
000.0__b77a5c561934e089\system.data.dll" /R:"c:\windows\assembly\gac\system.
drawing\1.0.5000.0__b03f5f7f11d50a3a\system.drawing.dll" /R:"c:\windows\asse
mbly\gac\system.web.mobile\
1.0.5000.0__b03f5f7f11d50a3a\system.web.mobile.dll" /R:"c:\windows\microsoft
.net\framework\v1.1.4322\temporary asp.net files\new\06f40836\72372c12\assem
bly\dl2\4409d694\a285e654_1960c401\csvut
il.dll" /R:"c:\windows\microsoft.net
\framework\v1.1.4322\tempor
ary asp.net files\new\06f40836\72372c12\assembly\dl2
\96b27431\a470035a_1960c
401\ohs.dll" /R:"c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934
e089\system.xml.dll"
/R:"c:\windows\assembly\gac\system.web.services\1.0.5000.0__b03f5f7f11d50a3a
\system.web.services.dll" /R:"c:\windows\assembly\gac\system\1.0.5000.0__b77
a5c561934e089\system.dll" /R:"c:\windows\assembly\gac\system.web\1.0.5000.0_
_b03f5f7f11d50a3a\system.we
b.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\new\06f40836\72372c12\mzfpukxi.dll" /D:DEBUG /debug+ /optimize- /w:0
"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\new\06
f40836\72372c12\mzfpukxi.0.
cs"
> 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 wi
ll be lost if
> Line 7: // the code is regenerated.
> Line 8: // </autogenerated>
> Line 9: //---
--
> Line 10:
> Line 11: namespace ASP {
> Line 12: using System;
> Line 13: using System.Collections;
> Line 14: using System.Collections.Specialized;
> Line 15: using System.Configuration;
> Line 16: using System.Text;
> Line 17: using System.Text.RegularExpressions;
> Line 18: using System.Web;
> Line 19: using System.Web.Caching;
> Line 20: using System.Web.SessionState;
> Line 21: using System.Web.Security;
> Line 22: using System.Web.UI;
> Line 23: using System.Web.UI.WebControls;
> Line 24: using System.Web.UI.HtmlControls;
> Line 25:
> Line 26:
> Line 27: [System.Runtime.CompilerServices.CompilerGlobalScopeAttribu
te()]
> Line 28: public class Global_asax : Ohs.Global {
> Line 29:
> Line 30: private static bool __initialized = false;
> Line 31:
> Line 32: public Global_asax() {
> Line 33: if ((ASP.Global_asax.__initialized == false)) {
> Line 34: ASP.Global_asax.__initialized = true;
> Line 35: }
> Line 36: }
> Line 37: }
> Line 38: }
> Line 39:
> Any help with this would be greatly appreciated.
> Many thanks and best regards,
> Hamilton
Any luck solving this? I know doing aspnet_regiis -i works to a point
but then it gets out of whack again.
"Joakim Sundn" <Joakim Sundn@dotnet.itags.org.discussions.microsoft.com> wrote in message news:<90016804-6
DB7-477B-8C95-4F90DA392AEC@dotnet.itags.org.microsoft.com>...
> How come Microsoft cannot give a straight answer to this? What is the use
of
> "MSDN Managed" Discussion Groups if you cannot recieve an answer
> to a question concerning a serious problem like this. I have been searchin
g
> the web for days trying to find a solution to this problem but nowhere hav
e
> I been able to find anything useful, least of all from Microsoft.
> Two web sites on our production server suddenly stopped working, only
> returning "The compiler failed with error code 128" no matter what aspx pa
ge
> you request. We have changed permissions, recompiled the projects, install
ed
> them and set them up on different disks with other addresses, reinstalled
> .NET Framework;
> in short everything but reinstalling Windows 2000 Server. Now we have foun
d
> out that the exact same thing happens to new ASP.NET web applications
> installed on the
> server! It will propably happen to all the existing ones as soon as we, Go
d
> forbid, have to change them or fix a bug.
> Actually, there is one more thing we have not tried: installing the ASP.NE
T
> 1.1 June 2003 Hotfix Rollup Package described in
> http://support.microsoft.com/default.aspx?kbid=821156.
> We would gladly try this as well but there's one problem: the package is
> nowhere to be found...
> Could someone please point me to the hot fix or, even better, tell me how
to
> fix the problem. Thanks in advance!
>
> "Hamilton" wrote:
>
"c:\windows\microsoft.net\framework\v1.1.4322\csc.exe" /t:library
/utf8output /R:"c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll"
/R:"c:\windows\assembly\gac\system.enterpriseservices\1.0.5000.0__b03f5f7f11
d50a3a\system.enterpriseservices.dll"
/R:"c:\windows\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.
data.dll"
/R:"c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\syst
em.drawing.dll"
/R:"c:\windows\assembly\gac\system.web.mobile\1.0.5000.0__b03f5f7f11d50a3a\s
ystem.web.mobile.dll"
/R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net
files\new\06f40836\72372c12\assembly\dl2
\4409d694\a285e654_1960c401\csvutil.
dll"
/R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net
files\new\06f40836\72372c12\assembly\dl2
\96b27431\a470035a_1960c401\ohs.dll"
/R:"c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.xml.dll"[color=d
arkred]
> /R:"c:\windows\assembly\gac\system.web.services\1.0.5000.0__b03f5f7f11d50a3a\syst
em.web.services.dll"
/R:"c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll"
/R:"c:\windows\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.w
eb.dll"
/out:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\new\06f40836\72372c12\mzfpukxi.dll" /D:DEBUG /debug+ /optimize-
/w:0 "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\new\06f40836\72372c12\mzfpukxi.0.cs"