C# - App Code In Published App?

Dec 29, 2010

I published my asp.net app using the basic capability (publish to disk). Now I look at the published content and it contains .cs files. Is this correct? I did right-click 'convert to web application', but the .cs files still appear.

View 1 Replies


Similar Messages:

Web Forms :: How To Get Code From Published Web Application

Feb 9, 2013

Can I get Code website asp.net by save it or another way

the web site published on the internet by another person

View 1 Replies

Web Forms :: How To Get Code From Published Project

May 7, 2015

I deployed  (publish) website in visual studio 2012 .. 

But now I want to revert back and get code from generated dll..

i.e.,  deploying created dll, and I want code from dll.. How to do this...

View 1 Replies

Web Forms :: How To Change The Code So That When Published Online

Oct 3, 2010

I have the following code in visual studio 2010:

TextBox1.Text = My.Computer.FileSystem.ReadAllText("C:UsersBabyDesktopSimulator websiteResourcesTextFile.txt")

It reads the text in the textfile and displays it in the textbox. However, this link only works on my computer. How do I change the code so that when published online, it still works on anybody's PC? I think i need to refer to a relative path, but do not know how this should be done.

View 1 Replies

Iis - Modify Content Of XML File From Published Code?

Aug 18, 2010

I am trying to modify an xml file from my aspx code. The file is in another directory from my project like in D:folderfile.xml When publishing my code and running it I am receiving an error as not to be able to access this directory, access in denied. Which user account shall I add to this folder in security option to be able to modify it. I tried adding IIS user but it does not seem to work.

View 2 Replies

VS 2012 - How To Tell Difference Between Source And Published Code

Feb 5, 2014

How can I tell the difference between source and published .NET code?

I am looking at some inherited code that I have not touched in about a year. The original designer had me first publish locally before uploading the published code to the internet server. Now I am looking a number of backed up source folders as well bas backed up published folders. I should have done a better job at naming the folders, I guess. Now I wonder: How can I tell the difference between source and published .NET code? Is there some easy way to see if some folder that contains only published code is lacking a file or xml setting?

Is the .csproj file or the .sln file part of the code pushed to the server when you publish? What other differences are there that I are immediate and obvious?

View 1 Replies

Web Forms :: How To Decompile And Get Code From A Published Website

Apr 21, 2014

I have a site which some one designed for me .. after i decompiled my dll files i got *.cs files that i can edit ... when i am trying to edit these pages i can only find the titles of pages but i can't see the rest of text in the site

how can i get all pages's text !?

View 1 Replies

Web Forms :: Code Behind Works In VS2010 But Not When Published In IIS?

Oct 24, 2012

Imports System.Collections.ObjectModel Imports System.Management.Automation
Imports System.Management.Automation.Runspaces Imports System.Text
Imports System.IO
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
If DropDownList1.Text = "ABCD" Then
Label1.Text = " ServerB" End If

[code]....

I have an ASP.NET site I built for our users to map a network printer. When I test it, it maps the printer without any probelms. When I publish it to IIS, it acts like it's going to run, but never tries to map it. I have checked all the permissions, I have tried it as a web app and a web site, I have tried to publish both and I have tried to copy and paste the folders in the root folder. I have added references to the Microsoft.Powershell.XXXX. I have changed it from "CodeBehind" to "CodeFile" and I have changed the "AutoEventWireup" to "true". There are no errors in the event log and none on screen. It clears the fields, like it should at the end of the code and that's it.

View 1 Replies

Web Forms :: Change Value In Compiled And Published Code Without Recompile

Mar 3, 2014

I have a tricky situation. My application got deployed in production. A lable value needs to be changed but the problem is am setting the label value dyanamically from page load of my page. Is there way to change the label value withour redeploying? i can change the logic on codebehind but that requires another deployement which i don't want to do that as it is production.

View 1 Replies

How To Decompile Published Website

Jun 21, 2010

I am working on a project. Client provided me source code, but I found that source code provided to me is not latest code. I need to make some changes to live site. I downloaded code of live site which is published code. Is there any way to decompile that and then make changes to that.

I found Reflector tool good to some extent. But it is decompiling only dlls. It is difficult to make changes to .aspx.cs pages. I am confused what to do.

View 3 Replies

