WebMatrix :: Deploy C# Site To IIS7?
Jul 30, 2010how to deploy a WebMatrix c# site to IIS7?
View 8 Replieshow to deploy a WebMatrix c# site to IIS7?
View 8 RepliesWe have the requirement to set up the Web site and FTP site on IIS7. We have registered a domain for hosting the application
[URL] If I need to set up the Web site and FTP site on same Web server with the same Domain name, how can I do that. My DNS has mapping for [URL]. Do I need to have the DNS record for FTP in the DNS server. This depends on if your customer wants people to FTP to [URL] or [URL]or [URL]. If they want [URL] then you'll need another entry in DNS. You just need to add a new alias record in DNS that resolves the same IP as www to ftp. Do I need to take any extra steps to configure same Domain name in IIS7 for Web site and FTP site. I would assume that as long as IIS is set to listen to all IP addresses you should be good to go. Can I configure the web site in IIS 7 as [URL] You want to force people who browse to the default name of [URL] to be redirected to [URL]? Setup two websites on IIS - one for [URL]and one for [URL] where the real content lives. On the [URL] use IIS7's redirect feature to force all requests to [URL] See: [URL]
I am trying to publish a sugarcrm site I created in webmatrix to my site hosted on godaddy, however when i go into the publish settings and enter the server info, passwords etc., I can only get the connection to validate for the FTP protocol setting. When i click the button to test and validate the connection for webdeploy instead of ftp, it tries then says connection timed out. How do I get this to work so that I can publish my site on godaddy?
View 3 RepliesMy hosting company states they support .net and razor. However after uploading my website made with webmatrix and razor *.cshtml pages. When i visit my website all i get is 404.17 error messages. As an testcase i decided to add an standard .aspx page. Visiting that page gives the same 404.17 error message :-(
.
According to my webhoster my web.config is wrong. However that one is generated by webmatrix. Besides my *.cshtml *.aspx a lot of files and directories are added to the bin folder. What can i check and what should my hosting provider check. When using the check compatibility the asp.net version is shown as unknown? My hosting provider claims my site is running asp.net 4.0 in integrated mode and that should be enough.
I want to deploy a website in a computer where no webmatrix is installed. What are the requirement to run the website without webmatrix? And how do I configure IIS to run in startup with the site path?
View 4 Repliesi 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.
View 1 RepliesI am neither a server administrator nor very knowledgable about how to configure IIS, so I have the following problem:
My client hosts their public website from their own internal server running Server 2003 with IIS 6. The current website is a .NET 1.1 application configured as a website in IIS. Within this site a separate virtual directory configured as an application runs a separate .NET 1.1 app that serves as their online webstore.
I've been tasked with upgrading the website (not the webstore) to .NET 4 and getting it installed and working on their server. My initial plan was to simply change the existing websites home directory to the new home directory from the IIS admin console and be done, but then I read that this would break the application directory that hosts their online store because .NET 1.1 applications cannot be nested within .NET 4 applications. Can anyone confirm this?
I don't have web server account yet so I must test my applications with the Web Development Server under VS 2010 with C# but I read that I couldn't send emails under that server but I also read that I can send email with IIS7 Express and that's the main reason why I've install Webmatrix. Maybe someone can confirm this. So for the moment I am redirecting my emails into a local folder and it is working perfectly. Here is part of the code I've add to the Web.Config for doing that.
[Code]....
As you can see I am redirecting the emails to the D: emp
[Code]....
What are the values of username & password. or others when we use the Webmatrix server and how can I fint hem? It was hell posting this text I think the inserted code was interfering with the HTML of the message or there are bugs in the editor,
So lets say I want to make a change to some content on one of my views for my MVC project. Something really simple like taking out a sentence or adding a period or something. So from what I see, I have to republish the entire site, then take down the whole site and replace it with the newly publish set. I was wondering if there was a way, if I make a change to a single page's content that I could just replace the single page, without having to replace the entire site. I remember in web forms I could replace a single page if I made a change.
View 2 RepliesI have an ASP.Net website that I built in a computer science class. I built it in Visual Studio and the solution is on my local drive. How would I deploy this to a real website?
View 3 RepliesI've been working on site for a client who has just informed me (having completed the work) they want to deploy the site into a subfolder of their exiting domain. The site uses a number of class files in the App_code folder and as well as references to several XML files and and siteMap that uses localised urls for navigation. Obviously all of this stops working as soon as you put it in a sub folder. Is there any way I can configure the site to treat the sub folder it will be placed in as the root?
View 3 RepliesI'm new here. Noticed that most posts are related to WebMatrix as a tool, not WebMatrix-WebPages programming. Also WebPages does not require WebMatrix at all. Perhaps there's another forum for WebPages, otherwise I would suggest to split this forum into two. WebMatrix | WebPages,
View 1 RepliesI have published my site using WebMatrix. In my local folder on my PC I've deleted some unnecessary files. And then published the updated site again. WebMaxtrix never give any indication it is going to delete files that are not found in an UPDATED published site. When browsing to my site and requesing the-supposed-to-be-deleted resources I still get them in my browser.
View 2 RepliesSuppose I created a custom web application that consists of: several assembly DLLs: web app, business logic, data services multiple aspx pages and ascx custom controls that use them custom configuration section custom HTTP module. More or less the usual stuff. I would like to deploy it to a particular sharepoint site under a certain subfolder. So if I access my sharepoint site via [URL] (because I'm not using sites/some_site) I'd like my application to be available under [URL]
I could manually add a virtual folder (not application because I would need to access some Sharepoint site's data) to my sharepoint site in IIS and manually edit site's web.config file to register my HTTP module and add my custom configuration section as well either putting my DLLs into GAC or put them in the _app_bin (so I don't have problems with CAS), but I don't think that's a good thing to do, because this web application may get deployed in an environment where this shouldn't/couldn't be possible. So I figured I could build a WSP using Visual Studio 2010 and deploy it that way. But I don't have enough experience doing that.
I created a new sharepoint 2010 project. Is there a way I could add all non-executable application files (aspx, ascx) at once? I've seen the advanced tab of the WSP package where I can add my DLLs either to bin folder or GAC. I don't know whether I would also have to add any safe control and register certain classes?So I suppose I need some pretty detailed and explanatory guidance here.
Okay I've read the other StackOverflow postings, forum posts on MSDN, everywhere. I CANNOT get this to work for the life of me.
Here is what I have setup.
In IIS7.0
- Default Site in ASP.NET v4.0 App Pool
- C:Inetpubwwwroot as the physical path
I published my MVC2 site in VS2010 to the Default Site path, it succeeded.
Here are the settings for that:
- Same App Pool
- C:InetpubwwwrootPerfectSchedule as the physical path
- Default Document is Views/Home.mvc
I open the URL in my IE browser
- http://localhost/ --> just gives me the Apache "It works!" page
- http://localhost/PerfectSchedule --> The WebPage cannot be found
- http://perfectschedule/ --> Internet Explorer cannot display the webpage
I'm learning to use webmatrix via the tutorials on the website. I've had success with all table operations, when only using one table. I'm using the following address to access the site uredi_let_padalce.cshtml?LetId=4 and the is code:
[Code]....
The page works if I write: where LetId=4 instead of @0. But if I leave the variable I get the following error: The column name cannot be resolved to a table. Specify the table to which the column belongs. [ Name of ambiguous column = LetId ] If I specify the table name LetId_PadalecId. LetId=@0, then I get the parameter missing error. How could I tell the server which LetId I want?
I want to deploy asp.net 4.0 web site on windows server 2003, Now I already have a classic asp site running on it. Would there be any problem if I install .net 4.0 framework for my new site. Will the existing site (the one in classic asp) be affected?
View 2 Repliesa partner has sent over a old school web service to instal on one of our webservers. I cant open the project since its been precompiled, how do i deploy that to my webserver (IIS 7.5 on 2012)? what do i need to copy or is there a way to suck it in from the files in IIS?
View 1 RepliesI try to create a wordpress site from the gallery and I get an error that says that it cannot find database. I dont have mySQL installed. I thought that WebMatrix would download and install it. Does WebMatrix Beta 3 expect MySQL to be installed? And if so, which version?
View 1 RepliesI would really appriciate if someone could show me example of how to use api webservice of another site and retreive content (or whatever data is returned) and publish that content localy on omy own site. Api webservice I´m planning to use has support for HTTP GET & POST and SOAP 1.1 and 1.2.
I created my site with webmatrix and razor.I tryed searching on the net but I'm having hard time finding relevant content.
I was hosting published site in IIS 7 on Windows 7 installed machine.I had done setting for .NET framework version, Security Options but got Error as shown below
HTTP Error 500.19 - Internal Server
Error
The requested page cannot be accessed because the related configuration data for the page is invalid. Detailed Error Information Module IIS Web Core Notification BeginRequest Handler Not yet determined
Error Code 0x800700b7
Config Error There is a duplicate
'system.web.extensions/scripting/scriptResourceHandler'
section defined
Developing a web site in .Net 4. Very close to being complete with most functionality, so I thought I would attack what seemed to be a tough one (something I have not done): site content search.
I've been digging around for an hour or so, and I'm a little perplexed. How do I perform content search on an ASP.net website?
A few things I'll throw out there before you answer with something I've already seen and cannot implement:
I am developing on a Win7x64 computer using VS2010 w/TFS.Site has been converted to .net 4, and is in C#.Will not have access to put site on Windows Server 2008 for another month, but would really like to implement search if at all possible beforehand.All that said, can I implement searching via indexing? I've looked at using Windows Search, but nothing looked like it worked right. This site will be served up on a Windows Web Server 2008. Do I need to somehow develop against a Server 2008 to implement search via indexing?
We've got a process currently which causes ASP.NET websites to be redeployed. The code is itself an ASP.NET application. The current method, which has worked for quite a while, is simply to loop over all the files in one folder and copy them over the top of the files in the webroot.
The problem that's arisen is that occasionally files end up being in use and hence can't be copied over. This has in the past been intermittent to the point it didn't matter but on some of our higher traffic sites it happens the majority of the time now. I'm wondering if anyone has a workaround or alternative approach to this that I haven't thought of. Currently my ideas are:
Simply retry each file until it works. That's going to cause errors for a short time though which isn't really that good. Deploy to a new folder and update IIS's webroot to the new folder. I'm not sure how to do this short of running the application as an administrator and running batch files, which is very untidy.
Does anyone know what the best way to do this is, or if it's possible to do #2 without running the publishing application as a user who has admin access (Willing to grant it special privileges, but I'd prefer to stop short of administrator)? Edit Clarification of infrastructure... We have 2 IIS 7 webservers in an NLB running their webroots off a shared NAS (To be more clear, they're using the exact same webroot on the NAS). We do a lot of deploys, to the point where any approach we can't automate really won't be viable.
is this something basic or am I missing something?My ASP.NET (4.0) site has a web.config with URL rewrite rules. When I run it in debug mode (local webserver) all the URLs fail because the local web server does not recognize the rules (e.g. I have /register which maps to register.aspx etc.)Is there someway I can get the debug system to recognize my URL rewrite rules? Should I be doing something else?
View 2 RepliesI used to deploy developed web parts to a remote sharepoint site by Build->Deploy menu inside Visual Studio 2008 months ago ( I am not a regular web part developer). My network engineer also asked me how to deploy web parts without stsadm commands. anyway now I can't. Visual Studio keeps complaining that the specified site doesn't have sharepoint site contained. "No SharePoint Site exists at the specified URL."
After googling, it is said web parts can't be deployed to remote sharepoint sites from visual studio. Only can to local site. However I did it before. Visual Studio 2008 service pack or hot fix made this feature (remote deploy) removed? Or is there any workaround?