.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Obtain http://localhost/VirtualDirName OR http://www.DoNotKnow.ABC

Posted By:      Posted Date: October 17, 2010    Points: 0   Category :ASP.Net

Let's say that I am in an action RetrieveByID like this on localhost, with a virtual dir MyWebApp :


When I will deploy to my host it will be


If from this action I want to retrieve the bolded strings

( http://localhost/MyWebApp/ or http://www.DoNotKnow.ABC/ )

that are the "root" of my site , how could I do  ?

(Let's say I want to make a link in an email : You just visited product ... .For more details, visit our site ???ROOT??? )

(putting in web.config a constant is a solution that I do not like very much)


View Complete Post

More Related Resource Links

http/localhost is empty


I have Win , I install the following

in Internet Information Service->

Web Management Tools (check)

Application Development Features I check (.Net Extensibility, ASP.net, ISAPIExtensions, ISAPIFilterd,  I can see  IIS Manager under my Administrative tool , but when I call


I  can't see the welcome page , what is wrong

thank you!

A connection could not be made to the report server http://localhost/ReportServer.



  • I created a Report using Business Intelligence Studio. Its working working well, i can able to view records. But when i try to deploy the report an error occurs specifying that "A connection could not be made to the report server http://localhost/ReportServer. (Microsoft Report Designer)".
  • I open the IIS 7 and find out virtual directories "Reports" and "ReportServer" are available.
  • I check on the browser and type "http://localhost/reports".  I find the browser direct to this url: http://localhost/reports/Pages/Folder.aspx and find error specifying the following one:

         Error:The report server is not responding. Verify that the report server is running and can be accessed from this computer.

  • when i type http://localhost/reportmanager, i found the error:

    HTTP Error 404.0 - Not Found

    The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.


problem viewing http://localhost/Reports


Basically http://localhost/Reports give me a "Internet Explorer cannot display the webpage" error

However http://localhost:8080/Reports/Pages/Folder.aspx works fine and takes me to the home page of SSRS.

Any idea what I should be looking for to get the first url to work correctly?


Using SSRS 2008

can not able to create a new web project as http:\\localhost\project name in .net visual studio 2005

can not able to create a new web project as http:\\localhost\project name in .net visual studio 2005

The requested service, 'http://localhost/MyServices/Test.svc' could not be activated Exception....

Hi I am using VS2010, WPF/WCF/.Net4, IIS 7, Windows 7. I am calling methods asynchronously, some times during execution I get the following errror.  The requested service, 'http://localhost/MyServices/Test.svc' could not be activated. See the server's diagnostic trace logs for more information. ======================== Server stack trace:    at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)    at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)    at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)    at System.ServiceModel.Channels.ServiceChannelProxy.InvokeEndService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)    at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) Exception rethrown at [0]:    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)    at WSProxy.PatientService.IPatient.EndLoadPatientCardsInfosCompress(IAsyncResult result)    at WSProxy.PatientService.PatientClient.EndLoadPatientCardsInfosCompress(IAsyncResult result) ========================= Using BasiHttpBindi

no acces to http localhost reportserver. How to provide the access?

Hi! I have no acces to http localhost reportserver. How to provide the access? I have make it under SQL Managementstudio. Under the "Security" I have assigned the sysadm-role. But it does not working. rsAccessDenied Thanks in advance Sebastian

sharepoint site location entered is not valid. the sharepoint site at http://localhost:9010 could no

hi guys,when i try to create a new sequential workflow  project in VS 2008 .net  i get the following error :sharepoint site location entered is not valid. the sharepoint site at http://localhost:9010 could not be found .... the system administrator may need to add a new request URL mapping to the intended applicationwhat is the problem ? why it is not detecting my sharepoint site ??

css files not loading when viewing page at http://localhost...

Hello, has anyone had the following problem: css files are in the head element, and the styles are clearly being picked up by the .aspx page when in Design or Split view. Yet when running on localhost, the stylesheet has no effect. And when publishing the website to IIS on a remote server, the css clearly does take effect. I've never seen anything like this... 

error sending SOAP data to http://localhost/myWCFService/MyWCFService.svc


I am a beginner with WCF services, trying to learn. I created a WCF service where MyWCFServiceInterface has service and data contracts. MyWCFService class implements this interface and has two methods that connect to sqlServer DB to run Sprocs to fetch data. I am hosting this WCFService using IIS6.0. I created a webclient to test the service, which works fine. When I call the service using soap request I get the following error: Could not POST file MyWCFService/MyWCFService.svc on server localhost(415). error sending SOAP data to http://localhost/MyWCFService/MyWCFService.svc


Please check the following wsdl and the soap request and suggest corrections. I greatly appreciate your help. Thanks.



<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:tns="http://tempuri.org/" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:soap12=&q

Compilation Error - http://localhost


When trying to run my application before uploading to my hosting provider I receive this compilation error in my browser when I type in http://localhost but when I build by application in VS2010 I receive no errors.  Has anyone encountered this problem before?

Line 12: 
Line 13:   <system.web>
Line 14:     <compilation debug="false" targetFramework="4.0" />
Line 15: 
Line 16:     <authentication mode="Forms">

The requested service, 'http://localhost:32843/SecurityTokenServiceApplication/securitytoken.svc/ac


I just installed SP 2010 and was running fine.  All the sudden I was getting a 500 respnose when I would browse to a site.  The only event that I can recall that might have sparked this issue was changing the administrator password.  The administrator account is not tied to SharePoint as a service account etc.  I have installed all the necessary updates / hotfixes that are required for installation. Here's the error from the log. Thanks.

An exception occurred when trying to issue security token: The requested service, 'http://localhost:32843/SecurityTokenServiceApplication/securitytoken.svc/actas' could not be activated. See the server's diagnostic trace logs for more information..

When I go to the URL in the error I get the following error:

[InvalidOperationException: The farm is unavailable.]
   Microsoft.SharePoint.Administration.Claims.SPSecurityTokenServiceManager.get_Local() +15784381
   Microsoft.SharePoint.IdentityModel.SPSecurityTokenServiceConfiguration..ctor() +26

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean&a

There was no endpoint listening at http://localhost/Service.svc that could accept the message. This


Hello Firends,

I have configured wcf service on my loal machine's IIS and it's running fine when I bowse .svc file.

But when I am running local web application after ading local wcf service's  reference to web application, it is showing following error message,even though affter adding endpoint correclty.

"There was no endpoint listening at http://localhost/Service.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details."

Can anybody please tell me, how can I solve this issue?

Thanks and regards,


ASP.NET Architecture - ASP.NET Worker Process - HTTP Pipleline - Http Modules and Handlers

"ASP.NET is a powerful platform for building Web applications, that provides a tremendous amount of flexibility and power for building just about any kind of Web application. Most people are familiar only with the high level frameworks like WebForms and WebServices which sit at the very top level of the ASP.NET hierarchy. In this article I'll describe the lower level aspects of ASP.NET and explain how requests move from Web Server to the ASP.NET runtime and then through the ASP.NET Http Pipeline to process requests.

Open File Print File Excel

Batch print many Excel files without having to open each one at a time. Quickly print mass amounts of xls files at once with this program. You must have Excel installed on your machine..

Writing Http Handlers and Modules in IIS 7.5

This article describes how Http modules and handlers are to be written and configured in IIS 7.5. The concept of a handler and module remains same, so dose there programming model. In this section we start off with the concept of a Http module and a Http handler, then talk about how to code them and finally describe the two methods available to configure them.

HTTP Error 403 - Forbidden


(VB Express website directed me to ASP.NET Web Services which in turn redirected me to this forum).

 Hopefully someone can help me here...... 

I am using VIsual Web Developer and downloaded the small business application to use as a starting point to help my wife get a website up for her small business. When I load the application, I can F5 and it runs fine but as soon as I make any modification to the app and hit F5, I get the HTTP Error 403 - Forbidden when it tries to show the website.

I notice a pop up that occurs when I run that allows me to choose the link for my app and it displays correctly (I close the webpage that has the error on it).

This seems like a pain, is there a setting I'm missing - I would think that this should "just work".

What's up?????



I am not able to read xml file with XDocument if its Descendants has Attribute xmlns="http://abc.co


I am not able to read xml file with XDocument if its Descendants has  Attribute like:-

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
  <row ID="1" xmlns="http://www.opentravela.org/OTA/2003/05">
    <var country_name="Caribbean and Rest of the world" city_name="Kingston" flight_category="Economy Class" via="Atlanta" flight_departure="London Heathrow" airline_logo="Delta" adult_fare="Delta" child_fare="660" infant_fare="561" date1="132" date2="2010-08-15" />


I don't know what to do ?

Looking for some help..

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend