I have 2 sites on IIS, one is the live site and the other is a site that is only started when there is maintenance being carried out on the live site.In a deployment scenario I STOP the live site and the START the maintenance site so that users receive a friendly message advising of the upgrade.he only issue I have is when I start up the live site it obviously has to JIT and this can take up to 3 minutes.Is there anyway to have this JIT before I unleash it to the users?EDIT: Just to clarify, this site is a CMS, so the marked answer below works for me due to only having 1 page to compile.
We're experiencing a nasty issue in Oracle 11g Release 2 where the w3wp process takes over and entire processor core, and debugging shows that the Oracle data provider is throwing ThreadAbortExceptions infinitely. A developer found this issue by doing the following:
1) Browse a web site that uses Oracle data connections locally (http://localhost/OracleWebSite - we use IIS, not the ASP.NET dev server, for all of our sites). This ensures that the w3wp process is running and that an active Oracle pool of connections exists in the app pool.2) Stop the web site (or perform a Rebuild All operation in Visual Studio on the web site in question).Our Oracle connection handling in the affected applications (all Oracle web apps) is well-established and robust. This issue does not occur if we disable connection pooling. This issue does not occur in Oracle 11g Release 1.
Compile and Publish Site - but i want to be able to update .HTM includes? I have a few pages that have JQUERY sliders and every onces in a while the client wants to update IMAGES, i thought it would be easy if i could access the .HTM file update code instead of doing a recompile! is this even possible? or am i doing it complety wrong?
I'm using vs2010, asp.net 4 webform.Is there anyway which i can update a code behind file (ascx.cs) file without compile the whole site.because i just want to debug some ascx.cs file, and compile a big whole site will cost 1 minutes at least.
For the first time in my career, I'm working on an ASP.Net (v3.5) project that has been set up as a Visual Studio 2008/10 Web Site Project.
I'm not keen on this way of working this way for various reasons but for the moment and until such time as the company sees the virtue in working in an environment with namespaces, designer and project files etc., I have to continue with the existing codebase.
I've run into some odd issues since I began this but perhaps the oddest one of all is that althought VS lets me build the code, it doesn't reliably pick up compilation errors so these are not noticed until runtime.
I know the website model allows dynamic/hot compilation when a request is made for a specific but I can't see why it wouldn't do this when I manually (F5) build/rebuild the project. Its immensely annoying as you can imagine and I can't find a workaround.
I'm trying to compile (using Visual Studio) an ASP.Net website with the Chilkat library. The compilation fails due to this error: Could not load file or ssembly 'ChilkatDotNet2, Version=9.0.8.0, Culture=neutral, PublicKeyToken=eb5fc1fc52ef09bd' or one of its dependencies. An attempt was made to load a program with an incorrect format.
I've been told that this error occurs because of platform noncompliance. The weird thing is that although the compilation fails, the site works once accessed from a browser. My theory is that the IIS compilation uses csc.exe compiler from the Framework64 (64 bit) folder while the Visual Studio uses csc.exe compiler from the Framework (32 bit) folder. If this is acually it, how can I configure my Visual studio to run with the 64 bit compiler for ASP.Net sites? This is my current development configuration: Windows 7 (x64). Visual Studio 2008 Pro (x86 of course...). Chilkat library (x64) IIS/Asp.net (x64).
Is to possible to make a configuration entry (web.config). That automatically compiles a referenced project(for example a class library) when the site runs? This would be easier for me to maintain on my hosting server. Otherwise i have to always recompile the files and upload them again for every small change.
I created a "website" in VWD 2010 Express. The project contains no bin folder and I can't seem to compile it. I don't have a web host, so for now I'd like to run my site on "localhost" on my machine: i.e. I'd like to drop the DLL (if there is one) and my aspx files into a folder on my hard drive and run the site from there. The site runs if I open VWD and run the asp.net web server, but I would prefer to not have to open VWD each time I want to load my site.
I get an error when trying to compile this simple website:
[Code]....
The error message is:
x is not a member of ASP.default3_aspx
The meaning of the error message is clear to me, and adding Me..Button1.Attributes.Add("onclick", "x.doMethod();") in codebehind works, but as you can imagine, that is not really what I want. How can I achieve my initial goal?
I want a program that can keep track of all components that need translation (labels, strings, fields), and then I can give the pieces to a person to translate and gather the translated text back into to the program and it will compile all of the text into a new application in the foreign language. I did find Sisulizer (a localization tool) but it doesnt work with Asp.net Controls properly.
I am having a little difficulty trying to wrap my head around site structures. I have quite a large asp.net site, for which: Admins can see a user list, Each user can have many accounts, and for each account can have many items. I can picture this as a breadcrumb trail of editing a particular item. User List > Mr Bob > Accounts > BOB77 > Items > Item32 > Edit
User List = All the users Mr Bob = A user the administrator has selected from the User List Accounts = A list of the user's accounts 12BOB = The administrator has selected the account named 12BOB Items = A list of the items an account contains Item32 = The item that the administrator selected Edit = The action that the administrator wants to do. I can picture how this would look like if it was using ASP.NET MVC with the URL, but I am unsure how to map this out using Webforms, and in the physical filesystem.
This is what I have thought up about how I am guessing the physical structure would look like. Will this have to use session variables to achieve what I am trying to do?
/Users/User/Edit.aspx <- for editing a user /Users/User/View.aspx <- for viewing a user /Users/User/Accounts/Default.aspx <- for viewing all accounts /Users/User/Accounts/Account/View.aspx <- for viewing an account /Users/User/Accounts/Account/Edit.aspx <- for editing an account /Users/User/Accounts/Account/Items/Default.aspx <- for viewing all items in an account /Users/User/Accounts/Account/Items/Item/Edit.aspx <- for editing an item
Where can I read more about this kind of setup in a web application? Or, can someone point me in the direction of an available project that has this kind of layout?
I have an ASP.NET website that worked fine using and debugging in VS2008. I went through the upgrade process opening the solution in VS2010. I can run the site, but as I make changes in the app_code folder classes, they don't seem to commpile and warn me of compile-time errors. As soon as I get to a point that calls the class, the errors show up. Sounds JIT I guess, but this isn't how it was working in 08. Is there an option that was changed in the upgrade process? This is a large project, I really don't want to break something and not find out until some obscure page is opened.
I want to make a 2nd website and am using a copy of the site files from my 1st site built for me, I added them via FTP to the hosting company. I realise when I edit the new site via the CMS it is editing both sites plus when I try to change anything to the CSS file I get the following error -
So my questions are what do I need to change to be able to deploy a new site with the files I have to make a new site?I also don't understand where the password is coming from, I can see the User ID comes from the database. in the Asp.net connection strings are the following:
site Data Source=sql7.hostinguk.net;Initial Catalog=***;User ID=***;Password=*** - Where is this password coming from?
membership Data Source=sql7.hostinguk.net;User ID=***;Password=***;persist security info=False;initial catalog=***;
I need to design a site map page of my website in asp.net. I am confuse whether to use custom site map and retrieve information from database or direct retrieve information from database and bind it to hyperlink?
I am working on an ASP.NET 2.0 website. The issue that I'm having is that it queries a database to get the info it displays on screen, but the database occasionally gets to where it has too many open connections. This causes the website to reject the attempt to log-in for anyone, after that database error.This is caused because many users will log-in, do what they need to do, but then leave the website running while they do other things without logging out. It will time out on them, but the connection still seems to be open. We then have to contact the person in charge of the server it's running on and have him reset it for us.I have looked and all connections made to the database seem to be closed after the request and query is made. So, what I want to do is to add a button that when clicked will reset the website, instead of having to call the guy in charge of the server every time. Then we can reset it whenever we need to. So, how do I reset an ASP.NET 2.0 website with a button on one of the pages inside the site?
I have a .net website that I've built but here's the catch - when it's deployed I don't know whether it will be deployed to the root of the site or to a sub folder of a larger site (and it needs to be able to move around between places)
And - here's the important bit - we will have zero access to IIS on the live server so this just has to run straight away.
So far I've managed to find work arounds for things like paths to resources but I now need to use a 3rd party component (.dll).
Normally this would go in the bin folder and, if I run my site in the root of the website it works fine but, as soon as we move the site to a sub folder, the reference to the 3rd party component wont work.
Now - I know normally you'd suggest creating a virtual directory under IIS but remember - I HAVE NO ACCESS TO IIS.
So - is there a way to still use 3rd party components in my project and have my project all run in a sub folder of a website?
And no - I can't move just the bin folder to the root of the site - it all has to sit within its own folder.
I am using AJAX in some pages. this causing my website to grow. 300K is ajax. I would like to lower this to a normal size so the site can be loaded quicly.I have IIS7 and I already have encription for files. What else should I do to handle this problem?
What is the best way to add into the build/compile script of an Asp.net project to initiate a IIS to restart the website on DLL rebuild instead of the first request to the site.
The first way I though of was add a request to just hit one of the pages in the "Post-Build events". Just wondering best practices. This would be similar to "Start" which opens a page immediately on build. Update: The reason I would like to accomplish this is for just for efficiency. I would the to encapsulate the compile time and the restart time into one batch to save on time on step 4 below
VS: ctrl+shift+b Wait for visual que "Build succeeded". Broswer: F5. Wait for IIS reload. (as well as Hit kbd>F5 in unanswered questions in SO)Test page
I'm working on a CMS that can run either with or without https enabled on the webserver. I'd like to be able to detect whether https is enabled or not, so that I can act accordingly (for example, display some https-related options to the administrator, and redirect to https for administrator logins).
I'm not looking for Request.IsSecureConnection because that only tells me if the current request is via https. I want something that will tell me whether the current bindings for the site in IIS include a binding for https at the same domain as the current request is on. So, for example, even if the current request is for [URL] and thus not secure, I want to know whether [URL] would work so I can (for example) redirect the user to it if they log in as administrator.
I've had no luck looking for anything in System.Web.Configuration that will tell me about the bindings of the current site, though.
How to get details of our website in google search on right side pannal..For Eg..If you search for aspsnippet .com in google search you will get the desc of your website on the right side panal with in a square box
i am working on a site where client wants to add the pages from the admin panel to existing website( from the web browser) but static contents like text etc.