I have a web site in Default Web Site that has been working fine.
Recently I have installed Sharepoint. Now the default web site is not working. I type in http://localhost to even test to see whether asp.net is working fine but all I can see after typing that in is HTTP 404 NOT FOUND error.
When you create a new website/web application with webforms, I've noticed that the start page is always Default.aspx, but can't find where this is specified (e.g. in the config files, etc), or if it is part of the web forms specification.
Is it possible to change the startup page so that it isn't Default.aspx? If so, how do you do it?
I have problem with default.aspx setting in global.asax file.When i am running dot net application from solution explorer i can set the default page as start page or when i am running the application the on IIS server i can set that default page as start page through the setting.This thing i want to do in programmatic way using the global.asax file
What is the right approach when users (authenticated domain admins) should be able to start batch jobs (usually exe files) from an IIS (7.x) aspx (c#) page? This is an intranet site. The batch jobs have to run on the web server as Domain Admins. The website pool is executed by network service or some similar restricted account in AD.
Approaches I can think of (and their disadvantages): 1. Start exe file with System.Diagnostics.Process.Start with another account. This feature is disabled in IIS 7.x, how do I allow it?
2. Create a sheduled task and call scheduled task-api. This unmanaged dll is giving VS compiler warnings because it's unsafe to call from managed code.
3. I suppose there's a better approach, because the previous suggestions doesn't appear safe or robust.
How to set the startup page in asp.net, asp.net taking default.aspx as first page but I want to set the index.aspx instead of default.aspx in server ...
Why is there no default 'create/open' access to 'WebSites' from the VS2010 start page?
Background:I've succesfully been developing ASP.NET web applications (via WebSite method ((((Not WebProjects)))), using VisualWebDeveloper) for roughly 3 years. Personally, I prefer the WebSite method or strategy due to the decrease in both size and complexity (the web applications I build are generally for around 50-100 simultaneous users logging in and out and constantly manipulating data). I will continue bulding my sites via the 'Website' method provided VS2010 doesn't begin it's deprecation.The root of this question (which boiled into this post) came from perusing this article and this video tutorial. It's a shame to see functionality that brings with it an overall ease of use and increase in production capacity by decreasing both size and complexity of web application development... downplayed.
If the Visual Studio 2010 Development Team left this functionality out for a reason, I would very much like to know. So that I know what is going to be "sponsored by Microsoft" in a couple of years and I don't waste another second considering using the 'WebSite method' as a viable solution (as I know that I can't stick with vs2008 while rest the development community gets to evolve with the innovations implemented within vs2010)... WebSite method or the WebProjects method.
I have reasonable experience programming for windows form programs in VB 2005, but I am new in ASP.NET. I have tried the file system website, and it does not seems to have a problem for me. However, when I was trying to create a website to run with IIS, it failed. This is what happened, to start, I chose location:HTTP on the "new web site" dialog box, and using browse button, I opened the "choose location" dialogbox. I choose "Local IIS" on the lefthand side. Then, I create new virtual directory, with the alias name "Test" and folder c:my documentweb site st (new and empty directory). Then I clicked the open button, it was still fine, where it returned to the "new web site" dialog box. However, when I clicked the OK button on the "New Web Site" dialog box, it comes up with this error:
"Configuring web site 'http://localhost/Test' to ASP.NET 2.0 failed. You may need to manually configure this site for ASP.NET 2.0 in order for your site to run correctly"
When I clicked OK, it does come up with a blank website, however if I run it, it will comes up with this error:
"Unable to start debugging on the web server. The server does not support debugging of ASP.NET and ATL Server application. Click Help for more information on how to enable debugging" but there is no Help button!
By the way, all the trials are done in VB2005/ASP.NET 2.0, we are trying to upgrade to VB2010 sometimes next year. The computer is running Windows XP.
how to get control over the Massegbox pup Up prompet ..i login withe C# code to webpage and want to dawnload file form there after chosing day parameter the ansews i have get from javascript the dont give me URL just massegbox show up and i have to click ok to donwload it or cancel!!! i want to download the file without showing the Messegbox and clicking ok wiche C# code how can i get it working? i tried:
1- withe webclient but not working idont have URL
2-withe response i got error iwill be happy if any one got agood ansewr for it.
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.
Iam going to develop the Multilingual website using c# asp.net 3.5 i want to know what things are important to know or from where i can get start any resource or links or help is apperiacted.
I want to start and stop IIS on remote server using asp.net website.
When i try to stop IIS on remote PC, it raises error. I am using the following syntax "PsExec \Server2 -u Administrator -p somePassword IISReset /STOP". This works fine when called within VS IDE or from another C# code. However does not work when called from within asp.net app. I am using "Administrator" as user which has Admin access to both of machines.
I have worked mostly with PHP when creating web sites driven by dynamic content. However I am wanting to start writting more applications in ASP. So I have a copule of questions that I can't seem to find the exact answers I need.1) I'll be creating a website for a company and then later be adding an online ordering system for them - would I best be served by writting the entire site in MVC2 since I will be getting into an online ordering system?2) Does it make sense to create my own shopping cart system - or are there free packages out there in ASP.NET that I should be utilizing instead of rolling my own? I3)I am currently working in Visual Studio 2010 Beta 2 - this is using the .NET 4.0 framework - I thought it better to use this instead of my older Visual Studio 2005 Professional - if I can't afford the full package of VS 2010 once its released - will theexpress editions support all I need? 4)If I am building in 2010 will I have a problem getting the site hosted since that framework is still in Beta? And can you suggest a good web host to use for .NET hosting - I usually work with GoDaddy for all my hosting needs - but I'm not sure if anyonehas experience in how quickly they will update to the newest frameworks etc , or if I should be hosting somewhere else.
Our business case requires that a Start Time and End Time must be defined for each Organization involved in the business model. For example; some organizations have their working hours from 8:00AM to 5:00PM and others from 9:00 to 6:00PM. While creating a new Event on our calendar these should be queried from the database (StartTime and EndTime) and setting these as default. My questions are:
1) How should I save these times since DateTime requires a Date in front of it and there's no Time column format on SQL Server (Varchar? Number?). If using one of these types how to I concatenate these to a DateTime variable?
2) If the column should be DateTime, how do I concatenate it to replace the column's Date with Today's date and replace the Time with the time specified for that? Let me be more clear:
Default values saved in the database: StartTime = "2010-01-01 8:00AM" EndTime = "2010-01-01 5:00PM" In my code after querying, my local variables would be populated and replaced by: OrgStartHour = "2010-03-26 8:00AM" and OrgEndHour = "2010-03-26 5:00PM"
[Code]....
The code above works but I have no idea on how to replace/concatenate the "2010-01-01" with today's date while keeping the "8:00 AM" on it. :)
Problem Description: A person has to enter all his details and take a photo(While Taking his Snap in our website there will be a Image Component and we have to Initilize the Client System(Any Company Webcam)Webcam and below Image Component there will be a button(Take Snap) When he clicks on it , it should take his snap store it. After He fills all his details when he clicks on Save button, all the details along with that image should be Uploaded to the server.
1) How to Check Whether the Client has Installed any Webcam or Not First. 2) If the Client has Installed any Webcam then Initialize that Webcam When he clicks on Take Picture. 3) Stream that Video that is coming from that Webcam Inside our Image Control in Website. 4) After He Clicks on Save Image button that streaming should stop and still image should be saved. 5) Accessing that Image(Later Converting it to Byte Stream) and uploading Image along with his data to Sql Server.
I want to design a website which displays on loading two tables each with it's respective data from a csv file. Then every minute the website automatically refreshes. This problem seems so simple! But yet the solution eludes me.
All of the files will be contained in 1 directory, not on a server but on a local machine. Such as sitting on the desktop. I understand if I use javascript I have to use ADO, and I'm still trying to work out how to use ASP. I am new with both languages. So far the only restriction is that I can't use PHP. So the jist so far as I can think right now is:
1. read the file 2. place the file into an array by splitting at the commas 3. write the array into td's ????? 4. then print all this out into a div ????
I have googled my heart out and can't seem to find what I'm looking for. or even piece together what I'm looking for. Everything with javascript and ADO's leads me to dead ends, I can't find anything on ASP that is helpful. Could someone write up some sample code for a resource? Or have a better solution?
I am trying to register the route collection in .net based on each session. The code I have works fine, you goto website/username and it loads the correct sub pages, but you have to restart the application to goto website/username2 to load those sub pages. But when the application is restarted the second one works, but then not the first one. Is there some way to create a different route collection per session not per application using system.web.routing.
point me towards any .NET API that will let me iterate the default documents (default.aspx, index.html, etc.) for the web site? I know I can parse web.config, but that doesn't always contain all of the default documents.
It seems like there are a lot of ways but no default. For State management, does ASP.NET use cookies by default?If so, what are the alternatives to using cookies? If not, what does ASP.NET use by default to manage state?
I want to secure my certain web page of site, Displaying lock icon at status bar of browser. How do I achieve this in 2.0 using any default certificate?
I have an ASP.NET web site project, which I'm publishing to IIS on my Win2k8 R2 server. It has a default page called login.aspx. I set that up on the published web site.
Trouble is, every time I publish a new version of the web site, the login.aspx entry gets erased from the "Default Document" settings of the web site in IIS. This is very annoying. How can I publish my web site from Visual Studio without wiping out the default page every time?