Configuration :: StylesheetTheme Error When Hosting Multiple Sites Together As .net 3.5
Nov 14, 2010
I have three asp.net 2.0 websites running on the same host server and recently upgraded to 3.5. After making changes necessary in the root web.config all sites run, but I've lost the stylesheet for the primary site.
Before the upgrade I had the following in the root web.config
<pages styleSheetTheme="Red" />
I got errors on this line because the upgraded web.config had another <pages> section. I tried adding the stylesheetTheme='Red" to that section and the primary website ran and looked right, but the subs got an error that there was no StyleSheetTheme="Red".
Each site has it's own stylesheets. How can I restore the stylesheettheme to the primary site without putting it in the root webconfig? Or, is there another way to handle this?
View 2 Replies
Similar Messages:
Dec 26, 2010
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?
View 1 Replies
Jan 17, 2011
I am having some trouble getting a second site to work with SSL in IIS 6. The server is Windows Server 2003 Service Pack 2.
I am getting the error "IIS was unable to start the site, Another site may already be using the port you configured for this site. Please select an unused port"
Both sites have different IP address but are on port 443.
When I stop one - I can start the other. But cannot run both at the same time.
I have tried editing MetaBase.xml file as a workaround but the file seems to be readonly. When I go to save, I get prompted to create a file.
View 5 Replies
Nov 2, 2010
when developing in my pc , all is fine , but when upload to hosting , it show error ~
[img]http://image.love9cube.net/images/sadsadcgc.jpg[/img]
View 2 Replies
Mar 23, 2011
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.
The structure is like this:
Root: inHouseRecipes.com
Root/s/Website1
Root/s/Website2
I have checked that the websites in subfolders are set up as an application in IIS 7. Also, the web.config of parent (root) website has the following
<location
path="."
inheritInChildApplications="false"
>
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?
View 5 Replies
Mar 27, 2011
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#
View 4 Replies
Feb 17, 2011
My background image is not being applied when I switch over to using the local IIS server.
It's defined as:
<%@ Page Language="C#" StylesheetTheme="Common"...%>
VS Web Server: http://localhost:33174/Index.aspx = OK
Local IIS Server: http://localhost/MyApp/Index.aspx = background not showing
My Common.css class is defined as:
#masthead {
height:60px;
background-image:url(/images/bg_masthead.gif);
background-repeat:repeat-x;
}
View 3 Replies
Sep 8, 2010
When i enter valid username and password into a default mvc 2 app hosted on my local IIS 7.5 server i get this response.
Server Error in '/MyApp' Application.
Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path. Please make sure the user has a local user profile on the computer. The connection will be closed.
Stack Trace: [Code]....
View 2 Replies
Jan 13, 2011
I have created sample site and it is hosted in IIS7. When i try to use the website from some other machine, It shows page cannot be displayed.
But with same machine if i logged in as adminstrator and try to use the website, it is working fine.
Normal user - Unable to view the web page
Admin user - Able to view the web page.
Is there any configuration setting i need to modify to host the site in IIS 7?
View 5 Replies
Feb 24, 2011
I have built some ASP.NET websites in the past, mostly for local web applications. But this time I am looking to build a public website based on ASP.NET. The hosting and domain name is already in place but it is my job to create the site. I would like to use ASP.NET because I am most framiliar with it. I am just not positive the webserver supports it. I have tried creating a few different sites using different Net.Framework versions, but I always get a Runtime Error when I'm trying to access it across the internet. It tells me to change the customErrors value to OFF so I can see the error remotely. But I do that and for some reason its like its not seeing the Web.Config file I have. Because nothing changes and I still get the error. Any help would be great in figuring out if it supports ASP.NET. On another note I tried an ASP file which worked fine, but I'm not sure if theres a difference. Also if I make up a random url say [URL] I get the same error.
View 4 Replies
Jan 25, 2010
I have been creating a few MVC web sites with SQL Server 2008 and hosting them in IIS7.
However, at the moment I need to host one of the web sites with IIS6.
Will I have any problem?
The client requested to use their current hosting service which is IIS6 so I have no idea if some problem will come up.
View 1 Replies
Nov 27, 2010
Error on deploy application with SqlServerCe 4.0 on hosting service
View 4 Replies
Apr 20, 2010
The error is mentioned below, the cssfriendly.dll is in bin, and browser file is in there app_browsers folder. And it is working in same PC (developping PC), on remote server that belong to my company (i just installed .net 3.5 on that server)
I tried uploading the same site on 2 dufferents hosting, and finally i got the same error. What could gone wrong ? I tried contacting the hosting support but they work in ticketing system and this is extremely slow.
Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load type 'CSSFriendly.MenuAdapter'.
Source Error:
[Code]....
View 4 Replies
Jan 9, 2011
I am a begineer in ASP.Net programming. After learning the basics, I tried to host a simple website in a virtual directory. But the explorer returns error mentioned in the subject. Background tools used:
Operating system - Windows XP SP 3
IIS Server - 5.1
Internet explorer - 8
Visual Studio 2010
.Net Frame Work - 4
I have tried numerous ways described in various articles including those posted in this site to get the error solved, but in vain.
View 2 Replies
Nov 2, 2010
I have custom redirection implemented in a module. Do I have to modify each config for all sites or is there a more general approach?Also, I have files in App_Data for this module, which would cause replication.
View 1 Replies
Jan 23, 2011
I'm trying to configure my Solution to publish multiple web sites to Azure using the 1.3 SDK and I want them to run under one Web Role. I've added the entry to the Sites element as per the CHM file and when I deploy to Azure the Instance starts up. Now for the symptoms:
Browsing to the "Primary" (first site added to the solution) everything works fine.
Browsing to the "Secondary" site throws the following error:
Exception type: ConfigurationErrorsException Exception message: Could not load file or assembly 'System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. (E:approot_WASR_1web.config line 28)
What have I tried so far without success (sigh):
1. I noticed that by default VStudio (2010 Ultimate) did not include the "Secondary" project output in the cspkg file. Setting a project dependency seems to have fixed that problem (or at least I now see it in the output window during the build process).
2. I've set "Copy Local=true" for the System.Web.Mvc on the "Secondary" project still nothing.
3. I have a CName setup for the "Secondary" project and use the hostHeader parameter on the Binding element so I haven't found a good way of testing this local so I'm limited in diagnostic info.
One thought that I had was that both projects now contain a WebRole.cs file, should that be the case in this configuration?
View 1 Replies
May 12, 2010
I have created two iis web sites (site1,site2) both have the following configuration
[Code]....
from site1 i do
[Code]....
and in site2 if i checked if the user is authenticated ,i get a true, and i see "user1" as the current user.i know that what i have done above use a cookie,and as i know cookie are visible in the same domain (site) or sub domain,how form authentication make the cookie visible for both sites , this scenario must work for a site with two virtual directory inside it(sub site or application), but what is happening here any explanation.
View 5 Replies
Sep 17, 2010
I work for a company that has many sites. Each site requires a login at some point. We have a single Accounts database that all of the sites hit.One of the requirements for the login system is that if we login on one site, we should automatically be logged in elsewhere.
The way it works right now is that on page load (or init, forget which) at any of our sites (let's say site1.com), it redirects to a "master" site (let's say sitemaster.com). On sitemaster.com there is a web service which checks to see if a cookie exists on sitemaster.com for that user. If it does, it redirects back and lets site1.com know that the user has already logged in (site1.com then creates a cookie for site1.com so we don't have to redirect to sitemaster.com in the future). If the user is not logged in at sitemaster.com, site1.com will then ask the user to login and, on submit, it redirects the user to sitemaster.com which logs them in, creates a cookie under sitemaster.com domain, redirects back to site1.com and lets site1.com know that the user is logged in (which then creates the cookie for site1.com).
On logout a similar method is employed.
Is this the best way of handling universal logins, or auto-logins across multiple sites? Is there a better way of doing things?
Some requirements:Most of our sites are in .NET 2.0, but there are plans to update them all to .NET 4.0. We want the best method for this auto-login system so if something requires .NET 4.0, that's ok.
The solution should not require javascript (our current solution requires javascript during the login process).The solution should not require Flash.It's ok to use iframes, as long as javascript is not requred.
We would like to be able to do AJAX logins (using jQuery) without having the site refresh. The current solution, due to the redirects, prevents us from doing that. (eg: Pop up a modal box asking the user to login, and when they do, the modal box disappears and some content is changed, but no site refresh required). This isn't absolutely necessary, but at the very least we should be able to verify a login using AJAX before any redirecting takes place.
I also have some questions related to the best way of re-using the auto-login code across sites (varying from ASP.NET 2.0 Forms to ASP.NET 4.0 MVC, but I'll save that for another question).
View 2 Replies
Nov 9, 2010
I recently inherited a solution with about 10 projects in it. 6 of these projects are individual websites that are basically copy/pastes of the original.
This means that any changes that need to be made must be made to each project in order to update all the websites.
What I want to do is have one project for the website code and be able to deploy that code and some configuration settings to create a new website. That way when I make updates to the main Web project I can just deploy to all the websites.
How do people normally approach this? I'll outline my thoughts on it and hopefully some of you can point out better ways to accomplish this or at least give me some affirmation that I am on the right track.
Have a master markup with very general containers. Allow the users/people setting up the site add widgets to the site which will be assigned to widget placeholders at the top and bottom of all the generic containers. All styling and colors will be controlled with a stylesheet that can be swapped out. I know there is some kind of theming you can do. Does this just swap out groups of css and let you configure which one to use in the webconfig? For elements that will be the same across all sites such as footer images have a naming convention. So if I want Site A to have some footer image I just replace the footer.jpg in the project when I deploy.
View 2 Replies
Jan 27, 2011
I found an article which explains how to perform a Web.config transformation on an ASP.Net 4.0 Web Site, but all of my web sites are still running ASP.Net 3.5.[URL]
View 1 Replies
Oct 1, 2010
I am currently working on multiple group sites for the same parent company. All the sites are basically the same, and share the same code base however they have different stylesheets, master pages and config files.
As the number of sites is increasing I am finding it difficult to keep the sites synchronised and propagate bug fixes/changes across them all as each has it's own copy of the code.
Does anyone know of a way I could keep a single master copy of the site and easily propogate changes to each of the other sites.
View 6 Replies
Feb 12, 2010
I went through the demo video and was able to create what little it showed but now I am wanting to extend it. I want to add an Admin section with a login page.
Can someone show me source code from an site that uses more than HomeController and multiple db tables calling stored procedures and such?
View 2 Replies
Apr 8, 2010
Is the ASPNETDB.MDF ok for a production environment? or for small websites? Some sites will only have a few users(under 1 or 2) just for simple administration.
View 2 Replies
May 16, 2010
I am adding a 2nd web site to our pubic server and am noticing the SMTP delivery trying to use the default SMTP Virtual Server which is set up for the 1st web.
I created a 2nd virtual server with new smart host and credentials for the new site but need to modify the config file.
I tried using the host name = smtp virtual server 2 name.
Both webs use relay to a host for delivery
Here is my config file
<mailSettings deliveryMethod="Network">
<smtp from="admin@xyz.com">
<network host="xyz.com" />
</smtp>
</mailSettings>
I figured it out. Sometimes you just have to ask someone the question. I changed the network to IP address 192.168.56.11 instead of name of server.
ie <network host="192.168.55.11" />
View 1 Replies
Apr 20, 2010
i have 2 different sites under different subdomains.
www.company.com
and e-order.company.com
i want to have SSO so i have tried to make a global cookie.
my question is :does the global cookie keeps the session variables when i am going from one site to another?
if not how can i pass a session variable for ex. session("userName") from one site to the other on redirect?
View 4 Replies