C# - Publish ASPX To Sub Directory Of Application?
Jun 30, 2010
I have published an asp.net application to a sub directory of my IIS application. I know that the web.config must exist at the root for several of the properties to work. So I have moved my web.config to the root of the application. I get the following error:
Could not load type 'ProjectName.myTypeName'.
I suspect that not having the web.config in the same directory as this aspx file is causing the issue. How do I config this so that my web.config can live in the root while the aspx file lives where I need it to?
View 3 Replies
Similar Messages:
Oct 18, 2010
I have a website(not an application) built in VS2008. When I try to publish the site, any of the files that are in the root folder are not published. This has only just started happening and I am unsure what I have changed to cause this. The files are not excluded from the project.
View 1 Replies
Feb 27, 2011
I have created a website that has one aspx page. I am using visual studio 3.5. I have created a virtual directory on my local pc and tested the app and it wis working. Now I need to delploy it to the domain via ftp> Here is the website folders:
1. App_Code - contain my classes
2. App_Data - contain the sql express database ... myDb.mdf
3. Myaspx page - a single page
4. Web.config
when I run it , it woks, but when I want to deploy it , the site does not work. Here what I am doing .I am publishing the site to a local folder, then upload the complete folder to the right domain name. Yet, get an error
"Error 1 The process cannot access the file 'B:�0 2011 demoMarchObjectDataSource_CRUD_CSApp_DataRGN.mdf' because it is being used by another process"
How can I fix this error. I thought when I publish the site, the database would also be included in the site folders, but I may be wrong.
View 2 Replies
Jul 1, 2010
I've created an aspx page (default.aspx) using Visual Studio on my laptop. I can launch my page default.aspx fine on my laptop. However when I transfer my default.aspx onto another PC/laptop/server, it couldn't work. I understand it's because that other machine doesn't have an asp server running. How do I overcome this without installing an asp server on that other machine?
View 2 Replies
Mar 16, 2010
After I installed the .net framework 3.5 to my iis box (which didn't have any previous version of .net fraemwork), I'm not long able to upload the aspx page via WebDav with MS Expression Web. I got the "HTTP/1.1 403 Forbidden " error message.
Also I got this error "Server Application Unavailable" when trying to open the aspx page. my iis box is not a domain controller nor a backup domain controller.
I have enabled the webservices extention - "ASP.NET v2.0.50727" and "WebDAV";
View 1 Replies
Apr 22, 2010
I am new to webpage building.
I have sucessfully created a .aspx form with submit button feature that publishes correctly in my development environment running localhost. I am now attempting to move this form into my public website and it will not render in the public environment, only returning the code of the form.
View 2 Replies
Mar 4, 2011
How to run ASP.NET C# web application locally???
How to publish web application done on Visual Studio 2010, OS windows-7 and after that how to view it locally.
View 1 Replies
Sep 13, 2010
I'm using Visual Studio (VS) Professional Edition 2010 and IIS 7. I'd like to publish a wpf application for download from a website. But for some reason, when I go to Build > Publish in VS, select a publishing location, select that users will install the application from a website, and then try to browse to a URL on my machine, VS gives me an error message saying:
To access local IIS Web sites, you must install the following IIS components:
IIS 6 Metabase and IIS 6 Configuration Compatibility ASP.NET
I'm not really sure why this is happening. I'm running IIS 7 on my computer, and it was my understanding that Metabase has been rendered obsolete in the latest version of IIS..
View 1 Replies
Nov 12, 2011
How i can publish web application without code. I mean when i upload page it's be for example: Default.aspx , Default.aspx.cs , the user can download this pages and edit on code , what i need the user can't see the code after publish such .EXE
View 7 Replies
Oct 2, 2010
I am creating a Console Application and in its code I need to Publish a MVC 3 P1 Application in Release mode.
Just like I do when, in VS2010, I right click the project, click Publish and set the folder to which it should be published.
How can I do this?
Basically I am trying to create a Console Application that publishes an MVC Application and copies some other folders to a Release Folder.
View 3 Replies
Feb 10, 2011
how can I publish a web application to the internet
View 2 Replies
Dec 30, 2010
I had first build an database and populated it with various information, set some properties related to FTS and other things.
Now, in the asp.net MVC application, I am able to add the database ServerExplorer->Connect To Database-> Data Source= MS SQL SERVER->Server name->OpAmp-pc. Now, I was unable to add the database by copying the file in app data folder.
My doubt it how can I share the website+ database with my fellow batchmate or put the whole website online.
Build->Publish Sirte, didn't solved the pupose.
View 1 Replies
Feb 18, 2011
I'm building an ASP.NET MVC application and I'm trying to deploy it on a free host (0000free) which does support ASP.NET. I tried a couple of things, but none of them worked (i.e. I only see the directory structure when I browse to my web site):
Publishing to a local folder and then copying the published files via ftp over to my host (in the public_html directory).
Publishing via ftp to the root folder: ftp.mywebsite.com
Publishing via ftp to the public_html folder: ftp.mywebsite.com/public_html
Usually I would just drop the html files in the public_html folder, but I'm getting the feeling that the deployment process for an MVC application is slightly different. Do I have to modify the Web.config or some other filer? How does one usually deploy an MVC application (on a free host)?
Update:I have learned that the host uses Mono and supports .NET 4.0, but I'm still not able to deploy.
I have Visual Studio 2010 and I used its Publish Feature (i.e. right click on the project name and click publish) and I tried several things:
Publish method: FTP to the root folder.
Publish method: FTP to the publich_html folder.
Publish method: File System to the root folder.
Publish method: File System to the publich_html folder.
Publish method: File System to a local directory on my computer and then FTP to root and also tried the public_html folder.
I went into the cPanel (control panel) to try and see if ASP.NET has to be added/enabled for my web site, but I didn't see anything there.I can't browse to Index.aspx nor can I redirect to it from index.html (as suggested from other posts on the host forum), right now I have a link from index.html to Index.aspx but it's not working either (see http://www.mydevarmy.com)I've also tried renaming Index.aspx to Default.aspx, but that doesn't work either.
The search utility of the forum of the host is somewhat weak, so I use google to search their forum: http://www.google.com/search?q=publish+asp.net+site%3A0000free.com%2Fforum%2F&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
I've been reading Pro ASP.NET MVC Framework and they have a chapter about publishing, but it doesn't provide any specific information with respect to the location of publishing, this is all they say (and it's not very helpful in my case):
Where Should I Put My Application?You can deploy your application to any folder on the server. When IIS first installs, it automatically creates a folder for a web site called Default Web Site at c:Inetpubwwwroot, but you shouldn't feel any obligation to put your application files there. It's very common to host applications on a different physical drive from the operating system (e.g., in e:websites example.com). It's entirely up to you, and may be influenced by concerns such as how you plan to back up the server.
Here is the error I get when I try to view my Index.aspx page:Unrecognized attribute 'targetFramework'. (/home/devarmy/public_html/Web.config line 1)
Description: HTTP 500. Error processing request.
Stack Trace:System.Configuration.ConfigurationErrorsException: Unrecognized attribute 'targetFramework'. (/home/devarmy/public_html/Web.config line 1)
at System.Configuration.ConfigurationElement.DeserializeElement (System.Xml.XmlReader reader, Boolean serializeCollectionKey) [0x00000] in <filename unknown>:0
View 2 Replies
Dec 8, 2010
I recently developed a LINQ to SQL web application in Visual Studio 2010 on my desktop (Windows XP). It uses a connection to an SQL Server 2008 Express database on a remote server running Windows Server 2003.
When I test the application (Ctrl + F5), it works well. Now I want to publish the application on the remote server, but have run into difficulties.
I packaged the application using the "Build Deployment Package" option in Visual Studio. I installed msdeploy.exe on the server and transferred the package over. I ran "application.deploy.cmd /Y" to deploy
the application and got output indicating that files had been copied.
The deployment created a virtual directory under the default web site in IIS 6.0 and copied the necessary application files to the C:InetpubwwwrootApplication directory. However, when I attempt to browse
to the site from IIS Manager, I get a 404 error. This happens for all pages (not just the main page). So I can't get to http://localhost/Application_deploy/ and I also can't get to http://localhost/Application_deploy/Default.aspx. I mention this because
when I googled the issue, I found a lot of help for people who could get to Default.aspx but not to the main page. I don't think this is my problem.
I should mention that there is another virtual directory on the default website (I think it installed with IIS 6.0) that seems to be working fine. I was also able to publish the website on my local machine
using the one-click publish method and that works fine. My local machine runs IIS 5.1. At this point, I believe it's probably a configuration issue, either in IIS or in the application itself, but I haven't been able to solve it.
View 5 Replies
May 17, 2010
My operating system is Vista SP1 and vs.net 2008, I created windows application project but when I publish it , it display error
Failed to connect to 'http://localhost/project' with the following error: Unable to create the Web site 'http://localhost/project'. The Web server does not appear to have FrontPage Server Extensions installed.
View 5 Replies
Oct 27, 2010
I have created a web applcation and i need to publish that in a sharepoint server with single sign one.
View 1 Replies
Jul 12, 2010
I'm working in Visual Studio 2010 Professional. I have a web application based upon the standard ASP.NET Web Application, which contains the aspnetdb.mdf SQL Express database for forms based security. For testing deployment, I'm trying to use the Publish option to publish the web app to IIS 7, which exists on the same machine that I'm building the web app on. The machine is running Windows 2008 R2.
I went through the Help file to set up the deployment of the database, using the Package/Publish SQL tab in the site properties. I followed the help file to the letter, or so I thought. I go to publish to the virtual directory I set up on IIS and it gives me errors, specifically saying the following:
Web deployment task failed.(The database'|DataDirectory|aspnetdb.mdf' could not be created.)
I took this to mean the the path isn't valid for publishing to, which makes sense. So I changed the destination path to the fully qualified path (C:WebAppsApp_Dataaspnetdb.mdf) and ran it again. This time I got the following error:
Web deployment task failed.(Cannot connect to the database 'C:WebAppsAppDataaspnetdb.mdr'.)
I looked at the security for the folder and everything seems fine. Now I'm stuck.
My question is - can anyone tell me what I'm doing wrong, or supply a list of steps to follow, or give me a link to a site that has clear steps as to how this is done?
View 1 Replies
Jun 16, 2010
I have two applications(A,B) both are developed in .NET3.5 and used LDAP services.Application-A in one screen we are fetching users with role "project Leads" and it is taking 10 min time
Application-B in login screen we are checking user is authenticated or not and it is taking 20 sec
Both the applications are using the same service then way there is a time span problem. Please suggest me what can I do to improve performance of application A?
View 3 Replies
Mar 1, 2011
I'm trying to use WCF Callback to implement publish/subscribe pattern. I would like to send the message from UserA to UserB or UserA to every clients at the moment. I got an example from here
In my app, I use asp.net as a client to connect wcf service instead and I found a problem when I subscrib to wcf service.
The wcf service does not hold any other clients object. So when I call GetAllClients(_guid), It will return only 1 client which is itself.
Here is the code in asp.net page (i put every control inside updatePanel)
[code]...
Is it possible to implement this publish/subscribe with asp.net and wcf callback? (I already tried on window app and it worked fine)If it is possible, how can I keep all clients that is connecting to WCF Service so I can use those GuId to call callback method.
View 1 Replies
Feb 20, 2011
I just made my first MVC3 app, and I thought it would be fun to upload it to my web hotell. So I did a publish locally in visual studio and then transfered the published files to them over ftp. They have support for MVC3, so there shouldn't be any problems there. But what I get when I try to go the the page I get an 403 - Forbidden: Access is denied
I've tried to add the:
<authorization>
<allow users="*"/>
<deny users="?"/>
</authorization>
View 3 Replies
Jul 18, 2012
how can i publish on Facebook fan page wall from asp.net application.
View 1 Replies
Sep 30, 2010
I like to add a field that add active directory user in ASP.NET Web Application .
View 1 Replies
Oct 17, 2010
My colleague and I are both using VS 2010 and we have created a web application each. We can both publish our own applications to a ftp (web host's) and it works fine. However, if my colleague send me his solution and I run it locally on my machine it works but when I try to publish it I get promped for password and I enter it (same as I use for my application) but it fails. Same for my colleague if he takes a copy of my solution and tries to publish it.
View 1 Replies
Oct 8, 2010
iam working in a project i have windows vista home eidtion , and i have iis 7 installed , how to publish my web application.
View 2 Replies
Jul 27, 2010
I'm relatively new to actually publishing sites on my own..Anyway, right now I am using VS2008 to build / compile my web application and then publish it to the server. Simple enough, until I want to change several of the code behinds, and don't want to spend 30 minutes re-publishing several thousand documents.
I have been reading that publishing via VS is not the best approach, so I guess I have two questions:
1. Using VS2008, is there a way to build the project and publish only certain parts of the project such as the pre-compiled code or better yet have VS only update the code that has been changed on the server? I suppose I could simply publish it to my local drive and pick apart the files from there / is there a better way?
2. In your opinion what is the best deployment strategy?
View 4 Replies