Merging Changes To Published Site

Jan 14, 2011

I created an ASP.NET site in Visual Web devloper 2010 & then published it to our webserver. Due to the nature of the site, there are several users updating the content on the site (e.g. news pages). Is there a simple way to merge these changes back into my project? Can I just copy the published site back over my project folder which should overwrite the aspx pages but leave the code behinds untouched?

View 4 Replies

Configuration :: Can't Browse A Published Web Application

Jan 19, 2011

I have published my ASP.Net Web Application on remote IIS server using Project --> Publish options.

But I am not able to browse it.

View 2 Replies

Configuration :: C# Web Application Slow Once Published

Jan 12, 2011

My application runs quickly when debugging locally, but slows down to an almost unusable state once published. Oddly, the published version seems to be grabbing data very quickly from MSSQL - it's the part where I'm updating datatables and gridviews that is very slow. For example:

[Code]....

View 8 Replies

C# - Application Runs When Debugging But Not When Published

May 10, 2010

When publishing my web application and then running it will return the error

"Could not load file or assembly 'BaseApplicationName' or one of its dependencies. An attempt was made to load a program with an incorrect format."

However if I run the application through debugging (f5) it runs correctly.

I guess what it comes down to is

what differences are there when running an application through debugging vs publishing it that would cause a problem like this?

When publising I have it set to delete all existing.

History of how it started... I added the 32 bit Oracle.DataAccess dll to my 64 bit system. It would not work and crash giving the same error as above but with the Oracle.DataAccess name instead of the baseApplicationName. I have since removed all references to it and removed the dll to try and get it to run without it once again.

View 3 Replies

Ajaxtoolkit - Application Not Working After Being Published With Pro

May 22, 2010

After publishing the solution from Windows XP, the AJAX pro tool are not working after being deployed to Windows Server 2008.

How can I solve this problem?

Using C#, .NET 3.5, and DevExpress tools.

View 1 Replies

Get The DateTime That A Page Was Last Published In Sitefinity?

Apr 16, 2010

Here is what I have:

Dim cmsManager As New Telerik.Cms.CmsManager()
Dim currentNode As Telerik.Cms.Web.CmsSiteMapNode = CType(SiteMap.CurrentNode, Telerik.Cms.Web.CmsSiteMapNode)
Dim currentPage As Telerik.Cms.ICmsPage = currentNode.GetCmsPage()
Dim currentPageId As Guid = currentPage.ID
Dim pageFromDb As Telerik.Cms.IPage = cmsManager.GetPage(currentPageId)
Me.LastUpdateDate = pageFromDb.DateModified

Unfortunately .DateModified returns the last time that a page was edited instead of when it was last published.

View 1 Replies

AJAX :: Published BIN Directory Using VS2008 - 3.5

Sep 27, 2010

After I publish my site and I take a look at the bin directory I notice a lot extra directors that seem to be associated with the Ajax Control Toolkit such as ar,cs,de,es,fr Could any explain what these folders are and do I have to have them? Also I notice it seems to publish the .pdb file for the AjaxControlToolKit can I delete these when I place them on my server? I am using VS2008 .net 3.5

View 2 Replies

WordAutomation Not Working When Published To IIS Webserver?

Sep 15, 2010

I am bulding a site that will create word documents from templates and fill in the bookmarks. Its working fine when running locally in VS but when I publish to the webserver it seems to have an issue opening word. Durning testing I created a new site that only has the code below and its still not working - you click on a button and it looks to have worked but word never opens. I have done 2 days of fault finding to no avail. The server has office 2003 installed and I have put the correct dlls in the bin folder of the project and still no joy - I have played around with as many settings as I can in IIS and still nothing.

[Code]....

I am using;

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.Office;
using Word = Microsoft.Office.Interop.Word;
using System.Reflection;

View 4 Replies

C# - Application_Error No Longer Triggers When Published To IIS?

Oct 22, 2010

I have the following code in my Global.asax file:

[code]....

To provide neat and tidy error urls like "/Error/404/TheNameOfTheRequestedPage". This works fine from VS 2008, but once published to my local machine, I get the default error page:

Error Summary

HTTP Error 404.0 - Not Found The resource you are looking for has been removed, had its name changed, or
is temporarily unavailable

I've chosen not to use system.web/customErrors because I don't have access to Server.GetLastError() from there (or at least it's never worked for me) and I want to get the http code.

View 2 Replies

VS 2010 Published Files Won't Update

Jul 19, 2011

I updated my project and was finally able to get a specific section working correctly. I tested it in Debug mode and everything looks good.Now, I want to transfer those updated files to my server. I Published the files to my DropBox and uploaded them to my server, but they worked like the old files.

View 10 Replies

Add Custom User Control To Published Web Project

Sep 22, 2010

I have a published web project. I want to add some .ascx files (with .cs & designer.cs files) to that published web site. These are simple custom user controls that access methods already part of the original application. Question? Is it possible to just drop these in the published web project without building the entire solution? If not why? When I drop these files in and run my application I get the error: "Parse Error: Could not load type 'the name of my custom controls namespace'". There is not a lot of code to show so this is all I have.

Default.aspx
<%@ Page Language="C#" MasterPageFile="~/MasterPages/TwoColumn.master" AutoEventWireup="true"
Inherits="ApplicationName.Web.Default" CodeBehind="Default.aspx.cs" %>
<%@ Register TagPrefix="uc1" TagName="CustomControl" Src="~/Controls/Custom/CustomControl.ascx" %>
<asp:Content ID="content" contentplaceholder="cph" runat="Server">
<uc1:CustomControl ID="cc1" runat="server" CustomProperty="Hello World" />
</asp:Content>
CustomControl.ascx
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CustomControl.ascx.cs"
Inherits="ApplicationName.Web.Controls.Custom.CustomControl" %>
<asp:PlaceHolder ID="ph1" runat="server></asp:PlaceHolder>
CustomControl.ascx.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace ApplicationName.Web.Controls.Custom
{
public partial class CustomControl : System.Web.UI.UserControl
{
///My logic
}
}


Again it seems so easy. What am I missing? Or is this not possible?

View 1 Replies

Configuration :: Anonymous Access For Published Web Application?

May 5, 2010

I check WindowsPrincipal.Identity.Name against Active Directory security groups before allowing the user to edit data. If the user is not authorized I just present a read-only version of the data.

When I run my web app from the IDE everything works fine. I published the web app, made sure anonymous access was disabled, and invoked it from IE. The read-only page came up.

I then added code to write to the event log to display the WindowPrincipal.Identity.Name and saw that instead of displaying the user name, it was instead showing the server name. I verified again that Anonymous Access is disabled and integrated security is on.

View 3 Replies

Configuration :: Published Web Application (website) Not Working

Jun 22, 2010

I have developed an webapplication with some jquery and ajax (client side validations), it works fine when run locally.

But when i publish it to the IIS, the client side execution is not taking place.

Do I need to tweak the IIS to make it work.

I am using VS2008 and .net framework 2.0 on a winxp machine.

I am trying to publish to the local IIS (5.0).

View 4 Replies

C# - Json Path Triggers Local But Not When Published

Feb 22, 2011

I have a .js file that works fine locally, but I am somehow having path problems when I commit and add to my server. I have "Home" for the controller name, and "LoadTable" for the JsonResult function.

$(document).ready(function () {
$('#tableClick').click(function () {
$.post("Home/LoadTable", $('#FormTable').serialize(), function (data) {
alert("test");
}, 'json');
});
});

Should I have the path name be something else when published? If so how do I toggle from local to server version in my webconfig, if possible? Is there another option?

View 3 Replies

ADO.NET :: The Model Folder Is Not Being Published To Hosted Service?

Feb 19, 2011

I am working with this tutorial .[URL] In Visual Studio under the WCF REST program called .. TeamTask.Service is see the folding folders and files

[folder] Properties
[folder] References
[folder] AppData
[folder] Model
[file] Global.asax
[file] TeamService.cs
[file] Web.config

Then I use Build...Publish TeamTask.Service to move this up to my shared hosted server....it builds and publishes successfully

When I reset the client to my virtual directory on my domain...it opens and I get an error that I believe is because it can't find and records or tasks

When i look in the folder that was published to I find this:

[folder] AppData
[folder] bin this has a TeamTask.Service.ddl and TeamTask.Service.pdb
[file] Global.asax
[file] web.config

No folder for Model.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved