I need to make the connection string in my vb.net web application be passed into the app externally. This is so I can re-driect the app to use either a test or production database. The same idea as a .INI file in a windows base system. someone suggested to me I use XML but I dont know how to do that.
I developed and deployed a web application using ASP.NET,C# successfully. The application was running perfectly until few days back. [NOTE: It still works fine on local machine (tested using both development server and IIS)] What happens now is: The website opens perfectly. After few operations which involves database interactions, in all the pages, the pages stop responding. I mean, after a few clicks, if I try another operation the page starts postback for unlimited time period and never gets rendered and a following message is given: The connection was reset: Firefox 3.5... IE cannot display the web page: IE 7, 8 There is no database connectivity issues. I checked event logs on the web server and found few unhandlled exceptions, I corrected those. Now the event log doesn't show any error. But the problem is same.
I tried accessing the page from web server's browser, everything works fine. Even my boss can browse all pages with no problem (both have Win Server installed). Other machines (mostly XP) can't browse after sometime(as described above). I checked the memory usage, cpu time - NO ISSUES.
I have a website that appears to be "losing" the code behind bin/dll file support while the application is running. I have added an OnError event to the application and am logging it to the event viewer. At first I was getting problems with HTML and other bad input into text boxes. I have used validation and other methods to correct all of this. Now my issue is that the ASPX pages are still served, however I have custom code in the "onLoad" event and it is not being executed. This is in the "onLoad" for the master page so it is affecting the entire site. So far my fix has been to restart the website within IIS. This corrects the problem for anywhere to 24-48 hours and then it occurs again. Last night when this happened I did not recieve any new information in the event viewer log.
I have a config file linked from web.config e.g.<features configSource="feature.config" />When I make changes to the "feature.config" file the IIS application appears to restart, is this expected behaviour?
My application is working fine in local environment but not working after push code in live. My locale environment and hosting environment both are having same configuration. Same app working fine 2 month before but in different domain but same hosting server.
how to check the both config / any possible to run debug mode in hosting server please let me know. below code used in all page for checking user session status but when I click on any link page redirect to login.aspx I think session got timeout. I don't know why session got time frequently, but this issue not happening in local environment (desktop).
Running solution with VB.NET & C#, ASP.NET, VS 2008 with ReSharper 5 Most of the time, ReSharper is working (redundant code grayed out, squiggles, etc.) Sometimes, on the same code where it was working, nothing is highlighted to show ReSharper is enabled. I haven't done anything except modify code and debug. What is going on that turns it on/off?
We have an updatepanel in our site and there are a number of linkbuttons in it.Please note that the site works fine across all browsers without proxy the proxy changes the url from for instance www.mysite.net to 0-www.mysite.net.edu.net it also works fine in all browsers but IE the issue is that under proxy and in IE8, it gives an error when clicking one of the linkbuttons, the error message is
Im working on an ASP.Net web forms application, where I have a form and the Index is working correctly, until I select a value from one specific control, a dropdownlist. After that no matter what control I am on if I press TAB it will go to the URL/Address Bar, from there to the search bar and then again to the URL bar...
We have an updatepanel in our site and there are a number of linkbuttons in it. Please note that the site works fine in all browsers without proxy the proxy changes the url from for instance [URL] to 0-[URL] it also works fine in all browsers but IE the issue is that under proxy and in IE8, it gives an error when clicking one of the linkbuttons, the error message is "Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0; InfoPath.1; .NET4.0C; .NET4.0E) Timestamp: Sun, 13 Mar 2011 20:38:58 UTC
Message: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled. Details: Error parsing near ' <!DOCTYPE html PUB'.
Line: 4674 Char: 21 Code: 0"
I have no idea what goes wrong here, it seems that IE can't parse the response?
I am creating an application that uses jQuery to make ajax calls to ASP.NET WCF Web Service. Everything works fine most of the time but eventually (about twice per week) the service stops working with the error below. The only solution is to clear the ASP.NET Temporary Files. The problem seems to start by the time the application pool recycles but not on each recycle. Please help as I'm trying to figure this out for weeks now!
WebHost failed to process a request. Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/6957828 Exception: System.ServiceModel.ServiceActivationException:
The service '/Chat2/Chat.svc' cannot be activated due to an exception during compilation. The exception message is: Could not load file or assembly 'App_Web_vpupi5wr,
Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.. ---> System.IO.FileNotFoundException: Could not load file or assembly'App_Web_vpupi5wr, Version=0.0.0.0,Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
I'm trying to write some code that checks the number of days between two dates, when I set the date on my IIS7 server to anytime in the future I get the standard "Internet Explorer cannot display the webpage" screen. This happens if I comment out all my date checking code, with todays date it loads with any future date it doesn't. I've tried rerunning IISReset which makes no difference.
Basically i'm using the plugin to validate a form. I've got the basics set up and working. Now i'm trying to use remote so that I can check for a duplicate email address. The problem is as soon as I add my checking script the validation stops working on the email field completely. It constantly says "please enter a valid email address" no matter what I put in the field. If I don't have the remote bit in my code the email field validation works correctly.
This works great on the first page, but subsequent pages (loaded as controls .ascx) don't work. The wizard doesn't load a new page each time, but simple reloads part of the content using the built in wizard feature.
If you do a search for "ie8 back button disabled" you'll see a number of blogs with people having difficulties with the Internet Explorer version 8 back button becoming disabled. This now happened to one of my ASP .Net pages. The page uses a user control, aspx page, and a master page. It uses no redirects and seems to be happening when I click the back button and then the forward button (after the forward button is clicked, it does not fire the Load event and the back button becomes disabled). Has anyone else encountered this and do you have a solution for it?
I'm quite new to ASP and I can't seem to figure out how to get the application/website to work properly on my webserver. The first thing I had done was to build the solution, shortly followed by 'build website' and at last, to 'publish website'. It saved the files to C: -> Documents -> MS VS -> Projects -> My website.
There, the following files are found:
Account [folder]; App_Data [folder]; Scripts [folder]; Styles [folder]; bin [folder]; Web.config; Site.master; Default.aspx; About.aspx and PrecompiledApp.config.
I then uploaded these via FTP to my webserver and accessed the appropriate URL. Seems nothing showed up in root beside "Index of/". When I tried to access /Default.aspx, nothing but text appeared (which would be the code displayed in Default.aspx).
I've also read some tutorials regarding this matter where they instructed me to upload directly from Visual Studio to the FTP server, but I'm kind of afraid that it'll delete everything in said folder, as I don't know what the structure of said direct upload should be like.
So we have three 2008 R2 Servers where two are configured to be web servers (IIS 7.5), and the third a session state server. I have set the SessionState and MachineKey settings in the applications web.config. After I restart the two web servers I can log into one server, then change the IP address to the other server, and I am still logged in. Success.
I can typically log in/out with any user account I want, change the ip address back and forth, and all is well until some random time between 30-60 minutes when I log in to one server, change the IP address, and the new server asks for credentials.
This is the sessionState setting in both web.configs:
The application resides under the default web site, and uses the default application pool. I am using forms authentication with a timeout of 20 minutes. I am not receiving any error events on any of the three servers when this happens, and restarting the two web servers fixes the problem for a while. The two web servers are not clustered per-se, but will be served round-robin via a network device.
I am using asp:ScriptManager and asp:UpdatePanel to populate a DropDown , and for every field need to display hits in div.In order to Implement the hint I am using JS, it works fine unless I started to populate a dropdown based on another one.
here is some code lines from page and JS
<asp:ScriptManager ID="sm" runat="server" EnablePageMethods="true"></asp:ScriptManager> <asp:UpdatePanel runat="server" ID="up0"> <ContentTemplate> <dd><asp:DropDownList runat="server" ID="CCategory" CssClass="lst" ValidationGroup="Property" AutoPostBack="true" onselectedindexchanged="CCategory_SelectedIndexChanged" /><span class="hint">Please choose a city where you want to or having a property.<span class="hint-pointer"> </span></span></dd>........
I'm using some JS to show some divs.The divs' content is set up in a MultiView control in the server. Depending on certain parameters, I trigger some postbacks to make the server select the appropriate view. The problem is that everything works if I keep the alert(1); below, but stops working if I remove it.
Here is the code. I have a button which its OnClick() calls ShowEditor(), with an element and a type. ShowEditor() makes the editor's div visible after raising a postback to let the server select the correct view in the MultiView based on the type. This works fine. The editor loads and there is a div inside (vwText_Text1) which I'd like to assign an OnClick event to. This only works if the alert() is present.
When running the ASP.NET Development Server, everything is working fine. However, when I deploy my asp.net application to the production server (IIS 7.0 integrated mode, fresh install), my location tags in my web.config file are being ignored.
Case in point: I'm using forms authentication, and when the user arrives at my login.aspx page, the external css & js files are not being loaded...even though I have specified that those files should be available to all users (auth'd or not). However, once the user is logged in, the files do in fact load.
I created an application that basically takes the values from a bunch of fields on the page and adds the data to a SQL database table when I click the 'submit' button. However, I created the file directly under the website path, and I created it while it was like that and I tested it without any user authentication going on.
Now, I'd moved it into the ~/Account/etc/... path, because I only want it to be used by authenticated users, and it loads just fine, but when I click the 'submit' button as I used too, it doesn't seem to be loading the info in the database anymore. Why would that happen? do I need to enable SQL to work with the authentication as well?
This should create a left aligned label that is 100px wide, then the list should show next to it. What happens is that the width is ignored and the list is right next to the label text. If I remove the "AssociatedControlID" parameter it works fine. CSS has no effect on the label width, even using the !Important tag.
This is not a big issue since it's quite easy to bypass by making a new project and copying everything on it, but it bothers me quite a bit that I can't figure out what it is about. In short my calendar and calendar extenders stop working suddenly. The last time this happened I made some changes to the pages code behind, then hit undo gazillion times to go back to the last save. After that I hit debug and lo and behold: calendar did not respond to any clicks and any text field with calendar extender did not show calendar on clicking them.
This happens in both IE8 and FireFox 3.6 and no amount or restart, rebuild and other such tricks do nothing. The only thing that I can figure out to solve the problem is either use a backup copy of a version that works or make a new project and then copy all the files from the not working into the new/earlier version and all works again. I was able to track down that this seems to relate somehow to AJAX as when I ran the debug I mention above, I got error messages on the web page saying something about AJAX. This however happened only once and I cant get it to happen again (and thus can not remember much about what it said).
Also when I debugged the event handling the calendar click, I get an error message like this: There is no source code available for the current location Then it opens a file search window trying to find some cs file inside the ajax control toolkit. However this only happened the first time I tried debugging the event and I can't remember more details about it. Now I just get that error message when debug exits the event.
So end analysis on my part: The ajax control tool kit gets knotted up all of a sudden for some mysterious reason and is tied to that particular project. Can anyone tell me what this could be about?