Architecture :: Why Website Is Stopping / Resetting

Nov 15, 2010

We are using a .net web application and my environment is as follows:-

SERVER : Server: Windows 2003
.NET FRAMEWORK : 3.5
ASP.NET FRAMEWORK : ASP.NET 2.0
Template used : ASP.NET Web application project ( not a web site)

I have code in global.asax.cs which is like below. This code dynamically loading the web.config. Is this right? Since the deployment accidentally the web.config been copied mutlitple times (in past) which was bringin uat web.config to prod and causing the prod to point to uat databae, we did this way, i.e dynamically reading the param values from a file and loading them to web.config dynamically.

Is this right? The web site is loosing connection string once a while and making the site to go down. One thing i noticed is in DEV / QA / UAT we have the ASP.NET version tab in iis set to 2.0, but in prod it's been set to 1.1. I told them to change, but somebody arguing how it worked for a while and suddenly stopped. I don't know the answer. Could somebody tell me or point me to a direction to fix this.

private void LoadConfig()
{
string xml = null;
FileStream fs = null;
StreamReader str = null;
System.Xml.XmlDocument xmlDoc = null;
System.Xml.XmlNode xmlNode = null;
EventLog _eventLog = null;
try
{
// Get the Config path from registry, parse and set the static properties of the class.
string configFile = CompName.CoreLib.SystemUtilities.RegistryUtility.ReadValue("ConfigPath") + @"ApplSettingsConfig.xml";
//string configFile = @"C:" + @"Common.Config";
// Read the XML Config File
fs = File.OpenRead(configFile);
str = new StreamReader(fs);
xml = str.ReadToEnd();
str.Close();
fs.Close();..............................

View 2 Replies


Similar Messages:

Configuration :: Unable To Start The Website After Stopping It

Dec 15, 2010

I have a website hosted in IIS 6 and I can't start the website after I stop it. I have to bounce the whole box just to start the website again. I don't see anything logged in the event viewer and I don't know what is causing it.

View 3 Replies

Configuration :: Stopping And Starting The Website On The Common Server And It Worked Fine For Sometime?

Oct 13, 2010

I have modified a part of code of an existing web application. Once it worked fine on my local machine, I moved it to the common server. But, when different users hit the common server, the web application is behaving differently. I tried stopping and starting the website on the common server and it worked fine for sometime around a day and again it started working differently for different users. Then I tried to restart the IIS on the common server and it worked fine for once and again bounced back.Can anyone please suggest the areas where I can check to resolve the issue.

View 3 Replies

Architecture :: Admin Website And Main Website Under Same Solution?

Jan 7, 2011

I want to put my website project and admin website under same project as I want to use session and authentication of the main site. Also I want to show the admin, the page, where he has made changes. But the problem is whenever I will change anything in admin pages, I've to build the entire website. I don't want to do that. Can I build that separately?

I don't want to choose the option of building all pages separately as well.

Is there any alternatives of doing that. Separate projects for admin and website will come up with many other challenges. So I would like to avoid that.

View 2 Replies

Architecture :: Website That Work A Lot With The DB - The Best Way?

May 22, 2010

I'm in the middle-end of written a big website that work a lot with the db.
In every call a page runs 5-12 different queries.What I did was build an execute class that uses MySqlConnector API, which get string that represent the sql and the parameters and then just execute the query and return DataTable. In addition to that I have a class that hold all the function that call the execute class functions. For example in the class I have getAllProducts, getOldestProducts etc... and in each and every one of them theres sql statements.

Recently I watch the LINQ video series(How Do I with LINQ - on this site) and it looked good.As I sees it my way is very good because it just open connection execute the sql get the result and close the connection.The question is what is the best performance wise way to build this site? Is it my way that I use all along? Is it using LINQ? Or working with DataSet/TypedDataSet is the preferred way?

View 4 Replies

Architecture :: Edit Website GUI At Runtime ?

Mar 30, 2010

How to build a web application using ASP.NET , this web app isa portal and i can edit in the interface of each web page at runtime ,[URL]How can i do that ???? , is that require sharepoint WSS , sharepoint designer , PathInfo , Forms server ????And if that web app require these apps , how can i use them to build web app like , i looking for a tutorial

View 1 Replies

Website Translation Architecture And Implementation?

Mar 18, 2011

I'm conducting a project in which a website should have multi-language support.Now, this website is supposed to serve about 500K+ visitors a day, so it must be super-efficient.

I've created a table of parameters {[ID],[Name]} AND a linkage-table {[objectID],[parameterID],[languageID],[value]}. I think it's the best way to deploy multi-language support while having the privilege to translate different parameters for each language.

As far as I know, server's memory is much faster than a physical HDD. Therefore, I'm planning to store ASP.NET Application State objects for my translation architecture.[URL]

View 3 Replies

Architecture :: Set Up Multi Tenant Website

Dec 21, 2010

I've been all around the net for weeks now trying to figure out the best way to set up a Multi-tenant website (building a web app that multiple companies and their employees will use). As far as a database goes, I am interested in using one database with a copied set of tables for each company. As far as managing the login and security in MVC2 I am lost with the myriad of examples (mostly old and not MVC) that I have seen. So ideally my app would allow a company rep to register their company and then be able to add their own employees to the site. Then all employees could login and be securely associated with their own company's tables (table names would be appended with their AccountID).

I'm not sure if this would be handled using routing or session variables or what the more ideal and up to date methods might be. Like others who have discussed this issue, it seems like this should be a much more fleshed out solution as it is becoming a more common use on the internet. I'm even willing to simplify the database down to one set of tables that stores an AccountID in each row if needed.

View 1 Replies

Architecture :: Create A Plug In For Other Website?

Jul 28, 2010

I have a ASP.net website, i have a page, based on the query string, i grab certain information from database and display the image.

I need create a javascript to put in the javascript in otherwebsite, and then this image will display in that website.

The functionality is same as good ads something like below.

<script type="text/javascript"><!--
google_ad_client = "......";
/* Ad for AdSelector */
google_ad_slot = "....";
google_ad_width = 1;
google_ad_height = 2;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

View 4 Replies

Architecture :: Search Engine For Website?

Oct 11, 2010

I need to create a search engine for my website that searches my entire content and files stored in a database.What is the best way and easy to accomplish this?If can, please provide a few samples or links.

View 4 Replies

Architecture :: How To Detect User Registration In Another Website

Mar 26, 2011

I reffer users from my website to another website (not my own website, I dont have any access to code).How can I detect a user registered in this website I have reffered to....

View 2 Replies

Architecture :: Improve Average Speed Per KB Of Website?

Jul 23, 2010

There are various website speed test online tools available. Few of them are listed on: [URL] I tested my website using iweb and selfseo. My website is showing 0.03KB Average speed per KB everywhere. Even google also is giving same kind of results.I tested the site using Page Speed and YSlow. I have already followed most of the recommendations suggested by these tools like efficient use CSS, contents across the domains, caching, compression and all. But still I am getting the same average speed per kb. Page speed is showing around 85/100 as my page speed score, so I guess I have optimized my site a lot. My questions here are:

1. What are the other factors affecting the avg speed per kb of a website?

2. How to improve the Avg speed per kb?

3. Is there anything related with the Server Software and Hardware that I have to check?

Note: I tested by uploading a plain html page with simple text "Hello World", but the avg speed per kb is the same for this page as well. Same is the case with the rest of the pages.

Application Platform : ASP.Net 3.5, C#3.0, LINQ as Data Access, SQL Server 2008

Server Platform : Windows Server 2003.

View 2 Replies

Architecture :: Local Website Or Desktop Application?

Aug 5, 2010

I want to create a suite of three products. One is a website, so that is set in stone. Another is a mobile application, so that will be written as an application (for whatever devices). The third product is something that the user can use locally on their machine. However, I'm not sure if I want to make it a desktop application or a local website. With a desktop application, if I make a significant change to my business rules, I have to make it in three places (assuming the dll change needs a GUI change). However, if I make it a local website, then almost everything would be the same as the regular website. Desktop applications seem to provide more controls that are easier to use though. And since I'm taking this project on alone (right now) easy sounds best. But I don't want to sacrifice easy now for easy later.

The website I want to write will be using MVC architecture. I'm not even sure how to deploy a website yet either to a server or to a local machine. The only thing I've done was set up a local website before for a website that was already created in house by my co-workers. And that was solely ASP.Net, no MVC architecture.

My questions are:What do you guys think would be best in the long run; a local website that mimics the regular website or a desktop application?

Is there a way to create an install package to install a website so the user doesn't have to tinker with their computer at all?

View 4 Replies

Architecture :: Create The Usual Asp.net Website With Only One Page?

Feb 25, 2010

A classic scenario for you to ponder over and feedback to me.I have been requsted to create a website. So far so good.But the site will have a total of 1 (ONE) page only.The page itself will only contain a form that users will submit.it will:1 - Register the details in the form into a single database table.2 - Send an email out to the customer and form admin to processI am thinking 2 ways of doing this:Plan A - Create the usual asp.net website with only one page saving directly onto database table.Plan B - Create a HTML page only,use javascript to send the data to a WCF service, which processes and saves the data.

View 3 Replies

Where To Store File Locations In 3-Tier Architecture Website

Oct 11, 2010

Where to store file locations in 3-Tier Architecture Website?

View 4 Replies

Architecture :: Performance Difference Extracting And Copying In Website With C#?

Dec 11, 2010

I have almost 100 website that will update in a condition, I have a winzip archive that contains the files that replaces those websites. I want to know that

I can extract that files in a folder and then copy them to all 100 websites folders

I can extract the archive directly to 100 websites folders

which one is better in performance and less prone to errors

View 1 Replies

Architecture :: Search Input Box For Searching Inside Website

Nov 22, 2010

Does anyone has a idea how to write code for a search box to look for keywords,etc inside the website or sitemap?

View 11 Replies

Architecture :: Sequence And Class Diagram Of An Existing Website?

Nov 17, 2010

I want to undertand and change an existing website which was written long time back. It cntains a lot of code and I dont know where to start as there is no dicumentation.Is there any way by which i can create a class diagram and sequence diagram of the existing one as I want to incorporate all the existing functionalities in the new one and dont miss out anyone. Only way I know is to debug the current application and go through whole of the code individually. Is there any way out by which I can undertand the current application quickly?

View 1 Replies

Architecture :: Integrate Credit Card Payment On The Website?

Jul 10, 2010

how to integrate the option to pay with credit cards on the website:

* Visa
* MasterCard
* AmericanExpress
* Diners
* Discover
* Cirrus
* Maestro

View 5 Replies

Architecture :: Give Access To Users (like An Intranet) Discreetly On The Website

Apr 22, 2010

I'm quite newbie and i need to give access to the website at a very low cost, but just few people, how did you guys manage it, to hide the connection link to the public. I mean is there a better way or not to manage this. I don't know if I'm clear. What would be the cheapest way to manage this user account?

View 4 Replies

What Is The Best Architecture For Building A Website That May Also Support A Native Mobile App In The Future

Sep 30, 2010

I am in the planning phases of building a new ASP.NET website. The website is really a transactional web application where the users will log in and perform basic CRUD data operations. For right now this website will be accessible through a traditional desktop browser and a mobile browser. For the mobile browser we will build a separate scaled down version of the site.In the future we may decide to create native mobile applications for Android or iOS devices also.

So the question I have is what is the best way to design the system to easily support that? Here is what I am thinking. I am thinking of building out 3 tiers to the site. The back end will be the database - SQL Server 2008. We will use stored procedures for all data access. The middle tier will be a web services tier. This tier will be built using RESTful web services and will contain all of the business logic. These web services will provide access to the database. The front end will be built using ASP.NET. The front end will only contain presentation logic. These tiers will actually be deployed on physically separate servers.

Then I am thinking that when we decide to build a native Android or iOS app that we could build those apps to simply call the same RESTful web services that the main site is calling.Does this seem like a reasonable approach? The only thing I can think of is that the way we are building it right now the web services would be behind the firewall and would not be accessible to the outside world. When we want to support a native mobile app then we would need to make the web services accessible to the outside world.Any thoughts? Does this seem like a good approach for building a high availability, high usage web app that needs to support native mobile apps in the future?

View 1 Replies

Architecture :: Image Hosting Website - Save Over 1000 Images On Disk?

Jul 28, 2010

Let's say I am creating a image hosting website. My potential users will be somewhere around 1 Million, and every user potential has 10,000 images, and I need to serve over 1000 images per second.

So, I bought a diskarray, with 10T storage, SAS 15K SCSI drives.

The problem is: What is the best way to save those files on disk? How to organize the folder structure to make sure NTFS can find one file from a billion files under a huge tree folder quickly? I mean, serve 1000 images per second is non trivial issue. My current website is serving over 100 images per second, and I already see the performance problem: NTFS can't find the file fast enough! And of course, my folder structure is not good enough either.

View 2 Replies

Architecture :: Dsofile.dll Not Working In VS2008 Website On Windows 7 64-bit Machine / Error: 80040154

Oct 22, 2010

I need to extract meta-data of different files, as uploaded by the user.

For this I found out dsofile.dll from MS. Now the problem is that the version I've downloaded from

[URL] is working fine with Windows XP but giving run-time error in Windows 7 64-bit system. Finding more on the error I was getting I came to know that the dll would not work for 64 bit OS. I also downloaded 64-bit from [URL] but still am getting below run-time error:

Retrieving the COM class factory for component with CLSID {58968145-CF05-4341-995F-2EE093F6ABA3} failed due to the following error: 80040154.

I've two questions:

How can I solve this run-time error and from where will I get dll working in VS2008 Website on Windows 7 64-bit?

Is there any other way I can extract meta-data (all the attributes/properties other than exposed by System.IO.FileAttributes) of any file (could be doc, docx, xls, xlsx, jpg, pdf, txt, etc.) uploaded by the user?

View 4 Replies

OnChange Is Stopping AutoPostback?

Apr 15, 2010

I am using Web expression's aspx form + Microsoft Access database + C# to create a page. I am trying to fire client side script (Javascript) and server side script (Autopostback for databinding) simultaniously without using "Codeback"/"CS".

I am not able to acheive the result. I have read all the 139 pages in trying to find the solution posted in asp.net. I am able to fire client side script (Javascript) but Autopost back is not working and Onselectindexchanged is giving runtime error when I go to publish.

Here is the code.

<form id="form1" runat="server">
<strong><br />
Select City : </strong>[code]...

View 6 Replies

.NET Application Stopping Event?

Mar 22, 2010

I have a ASP.NET application which implements a custom in-memory cache. I'm using this as opposed to ASP.NET's caching mechanism as I needed a more complex way to handle what to drop from the cache. Part of this custom cache is a separate thread which occasionally searches for data to drop from the cache whenever it gets too large.

What I need to do is signal this cache maintenance thread to stop whenever the ASP.NET application 'exits'. I guess this basically amounts to when the web site is stopped in IIS. Is there a pre-existing event I can utilise to do this?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved