Web Forms :: URL Routing On Godaddy With Multiple Domains Hosted?
Dec 7, 2010
I have an Unlimited Hosting account with Godaddy using IIS7 (Shared Hosting). I host multiple domains on this account. I am unable to get URL Routing 4.0 (Non MVC) working on any of the domains that are being hosted. I can get routing to work via the root site, however, I need it to work on specific sites that I host under the root domain.
ie. I have sjfm.org which is hosted on my shared account in the directory sjfmnew
When I place the global.asax file and associated routing page in that directory the routing just shows 404 pages. However, when I place those files under the root site I am able to see the results. how I can get it to show correctly for that one domain?
Is it possible to have one asp.net web application that handles requests from two domains via asp.net routing? I need one TLD domain per language version pointing to the same app.
How to set up a route that recognize, if the request is coming from domain1.de or domain2.com? How to configure the domains DNS for this to work?
I have an application in the root. I setup BlogEngine to run in a directory of the account. There is a web config in root and another one in the directory. If I have a Web.Config in the root, then I can run application but not the blog. However, if Idisable the root web.conf then the blog will work and, as expected, the application will not work. How can I get both to work without having to integrate the Blog and the Appication? I understand this is a common problem in GoDaddy's hosting account. Has anyone found a solution?
I need large file upload support in my hosted (godaddy) medium trust asp.net app.It obviously needs to be responsive with indication of progress, so handling the stream myself is important.This all seems pretty simple and works well when in full trust:
1.Write an HttpModule that listens for file uploads.
2.Get the HttpWorkerRequest object from the Context using reflection.
3.Write out stream to a FileStream
All very well and good except that I keep getting permission exceptions when trying to get the HttpWorkerRequest object from the context in medium trust. Whether I use reflection or I use System.IServiceProvider.GetService() to get the object (which is clearly using reflection), I get the same error.
I have also tried using System.Web.HttpPostedFile. It has a property InputStream. But it seems this object is uploading the entire file on initialization, so no good.I have googled myself tired, and can't find another alternative.
Even if it is a security risk to let users have the HttpWorkerRequest object, surely the framework provides another way to handle the stream of files when Method="POST" and enctype="multipart/form-data"
I am trying to publish a sugarcrm site I created in webmatrix to my site hosted on godaddy, however when i go into the publish settings and enter the server info, passwords etc., I can only get the connection to validate for the FTP protocol setting. When i click the button to test and validate the connection for webdeploy instead of ftp, it tries then says connection timed out. How do I get this to work so that I can publish my site on godaddy?
i want to have several domains A, B, C where a user can enter his username and password to login to a common main domain D.
So the user goes to A, B or C, enters his username and password, clicks the "login" button, and is then on the main domain D in a logged in/authenticated state. Then the user does the things he wants to do, and then clicks the logout-button and is then returned to the original domain that he came from, be it A, B or C.
What is the best way to do this?
I currently use forms authentication in ASP.NET 4.0 (C#).
So I know you can share your cookies across subdomains eg. staging.mysite.com and www.mysite.com etc by setting the domain of the cookies to ".mysite.com"
BUT, is there a way to share across all the sub domains EXCEPT one. e.g. the cookies will not persist on images.mysite.com?
I just upgraded to windows 4G hosting from old windows hosting on Godaddy. I have hosted multiple websites on this hosting account. The primary domain website [URL] is working fine after the upgrade but all other sites hosted in same account report some errors.
tag to stop other child web.config to inherit anything from parent.
I use asp.net to code my websites. Before 4G upgrade everything used to work like a charm. Has anybody else also experiences the same issues? If yes, what are the changes that we need to make to support multiple web sites in same 4G hosting account?
I am using a Network Solutions (NS) shared hosting account. When adding two domain names to my NS account I originally had my entire hosting folder "/htdoc/" assigned to my first domain. I was instructed by customer service to create a new sub folder for each domain and assign the domain names to each one using my NS account manager. Each website is its own application with vastly different settings At this point my directory looked like this:
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS
Naturally I called NS assuming that all they need to do was change a setting so that each sub folder would serve as the main directory for each site. Instead I was told that I need to configure /htdocs/ as its own application with a special web.config file configured to handle this in some way. Of course my next question was how do I configure the web.config to solve this problem and instead of answering the question they said that the question was outside the scope of their customer support.
What I need is simple. Code to add to a web.config with default settings in the /htdocs/ directory that specifies the sub directories as the parent directories for those websites and that no setting in any specifec site should have an effect on any others.
How do we reference different domains from single hosting account.At present i have put files related to different domains in their respective folders and named them accordingly with index.htm in each folder.
how do we connect different domains to the related folders.
using asp.net and c#is there any way to point different domains to single hosting account programatically using asp.net and c#
we are building a multi-tenant application, which will support that each tenant can have a unique top level domain, the application is build using the asp.net 3.5 and SQL servr 2005, while each tenant will have different database. I have seen a number of questions about the similar applications on the StackOverFlow, but none of them is related to the Testing, I want to know is how one can test the application in a development environment, specially How can we test that each customer connects to his own DB based on the URL. how can we emulate different domains on the local system. like [URL] and [URL]all goes to dev machine's IIS.
I am developing a single web application that will dynamically change its content depending on which domain name is used to reach the site. Multiple domains will point to the same application. I wish to use the following code (or something close) to detect the domain name and perform the customizations:
[code]....
I would like to test the functionality of the above using the ASP.NET development server. I created mappings in the local HOSTS file to map [URL] to 127.0.0.1, and [URL] to 127.0.0.1. I then browse to the application with the browser using [URL] (etc).
When I try to test this code using the ASP.net development server the [URL] always says localhost. It does NOT capture the host entered in the browser, only localhost.
Is there a way to test the URL detection functionality using the development server?
I'm asking these questions for a client of mine...
Can you use asp.net and a ms sql db with GoDaddy?
Do they make it hard to leave them?
10 years ago I took over admin control of my own website that I have with networksolutions. When I change from one isp to another I simply make my own changes to the url with networksolutions and direct it at any old server I want.
I have tried with your pice of code(Published date : sep 16, 2012) to send multiple attachments in asp.net. On my local machine it is working perfectly. When I host my application on server, mail contains attachment(Single or multiple both) is not sending. Attachment and remove files for attachments are working properly but attachment mail is not sending on server.
I have an ASP.Net site using Forms authentication. One of the aspx pages loads a WinForms user control hosted in IE. That control must connect with a WCF service located in the same ASP.Net web site.How can I make the WCF service secure? Currently I have set the WCF service to use AspNetCompatibilityRequirements mode but the user control hosted in IE can't connect to the WCF service as it isn't logged in.
I have multiple sites hosted at a hosting company that does not support domain pointing. Right now I have all of my domains go to the root directory and Response.Redirect() to a sub-directory which leaves me with mydomain.com/subdir/. Is there a way to make my own pointer to eliminate the /subdir/ portion of the URL?
I find myself in a difficult situation. We're working on an ASP.NET MVC 2 application which is comprised of multiple sections. It is a design goal to have these sections span across several subdomains. Each subdomain will have its own controller.
The challenge is that our hosting provider's control panel allows two forms of redirection for subdomains, and neither of them seem to fit the bill. The choices are:
Redirecting to URL. Choice is given whether to redirect to an exact destination or a destination relative to the request URL. Redirecting to a specific folder in my hosting space.
I'll try to illustrate the intended behaviour. Assuming the default route is {controller}/{action}/{id}, I'd like the URL http://subdomain.welcome.com/a/b be handled by the MVC Application like http://welcome.com/subdomain/a/b.
The URL redirection could solve this problem, except for the fact that the user sees a URL change occur in the browser. We don't want the client to see the redirection occur.
Redirecting to our MVC apps root folder doesn't work at all. The app doesn't pick up the request and a 4xx error gets passed back by IIS.
edit:
In the interest of finding an answer, I'll simplify this a bit. The "redirect to URL" doesn't do what I want so that leaves redirecting to a folder.
If I'm redirecting a subdomain to the root folder of my MVC App and IIS wont pick up the requests, is this a limitation of IIS or my provider?
How can I pass two querysting parameters in URL routing using ASP.NET 4.0? I have gone through many articles, but everywhere it shows only one parameter. I'd like the display URL to be: [URL] The first parameter is ID: 1 The second is Name: This is my first report I am trying following route, but it is not working
routes.MapPageRoute( "MarketReports", // Route name "Reports/{*i}-{*n}", // Route URL "~/pageControl2.aspx" // Web page to handle route );
I would like to make a single app to handle the requests coming from the above URLs.Most of the scenarios I have found point to having url routing based on a single domain and multiple web pages.