Showing posts with label service. Show all posts
Showing posts with label service. Show all posts

Monday, March 26, 2012

Newbie ASP.NET Testing probles

OK I'm a complete beginner, and I've hit a snag.
I'm using Dreamweaver to create my ASP.NET pages, and i'm testing on my pc.
I have
XP Pro (Service Pack 2)
.NET Framework 1.1
IIS
and I'm using VB as my language
The problem is when i create my pages (that are stored in the wwwroot folder in inetpub) they do not run the ASP.NET VB code. I do not get errors it just shows some of the text but not the bits that should be generated by the VB and when I view the source code it says exactly what i have typed in my page. Not the HTML page that should be created with ASP.NET VB?, hiding the code you have written.
An example of this is this page.
<%@dotnet.itags.org.Page Language="VB" Debug="True" Explicit="True" %>
<html>
<head>
<title>Date</title>
</head>
<body>
<%
Dim CurrentDate As String
CurrentDate = Today
%>
The Current Date is <%=CurrentDate %>.<br>
</body>
</html>
Which produces the following result
The Current Date is .
My preview page in Dreamweaver says.
The Current Date is {text}.
Has anyone got any ideas please. Do I need to tweak the settings of IIS or do I need to install something into my inetpub?
Any help would be great guys thanks.

I don't use the inline method, which you're trying to use here...but itappears you're missing <script> tags. You should have alook at the tutorials on this site.
http://asp.net/Tutorials/quickstart.aspx

To get into the ASP.NET swing of things, try your page like this:
<%@. Page Language="VB" %>
<script runat="server">
Sub Page_Load (s As Object, e As EventArgs)
lblDate.text = DateTime.Now.ToString("d")
End Sub
</script>
<html>
<head>
<title>Date</title>
</head>
<body>
<form runat="server">
The Current Date is <asp:Label id="lblDate" runat="server"/>
</form>
</body>
</html>

As Frank said, definitely work through the tutorials, and strongly consider picking up a copy ofASP.NET Unleashed, Second Edition. Make that, DEFINITELY pick up a copy of that book! Every new ASP.NET developer should have it.

Cheers Tmorton
I've bought ASP.NET unleashed, Second Edition. Excellent recommendation.
I've got the code to work now. I've stopped using dreamweaver for testing. I create my site and ASPX pages in dreamweaver then open the file in web matrix to insert my code and test the pages.
To follow on from your previous post.
Having used ASP.NET unleashed and looked at the tutorials on the site; I can't find samples of what I am trying to do. After covering adding the date and calendar sections as ways of adding real time data into pages, which technique would be best to add these to multiple pages with the view to making altering the modification properties easiest to change i.e. font type and color without having to change every page on the site?
Should I use Global.asax or the config file in the bin? Or is there another way.
Sorry for the long winded description but I am new to this so I need to explain what I am trying to do.
Any links or tutorial references will be great
Cheers
RDG01


RDG01 wrote:

I've bought ASP.NET unleashed, Second Edition. Excellent recommendation.



Yes, that book is highly recommended across the board. I am glad you are finding it helpful.


RDG01 wrote:


After covering addingthe date and calendar sections as ways of adding real time data intopages, which technique would be best to add these to multiple pageswith the view to making altering the modification properties easiest tochange i.e. font type and color without having to change every page onthe site?


This sounds like a job for a user control. Check out chapter 5 ofthe ASP.NET Unleashed book you have in your hands - Creating CustomControls with User Controls.


Thursday, March 22, 2012

Newbie issue: Error creating Web Service in VS 2003

This summary is not available. Please click here to view the post.

Newbie issue: Error creating Web Service in VS 2003

Hi all! Here's my problem:

When trying to create a new C# Web Service in VS 2003, I get the following error
message:
"The Web server reported the following error when attempting to create or open
the Web project located at the following URL: 'http://localhost/WebService1'.
'HTTP/1.1 500 Internal Server Error'.

The Event Viewer contains 2 copies of this entry:
"Failed to execute request because the App-Domain could not be created. Error:
0x80131534" (Source: ASP.NET 1.1.4322.0, Event ID: 1088).

IIS Log file contains the following:
#Software: Microsoft Internet Information Services 5.1
#Version: 1.0
#Date: 2004-07-20 13:44:50
#Fields: time c-ip cs-method cs-uri-stem sc-status
13:44:50 127.0.0.1 GET /WebService1/get_aspx_ver.aspx 500
13:44:50 127.0.0.1 GET /get_aspx_ver.aspx 500

I have:
Uninstalled VS 2003, the .NET v1.1 Framework, and IIS.
Re-installed IIS, the .NET v1.1 Framework, and VS 2003.
Given the ASPNET user "Admin" rights and I/O rights to the C:\Inetpub folder.
Modified the <processModel> section of the Machine.Config file so that the the
SYSTEM account is being used.
Run aspnet_regiis.exe.
Probably done some other things I can no longer remember.

The machine is my normal local development box - running XP Pro.
I can hit http://localhost and all is well.
This is the first time I've tried to create a Web Service on this machine, so I
can't tell you if something has changed or if it ever worked.

I'm assuming it's a rights issue of some sort (although that get_aspx_ver.aspx
returning a '500' has me a bit confused - but like I mentioned, I'm a newbie).

Any suggestions would be much appreciated.

Thanks!

-- JimDid u google it ??
u'll find some posts on it ... are u developing on a domain controller
itself ?

--
Regards,
Mike
http://bikesh.europe.webmatrixhosting.net
http://www.planetsourcecode.com (search keyword: phoetus)

"JPH" <JPH_member@.newsguy.com> wrote in message
news:cdj8ad02cop@.drn.newsguy.com...
> Hi all! Here's my problem:
> When trying to create a new C# Web Service in VS 2003, I get the following
error
> message:
> "The Web server reported the following error when attempting to create or
open
> the Web project located at the following URL:
'http://localhost/WebService1'.
> 'HTTP/1.1 500 Internal Server Error'.
>
> The Event Viewer contains 2 copies of this entry:
> "Failed to execute request because the App-Domain could not be created.
Error:
> 0x80131534" (Source: ASP.NET 1.1.4322.0, Event ID: 1088).
>
> IIS Log file contains the following:
> #Software: Microsoft Internet Information Services 5.1
> #Version: 1.0
> #Date: 2004-07-20 13:44:50
> #Fields: time c-ip cs-method cs-uri-stem sc-status
> 13:44:50 127.0.0.1 GET /WebService1/get_aspx_ver.aspx 500
> 13:44:50 127.0.0.1 GET /get_aspx_ver.aspx 500
> I have:
> Uninstalled VS 2003, the .NET v1.1 Framework, and IIS.
> Re-installed IIS, the .NET v1.1 Framework, and VS 2003.
> Given the ASPNET user "Admin" rights and I/O rights to the C:\Inetpub
folder.
> Modified the <processModel> section of the Machine.Config file so that the
the
> SYSTEM account is being used.
> Run aspnet_regiis.exe.
> Probably done some other things I can no longer remember.
>
> The machine is my normal local development box - running XP Pro.
> I can hit http://localhost and all is well.
> This is the first time I've tried to create a Web Service on this machine,
so I
> can't tell you if something has changed or if it ever worked.
> I'm assuming it's a rights issue of some sort (although that
get_aspx_ver.aspx
> returning a '500' has me a bit confused - but like I mentioned, I'm a
newbie).
> Any suggestions would be much appreciated.
> Thanks!
> -- Jim

--
Outgoing mail is certified Virus Free. (well i'd like to think it is.. )
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.723 / Virus Database: 479 - Release Date: 20/07/2004
Oh yeah, I definitely googled it. Tried everything I found - no luck
whatsoever.

And nope - not on a domain controller, though I did try q315158 just in case -
no luck there either.

In article <ulGYmOnbEHA.1644@.tk2msftngp13.phx.gbl>, Mike Smith says...
>Did u google it ??
>u'll find some posts on it ... are u developing on a domain controller
>itself ?
>--
>Regards,
>Mike
>http://bikesh.europe.webmatrixhosting.net
>http://www.planetsourcecode.com (search keyword: phoetus)
>"JPH" <JPH_member@.newsguy.com> wrote in message
>news:cdj8ad02cop@.drn.newsguy.com...
>> Hi all! Here's my problem:
>>
>> When trying to create a new C# Web Service in VS 2003, I get the following
>error
>> message:
>> "The Web server reported the following error when attempting to create or
>open
>> the Web project located at the following URL:
>'http://localhost/WebService1'.
>> 'HTTP/1.1 500 Internal Server Error'.
>>
>>
>> The Event Viewer contains 2 copies of this entry:
>> "Failed to execute request because the App-Domain could not be created.
>Error:
>> 0x80131534" (Source: ASP.NET 1.1.4322.0, Event ID: 1088).
>>
>>
>> IIS Log file contains the following:
>> #Software: Microsoft Internet Information Services 5.1
>> #Version: 1.0
>> #Date: 2004-07-20 13:44:50
>> #Fields: time c-ip cs-method cs-uri-stem sc-status
>> 13:44:50 127.0.0.1 GET /WebService1/get_aspx_ver.aspx 500
>> 13:44:50 127.0.0.1 GET /get_aspx_ver.aspx 500
>>
>> I have:
>> Uninstalled VS 2003, the .NET v1.1 Framework, and IIS.
>> Re-installed IIS, the .NET v1.1 Framework, and VS 2003.
>> Given the ASPNET user "Admin" rights and I/O rights to the C:\Inetpub
>folder.
>> Modified the <processModel> section of the Machine.Config file so that the
>the
>> SYSTEM account is being used.
>> Run aspnet_regiis.exe.
>> Probably done some other things I can no longer remember.
>>
>>
>> The machine is my normal local development box - running XP Pro.
>> I can hit http://localhost and all is well.
>> This is the first time I've tried to create a Web Service on this machine,
>so I
>> can't tell you if something has changed or if it ever worked.
>>
>> I'm assuming it's a rights issue of some sort (although that
>get_aspx_ver.aspx
>> returning a '500' has me a bit confused - but like I mentioned, I'm a
>newbie).
>>
>> Any suggestions would be much appreciated.
>>
>> Thanks!
>>
>> -- Jim
>>
>
>--
>Outgoing mail is certified Virus Free. (well i'd like to think it is.. )
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.723 / Virus Database: 479 - Release Date: 20/07/2004