I'm a student and studying ASP right now. I tried installing Visual Basic Express Edition with this Web Developer Express in it. I know that IIS is required, so i went to Control Panel>Add/Remove Programs>Add/Remove Window Components and installed IIS.
But when i create a new ASP.NET Web site, with HTTP as location, http://localhost/Lab4 as the folder and
Visual Basic as the language, i was alerted Configuring web site
http://localhost/Lab4 to ASP.NET 2.0 failed. You may need to manually configure this site for ASP.NET 2.0 in order for your
site to run correctly upon clicking the OK button.
I read from 1 post that this alert doesn't mean anything so i tried to ignore it(i suppose that the post is right, correct me if i'm wrong). I tried putting some text and a textbox in the web site and tried clicking the Start Debugging button, and then choose
Run without debugging. When internet explorer popup, it gives this error message,
The XML page cannot be displayed. Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
A name was started with an invalid character. Error processing resource 'http://localhost/Lab4/Default.aspx'. Line 1, Posi...
Firstly i suspect is something to do with my monitoring program, preventing the configuration to be made, but things seems to be the same even after i off it.
So was thinking if was there any misconfiguration or any configuration that i missed out before i can use Web Developer properly.
Are both the errors related? Or are there 2 different errors in my case?
1. To manually configure IIS for ASP.NET 1.1 or 2.0.
Open IIS (Assuming XP: Start - Control Panel - Admin Tools - Internet Info Services)
a) Double click on "(local computer)
b) Double click "Web Sites"
c) Double click "Default Web Site"
d) Look for the Web application folder concerned, in this case "Lab 04"
e) Right click the folder
f) Choose properies
A window pops up.
g) Click the "ASP.NET" tab (If you see it. If you do not, ASP.NET 2 has not been registered with IIS)
h) At "ASP.NET version", using the drop down, select "2.0.x.x"
i) Apply / OK everything as you go back.
2. The Page Language line. I have the same wording as you and got no problems. Try the above and see what happens.
PS: VWD Express is damn good for a freebie. I am now using it in place of Visual Studio .NET 2003 Pro for .NET 2.0 work.
First of all, Bluekiwi thanks for your help. I hope your help has bring me 1 step forward.
Alright as for now, well the asp error only occurs the FIRST TIME i "Create a new website". So subsequently if i open the saved website, it won't give me any errors. But for now, after registering ASP.NET 2.0 with IIS, the XML with XSL style sheet error did
not appear but instead there's this,
I tried to download the metabase editior at
http://support.microsoft.com/?kbid=267904 , but do not know how to use it at all, so perhaps anyone can help me on this also?
It's a permissions / security problem and sorry, but I don't know how to solve it. Recommend reading all the MS material you can.
Are you using the built in server of VWD Express or the Windows one (IIS) and which version?
Also, can you create a virtual directory from within the management console? Place an .aspx page there with a simple text statement ("Hello world") and try accessing it from your browser.
I have no idea if it is using VWD Express built-in or IIS server. But i put all my documents inside C:\Inetpub\wwwroot\ folder. My IIS is version 5.1. lol this problem is getting mad, i just had to create new website, add things in, debug and run it in school.
But at home there's all these [8-|]
And about the virtual directory creation from management console, you mind telling me more detail where it is?
Instead of clicking the "ASPNET" tab, stay with the one you are at "Virtual Directory". Is there anything in "Application name"? If not, click the button at far right ("Create") then type in the name of your folder.
Until your folder is set up as an application, the runtime won't run the code-behind.
As you are learning, I recommend you purchase access to this site, "www.learnvisualstudio.net". It's ideal for anyone that is learning, at any stage, beginner or advanced. To give you a clue as to which server
you are using: when you right click a Web form and choose "Browse with..", you'll get a list of browsers.
"Internal Web browser" - using the internal web server.
"Microsoft Internet Explorer" - using the the Windows XP one - IIS 5
I still get the IIS error man, failed to access metabase.
Seems hopeless [:(]
Well i'm now using File System, VWD built in web server and view my website. Everything seems ok but except 1 part. I tried to add a web reference to one of my project in school. But when i brought it home, the web reference won't work. I delete the web reference
and tried readding but found out that it "has to be URL"? Any idea how to add a web reference that is in local file system also? C:\WebService etc.
Alright, reinstallion of IIS seems no help at all. As for now, i'm using file system instead of the HTTP. That means, using the built-in web server of VWD instead of IIS. It seems much easier but a problem now is how to add web reference? I can't point it to
C:\blablabla, it keep insiting on an URL, http://localhost/blabla. [666]
Web Services don't function via a HD folder. They are Web Server based, which is why you are getting the error.
How to make a Web Service.
File > New Web Site > ASP.NET Web Service.
For a code sample, go to MSDN. I think there are some fairly simple examples, such as "Hello World". But simply, a Web Service is a Sub or Function procedure with "WebMethod()" (VB) in front of procedure code.
The built in Web Server of VWD is good enough; it's just you can't run it as a regular Web server that serves your Web pages to friends, as far as I know.
Note If you are using ASP.Net 2.0 and you have to grant metabase permissions to a Windows user account, run the ASP.NET IIS Registration Tool command with the -ga option instead of using the tool that is shown here. For example, the
following command line grants the Windows user account <WindowsUserAccount> permissions to the IIS metabase:
May i know where is the ASP.NET IIS Registration Tool command?
I wanna try the aspnet_regiis –ga <WindowsUserAccount> command.
i ran the command prompt and pointed to C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
i typed aspnet_regiis -ga Ivan Khor into the command prompt and try running the website again but the error is still the same. **Ivan Khor is my window account administrator and i'm using it.
bluekiwi thanks a lot. That thread solve my problem. I tried repairing my .NET 2.0 framework via the add/remove program. I think the problem here is that i install framework before i actually manually installed IIS. I can continue with my projects now [Angel]
None
0 Points
10 Posts
Errors with Web Developer Express
Apr 22, 2006 01:29 AM|UltraHAHA|LINK
But when i create a new ASP.NET Web site, with HTTP as location, http://localhost/Lab4 as the folder and Visual Basic as the language, i was alerted Configuring web site http://localhost/Lab4 to ASP.NET 2.0 failed. You may need to manually configure this site for ASP.NET 2.0 in order for your site to run correctly upon clicking the OK button.
I read from 1 post that this alert doesn't mean anything so i tried to ignore it(i suppose that the post is right, correct me if i'm wrong). I tried putting some text and a textbox in the web site and tried clicking the Start Debugging button, and then choose Run without debugging. When internet explorer popup, it gives this error message,
The XML page cannot be displayed.
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
A name was started with an invalid character. Error processing resource 'http://localhost/Lab4/Default.aspx'. Line 1, Posi...
<%@ Page Language="VB" AutoEventWireup="false" Codefile="Default.aspx.vb" Inherits="_Default" %>_^
For the image, please go to http://ivan.melodyland.net/xmlerror.jpg
Requires help urgently.
Thanks a lot. [:D]
Member
10 Points
309 Posts
Re: Errors with Web Developer Express
Apr 22, 2006 07:41 AM|bluekiwi|LINK
1. To manually configure IIS for ASP.NET 1.1 or 2.0.
Open IIS (Assuming XP: Start - Control Panel - Admin Tools - Internet Info Services)
a) Double click on "(local computer)
b) Double click "Web Sites"
c) Double click "Default Web Site"
d) Look for the Web application folder concerned, in this case "Lab 04"
e) Right click the folder
f) Choose properies
A window pops up.
g) Click the "ASP.NET" tab (If you see it. If you do not, ASP.NET 2 has not been registered with IIS)
h) At "ASP.NET version", using the drop down, select "2.0.x.x"
i) Apply / OK everything as you go back.
2. The Page Language line. I have the same wording as you and got no problems. Try the above and see what happens.
PS: VWD Express is damn good for a freebie. I am now using it in place of Visual Studio .NET 2003 Pro for .NET 2.0 work.
None
0 Points
10 Posts
Re: Errors with Web Developer Express
Apr 22, 2006 09:39 PM|UltraHAHA|LINK
Alright as for now, well the asp error only occurs the FIRST TIME i "Create a new website". So subsequently if i open the saved website, it won't give me any errors. But for now, after registering ASP.NET 2.0 with IIS, the XML with XSL style sheet error did not appear but instead there's this,
Server Error in '/WebSite1' Application.
Failed to access IIS metabase.
For image please go to: http://ivan.melodyland.net/iiserror.jpg
I tried to download the metabase editior at http://support.microsoft.com/?kbid=267904 , but do not know how to use it at all, so perhaps anyone can help me on this also?
Thanks in advance.
Member
10 Points
309 Posts
Re: Errors with Web Developer Express
Apr 23, 2006 12:14 PM|bluekiwi|LINK
Are you using the built in server of VWD Express or the Windows one (IIS) and which version?
Also, can you create a virtual directory from within the management console? Place an .aspx page there with a simple text statement ("Hello world") and try accessing it from your browser.
The idea is to isolate the fault.
None
0 Points
10 Posts
Re: Errors with Web Developer Express
Apr 23, 2006 09:51 PM|UltraHAHA|LINK
I have no idea if it is using VWD Express built-in or IIS server. But i put all my documents inside C:\Inetpub\wwwroot\ folder. My IIS is version 5.1. lol this problem is getting mad, i just had to create new website, add things in, debug and run it in school. But at home there's all these [8-|]
And about the virtual directory creation from management console, you mind telling me more detail where it is?
Thanks
Member
10 Points
309 Posts
Re: Errors with Web Developer Express
Apr 24, 2006 06:19 AM|bluekiwi|LINK
Instead of clicking the "ASPNET" tab, stay with the one you are at "Virtual Directory". Is there anything in "Application name"? If not, click the button at far right ("Create") then type in the name of your folder.
Until your folder is set up as an application, the runtime won't run the code-behind.
As you are learning, I recommend you purchase access to this site, "www.learnvisualstudio.net". It's ideal for anyone that is learning, at any stage, beginner or advanced. To give you a clue as to which server you are using: when you right click a Web form and choose "Browse with..", you'll get a list of browsers.
"Internal Web browser" - using the internal web server.
"Microsoft Internet Explorer" - using the the Windows XP one - IIS 5
Member
10 Points
309 Posts
Re: Errors with Web Developer Express
Apr 24, 2006 07:41 AM|bluekiwi|LINK
To test using the IIS 5, you need to fire up IE from the Start menu or desktop shortcut, then type in an address, like so:
"http://localhost/virtual directory name as appears in IIS/aspx page"
None
0 Points
10 Posts
Re: Errors with Web Developer Express
Apr 24, 2006 10:16 AM|UltraHAHA|LINK
Seems hopeless [:(]
Well i'm now using File System, VWD built in web server and view my website. Everything seems ok but except 1 part. I tried to add a web reference to one of my project in school. But when i brought it home, the web reference won't work. I delete the web reference and tried readding but found out that it "has to be URL"? Any idea how to add a web reference that is in local file system also? C:\WebService etc.
Member
10 Points
309 Posts
Re: Errors with Web Developer Express
Apr 24, 2006 04:58 PM|bluekiwi|LINK
Try uninstalling and reinstalling it, backing up your work before you do! Have you researched "metabase" on MSDN?
Member
10 Points
309 Posts
Re: Errors with Web Developer Express
Apr 25, 2006 03:12 PM|bluekiwi|LINK
None
0 Points
10 Posts
Re: Errors with Web Developer Express
Apr 26, 2006 10:26 AM|UltraHAHA|LINK
Member
10 Points
309 Posts
Re: Errors with Web Developer Express
Apr 26, 2006 11:59 AM|bluekiwi|LINK
How to make a Web Service.
File > New Web Site > ASP.NET Web Service.
For a code sample, go to MSDN. I think there are some fairly simple examples, such as "Hello World". But simply, a Web Service is a Sub or Function procedure with "WebMethod()" (VB) in front of procedure code.
The built in Web Server of VWD is good enough; it's just you can't run it as a regular Web server that serves your Web pages to friends, as far as I know.
None
0 Points
10 Posts
Re: Errors with Web Developer Express
Apr 28, 2006 08:24 AM|UltraHAHA|LINK
Ok, final solution here, hope someone can help me.
Please take a look at this site http://support.microsoft.com/?kbid=267904#appliesto
Note If you are using ASP.Net 2.0 and you have to grant metabase permissions to a Windows user account, run the ASP.NET IIS Registration Tool command with the -ga option instead of using the tool that is shown here. For example, the following command line grants the Windows user account <WindowsUserAccount> permissions to the IIS metabase:
May i know where is the ASP.NET IIS Registration Tool command?
I wanna try the aspnet_regiis –ga <WindowsUserAccount> command.
Thanks!
Member
10 Points
309 Posts
Re: Errors with Web Developer Express
Apr 28, 2006 12:31 PM|bluekiwi|LINK
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
And just use it as stated on that helpful MSDN page. Precisely, run the Command Prompt application and you can access it from there.
None
0 Points
10 Posts
Re: Errors with Web Developer Express
Apr 28, 2006 08:57 PM|UltraHAHA|LINK
i ran the command prompt and pointed to C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
i typed aspnet_regiis -ga Ivan Khor into the command prompt and try running the website again but the error is still the same. **Ivan Khor is my window account administrator and i'm using it.
Server Error in '/WebSite' Application.
Failed to access IIS metabase.
This error still exist, seems no help at all [:|]
Member
10 Points
309 Posts
Re: Errors with Web Developer Express
Apr 29, 2006 06:28 AM|bluekiwi|LINK
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=116989&SiteID=1
None
0 Points
10 Posts
Re: Errors with Web Developer Express
Apr 29, 2006 11:24 PM|UltraHAHA|LINK
Member
10 Points
309 Posts
Re: Errors with Web Developer Express
Apr 30, 2006 05:24 AM|bluekiwi|LINK
I remember seeing a page on Microsoft's Web site that warned of errors if apps weren't installed in a particular order.