I was trying to add my ASP.NET website in IIS 7.5 on my local computer. I followed these steps in IIS Manager.
* Right click sites>Add website and specify physical path. (I chose the app pool as Default app pool)
* Right click on the WebSite just added>Manage>Browse.
On trying to browse the website, I am getting this error
The requested page cannot be accessed because the related configuration data for the page is invalid
Here's the screenshot: [URL]
I have edited the permissions for the Web.Config in Site's physical path as said in here [URL] but this does not resolve the problem still. What should I do?
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'm trying to run a website (site2) that I've placed inside a folder (dir-site2) of another website (site1). The default file of site2 displays fine in every browser on my local computer, as in when I type http://localhost:45912/www.site1.com/dir-site2/default.aspx. But when I upload everything to my host's server and type this
http://www.site1.com/dir-site2/default.aspx I get a server "can't access" error message. I can't display any file that is inside the subdirectory, dir-site2.
I have a website built in .Net Framework 4. It's built on my Win 7 X64 pc. When I add a x64 dll file as reference I get a "Could not load file or assembly 'xxname' or one of its dependencies. An attempt was made to load a program with an incorrect format."I know that I can set the application pool to enable 32 bits application or not, but this error cause me to not being able to debug or compile the website. How do I proceed?
I have a website that is hosted on IIS6 and set to use .NET 4.0, but I still have a WCF service on the site that is using 3.5. When i browse my svc file, i get the error:
unrecognized attribute 'targetFramework'
and it point to the websites root web.config. I have tried this MSDN article and still get the same error. My site is using a different app pool than my WCF service, and is configured to use 4.0 in the ASP.NET tab of properties. I have also checked and made sure that my WCF service is using 3.5(2.0) in its ASP.NET properties tab.
I wanted to transfer the website I was creating on my PC to the laptop so I can show it to other people, but when I try to start the copied website I get the following error: "Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl)." File is: MasterPage.master.cs and the Line is: 1.
As the website on my laptop is the exact copy of the website on my PC I don't understand what the problem is and why did it happen.
Am I doing something wrong? Is there any other way of transferring website from one PC to another. I have to add that the website is running on localhost.
have couple of question i will ask one by one.1) how i would like to configure the local web site with IIS.I need to run the web site using IIS server not default visual studio web development server .2) how i would like to give the solution name for website.for example normally when your going to create the web site it will display the website name is http://localhost/testprojector "d://....../testproject".but i need to display web site project name is testproject alone
I have been doing some research on this topic, and I've come to the conclusion that it's a terrible spot to be in.
Basically, through "business logic," as it was called in another thread, we have a website utilizing both VB and C# throughout. We are running production code with several developers without any kind of source control. All project updating and propagation is done through file system copies, backups and overwrites. I recently stepped into this mess and thought it would be a good idea to implement source control. After installing and setting up Team Foundation Server 2010, I quickly discovered it is impossible to add a website to TFS source control, mainly due to its "projectless" nature. After attempting to create a web project, I now understand the impossibility of creating one assembly from aspx pages compiled from different languages.
My question then becomes, what is the best solution? The vast majority of the code is haphazard (to say the least), so creating two separate projects would be difficult in that there would be a huge amount of reference updating that would need to be done, and the deployment aspect might be nightmarish, though I'm not too sure about that. Consolidating to one language, while everyone seems to agree would be nice, would probably require months of time and thousands of lines of rewritten code. The final alternative seems to be simply putting off adding the project to source control altogether, until a solution for the two-language dilemma can be addressed.
Is it possible to just add the source files to source control? Or would that be more of a hassle? Has anyone ever tried to create one website out of two projects with separate languages? How difficult is that to deploy and maintain? Is our best bet simply to consolidate to one language?
I wish there was a better mechanism for handling multiple languages in a web project. It doesn't seem like a completely outlandish idea (itis supported in web sites), but it seems like it's being treated like it's at the fringe of web application development...
I finished My web Site on my local pc and it works goodNow I want to upload it to server i get space from mochahost.net web siteAnd i want to upload the web siteWhat Files Should i Upload ??I'm using sql server 2008 as my database system and using linq to control the database..
Newbie I am; made a databased VWD 2010 Express site (SQL Server and Access data sources)(easy enough and fun) ; wanted to test it from other machines on my LAN. Made a subdirectory under wwwroot (called test) and used the "copy" tool to copy the site there (the account,app_data, scripts and Styles directories and the aspx pages, etc.)
Needless to say it does not run.From what I can find on the web I may have to play with "Convert to application " and "Add virtual directory" under IIS 7 .I cant find a succinct and complete explanation of what needs to be done to make the site "OK" for IIS7 . This, surely, must exist out there somewhere.
I have a website say www.abc.com I am giving the users there own mini site with the URLwww.abc.com/website/home.aspx?UID=1
This URL will access to my Home.aspx page located in website folder and display the user information based on UID
I want to register each user with their own domain and redirect the functionality to mywww.abc.com/website/home.aspx?UID=1 page.
For example let's say when user type www.user.com user the site will be redirected to mywww.abc.com/website/home.aspx?UID=1 page but the URL of web browser will not change, user can still seewww.user.com on his web browser.
If User click about us link i.e. www.user.com/aboutus/ the site will be redirected towww.abc.com/website/aboutus.aspx?UID=1 page but the URL of web browser will not change.
i try to used vs2010 build a mvc2 website, just as a testing. so, i include the jquery script file and some css files, it works well in the vs2010. how ever, when i deploy it to iis7/windows 2008 r2, i found all the css files ("/content/*.css") can run well, but the image files ("/img/*.gif") and script files ("/script/*.js") were absence. in fact, the website runs except the image files & script files.
I hv a query regarding publishing the website. I use aspnet2.0 and for uploading we use filezilla.
Whenever I make any changes to my website (either in aspx or aspx.cs page), I need to upload the entire website (along with my bin folder, after publishing)again otherwise my site just doesnt work.Its very time consuming.
I don't have any experience in web hosting. Recently I've completed developing my Asp.net website using Visual Studio 2010. The website retrieves financial data from Yahoo! Finance, does analytical calculations in code-behind, stores processed data into several databases, and allows users to analyze the stock market using those data. Currently I need to run some programs in Visual Studio so that new data get downloaded every day.
My problem is that I know nothing about how to do web hosting so I can actually get my website on the Internet. I heard that there are third-party web site hosting services, but do they allow you to upload entire Asp.net web pages with all the databases attached? What if I need to go in there, run some programs, and update some data in the databases, do these web hosting services allow me to do that?
If the answers to the above are yes, what are some good web hosting services that allow you to upload (I don't even know if "upload" is the correct term to use) Asp.Net web pages? By the way, my website is coded in Visual Basic, if it makes any difference.
i have dsigned a website in my desktop in my company. i have installed sql server 2005 and visual studio 2008.everything is working fine if i host my website from my workstation.but my desktop is not accessible to all the departments in my company so i have to host my website on one of the company's sql servers.let us assume that "isaserver" is my company's sql server where i want to host my website.now, what i did that i created a virtual directory in isaserver's wwwroot folder and pasted my c:/inetpub/wwwroot contents into that.but when i tried to access the website, its not working.
I have source-version of project and i need to deploy it on IIS. General project it properly deploy using VS2008, but issue is, if new revision is created then i need to point new source to deploy web-site. In this case i need to remove created virtual dir for previous version. Is this possible to toggle virtual directory between two sources. I think one solution is to change virtual directory path to new one.
I was commissioned to write a search asp.net page for a company. Page works great, they finally ask me to deploy to the web server. I RDP out to the web server, and instead of finding a normal deployment, I see all the aspx pages along with their code-behind files. They do not pre-compile their pages.
So in an environment like this, how do I deploy my asp.net page? I can get pages to run that don't have dependencies on other things, but this particular page uses Linq. So in my web project, I have a dbml file, and it's generated pages. I have put the dbml and related files on the webserver. The page fails when it encounters the using datacontext statement.