I cannot get a .aspx file (WCF examples) to run on my machine. I am following the WCF example
here
When I run default.aspx a ASP.NET local host ballon appears in the taskbar but only a directory listing appears in IE ?
I have the following installed :
Visual Studio Professional 2012
SQL Server 2012
IIS 8.0
I'm not sure what is wrong.
When I load up the example itself into Visual Studio it tells me
The web project ... requires SQL Server Express, which is not installed on this computer. The recommended database engine for Visual Studio 2012 is SQL Server LocalDB Express.
To upgrade the project database to use SQL Server LocalDB Express, double-click the database file and follow the instructions.
You do not set up a Start Page. Just right click the aspx file, click the Set As Start Page and run it again.
Besides, you can just click the aspx file to show the webpage when the directory listing in IE.
I set up the default as a start page but it just dumped me into the directory again.
When I click on on default.aspx in the browser (firefox) I get the following error :
Server Error in '/WcfTestWebSite' Application.
The resource cannot be found.
Description:
HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /WcfTestWebSite/Global.aspx
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18010
I look into the sample projects. I only contains Global.asax. Not Global.aspx. They are different.
If you were to view to the web page, you should browse to xxxx\ConsumeWCFTest\Default.aspx. Make sure you set mutliple
start up projects and Default page of ConsumeWCFTest as start up page.
I started a new thread over on
the IIS board and hopefully they can help.
There is global.asax and default.aspx in Visual Studio. Maybe I got them mixed up but
default.aspx has a master page in design view. Like you say only
global.asax turns up in the browsers directory listing which does not run anything.
Well there is no sign of default.aspx and I can't seem to navigate to anywhere that default.aspx may be.
I think there might be a mix up where the files are supposed to be, as there is another directory called \ConsumeWCFTest which contains default.aspx.
Basically I had to open ConsumeWCFTest as a web site. It brought the webform up for me in the browswer instead of a directory listing.
Its still not working 100% I get the follwoing error when I enter in the same values as on the web page example.
Message from webpage.
Exception has occured: There was no endpoint listening at http://localhost:162/WcfTestWebSite/PairArihmeticService.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present for more details.
aindriu80
Member
1 Points
9 Posts
help - cannot get web examples (WCF) to run on my machine.
Dec 08, 2012 08:41 PM|LINK
Hi,
I cannot get a .aspx file (WCF examples) to run on my machine. I am following the WCF example here
When I run default.aspx a ASP.NET local host ballon appears in the taskbar but only a directory listing appears in IE ?
I have the following installed :
I'm not sure what is wrong.
When I load up the example itself into Visual Studio it tells me
The web project ... requires SQL Server Express, which is not installed on this computer. The recommended database engine for Visual Studio 2012 is SQL Server LocalDB Express.
To upgrade the project database to use SQL Server LocalDB Express, double-click the database file and follow the instructions.
aindriu80
Member
1 Points
9 Posts
Re: help - cannot get web examples (WCF) to run on my machine.
Dec 09, 2012 08:58 AM|LINK
does anyone know why an .aspx file won't run in a browser ? It just loads up a directory listing with no web page???
aindriu80
Member
1 Points
9 Posts
Re: help - cannot get web examples (WCF) to run on my machine.
Dec 10, 2012 03:43 PM|LINK
I set up the default as a start page but it just dumped me into the directory again.
When I click on on default.aspx in the browser (firefox) I get the following error :
Server Error in '/WcfTestWebSite' Application.
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /WcfTestWebSite/Global.aspx
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18010
Angie xu - M...
All-Star
20267 Points
1726 Posts
Microsoft
Re: help - cannot get web examples (WCF) to run on my machine.
Dec 13, 2012 01:27 AM|LINK
Hi aindriu
This is IIS problem according to the error information, we have more professional Forums to handle silimar thread about IIS problem,
you could post this thread in IIS Forums here(http://forums.iis.net/) for better solution.
hope it helps you.
Kind regards
Feedback to us
Develop and promote your apps in Windows Store
CruzerB
Contributor
5399 Points
1098 Posts
Re: help - cannot get web examples (WCF) to run on my machine.
Dec 13, 2012 01:54 AM|LINK
Hi,
I look into the sample projects. I only contains Global.asax. Not Global.aspx. They are different.
If you were to view to the web page, you should browse to xxxx\ConsumeWCFTest\Default.aspx. Make sure you set mutliple start up projects and Default page of ConsumeWCFTest as start up page.
http://msdn.microsoft.com/en-us/library/ms165413.aspx
My Technical Blog
aindriu80
Member
1 Points
9 Posts
Re: help - cannot get web examples (WCF) to run on my machine.
Dec 13, 2012 02:48 PM|LINK
Thanks for the help !
I started a new thread over on the IIS board and hopefully they can help.
There is global.asax and default.aspx in Visual Studio. Maybe I got them mixed up but default.aspx has a master page in design view. Like you say only global.asax turns up in the browsers directory listing which does not run anything.
Well there is no sign of default.aspx and I can't seem to navigate to anywhere that default.aspx may be.
I think there might be a mix up where the files are supposed to be, as there is another directory called \ConsumeWCFTest which contains default.aspx.
Location in Web browser :
http://localhost:1062/WcfTestWebSite/
Files listed in directory
aindriu80
Member
1 Points
9 Posts
Re: help - cannot get web examples (WCF) to run on my machine.
Dec 13, 2012 02:57 PM|LINK
I just got it to work..
Basically I had to open ConsumeWCFTest as a web site. It brought the webform up for me in the browswer instead of a directory listing.
Its still not working 100% I get the follwoing error when I enter in the same values as on the web page example.
CruzerB
Contributor
5399 Points
1098 Posts
Re: help - cannot get web examples (WCF) to run on my machine.
Dec 13, 2012 03:52 PM|LINK
Most probably it was caused by the port number.
Do you able to figure out the correct port number to be used? Otherwise, please follow below link to change the port number of WCF services to 162.
http://msdn.microsoft.com/en-us/library/ms178109(v=vs.80).aspx
My Technical Blog
aindriu80
Member
1 Points
9 Posts
Re: help - cannot get web examples (WCF) to run on my machine.
Dec 13, 2012 04:40 PM|LINK
I changed use dynamic port to false and changed port number to 162.
When running it http://localhost:162 appears in the URL in the browser but I get an error saying there is no endpoint listing at http://localhost:1062
CruzerB
Contributor
5399 Points
1098 Posts
Re: help - cannot get web examples (WCF) to run on my machine.
Dec 13, 2012 11:33 PM|LINK
162 port is for WCF, not the web application. You gonna make sure you apply the configuration to the correct project.
http://localhost:162/WcfTestWebSite/PairArihmeticService.svc
My Technical Blog