.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Publishing website changes path on images in the staging area

Posted By:      Posted Date: October 21, 2010    Points: 0   Category :SharePoint

We are using SharePoint MOSS for our Internet site. We have a staging area where we arrange our content before we use content deployment to push it out to production. We put pictures along with text in CEWs and use relative paths on the pictures. The thing gets published and deployed to production and life is good. But if you have to make an edit to the text or anything other thing on one of those web parts with pictures in them, as soon as you open that web part up in the rich text editor, it puts the full path back on all of the pictures contained in it. If you are not paying attention this gets deployed to production pointing back to the staging area for those pictures that were in that web part, although they were never edited or changed in any way.

Has anyone seen this before? Is there a setting or something that can be changed to stop this from happening?


View Complete Post

More Related Resource Links

Creating a user friendly alias for the website path


 Hello mates,

I am hosting my ASP.NET application on a Windows 2003 Server.

To browse to my application one has to type the path :http://serverName/applicationName

I want users to only type  applicationName on the web adress area.I believe there is something to do with alias and CNAME on DNS records that can adress this.

Any help on how to go about doing this will be highly appreciated.

Could not load assembly when Publishing website from Webmatrix using Razor and .cshtml


Could not load file or assembly 'System.Web.Mvc, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Mvc, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Stack Trace: 

[FileNotFoundException: Could not load file or assembly 'System.Web.Mvc, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.]
   Microsoft.WebPages.PreApplicationStartCode.Start() +0

[InvalidOperationException: The pre-application start initialization method 

ASP.NET website publishing

 I made an asp.net website with all the webforms,bin folders,etc, my question is how to publish the entire site and the SQL Server database I made to our host site. Please help me on this! I'm desperate!  I tried the copy website from the menu to transfer the file to our host site, and after transfering, i typed the address in the address bar of IE browser, but a download file window appears instead of the webpage. It's getting me crazy!!! >____<  PLEASE...help!!!!

Sharepoint 2010 Building publishing (Internet facing) website

Is there documentation on how to create Publishing site example step by step, Including contents, Documents sharing content between websites (like news). For some reason I have not finding any documentation. Any pointers is greatly appreciated. Thanks Vee    

Publishing Website



I created a web project and am checking the new features in asp.net 2.0. Now having the VS Standard Edition i published the site and it generates many .dll files in the bin folder with randomly generated characters suffixed to them.

Well after publishing the site works fine. Now if i update say a particular page, or a code behind file, what exactly do i need to do to update the change on the website.

Do i need to republish the whole site? Hope NOT :)



uploading images,images save in a folder , path will save in xml file.


Hello ,

            I am new to xml , i doing that images are save in a folder on upload , the path of the image file is save in xml file .

how i can add path in xml file dynamically. When uploading image dynamically created a folder to it and images are save in that folder.

Please guide me , give an idea . 


problem publishing website in VS2008 - destination site keeps asking for id/password



I have a simple website and can publish it locally to my localhost as the default website.

However, when I try and publish to a different server, VS2008 keeps asking me for the servers id/password.

I have published successfully bwefore to this server from a Windows XP PC running VS2008.

Only difference is that I am now running my VS2008 on Windows 7.

Has anyone else had this problem?


Info Path Publishing Help


I am very new to InfoPath. So I purchase book InfoPath® with SharePoint® 2010 HOW-TO and Started Reading. I am on Chapter 2 where they show how to design InfoPath form, then  they show submitting form then they show Publishing Form. Here I am got stuck. I can submit form from InfoPath itself and it will submit to document library but when I go to document library form will not open and it gives errors. Then as per book when I click on add new document infopath form should open but it is not opening form that I created.


I forget to tell u that my SharePoint is installed on remote PC which is on my network only.  


Kindly somebody help me to solve my problem.  

Publishing SQL Server Database using Publishing Wizard : Tips & Tricks

We can use SQL Server Publishing Wizard to deploy our local Database to remote hosting server/production server.This feature is available in SQL Server 2008/VWD 2008.

Below is the complete step by step guide of this process.

Images in WPF

How to create a Thumbnail of an Image. How to automatically crop an image. The following method allows you to automatically crop an image to it's content.

Reading and Writing Images From a Windows Mobile Database using UltraLite 10(C#)

Periodically I get a request for information on how to read and write binary data to a database running on Windows Mobile. If you search the Internet you can typically find examples that are available on Windows Desktops or allow you to read and write to a local file system. The problem is that it can take a bit of work to get this code to work on Windows Mobile accessing a database.

Ultimately you might be asking, why would I want to store and image in a database? Well in an environment where you synchronizing data between a local mobile database and a consolidated (central) database this can be extremely useful. Imagine if an insurance adjuster went to an accident scene, took a picture of a damaged car, loaded it into his Windows Mobile database and then replicated that image up to the Insurance headquarters for approval. All of this could be done in a very short period of time when using images in the database. Another good example might be a doctor who was waiting for a patient chart to become available. If you could store the image in a database this chart could be sent down to the doctor's device once it became available.

For this article I am not going to get into how to synchronize the images to and from a remote and central database as this is typically fairly straightforward when using a data synchronization technologies like MobiLink

Save images to SQL CE

Storing binary objects (such as image, office document etc.) into database is a little cumbersome when it comes to retrieval. Hence the most commonly accepted way is only store the file path in the database, and to store the documents on a file share.

Store and Display Images from MS Access Database Using C#

There is only the difference of coding syntax to stream the binary data of image content type to upload it into MS Access Database using C#/VB in ASP.Net 2.0

Namespaces required:-
using System.Data.OleDb;

OleDb is used to connect the web site forms with MS Access Database using Microsoft.Jet.OLEDB.4.0

Open File Print File Excel

Batch print many Excel files without having to open each one at a time. Quickly print mass amounts of xls files at once with this program. You must have Excel installed on your machine..

The Free Barcode Creator produces barcode images one at a time, and allows easy saving to a file or

The Free Barcode Creator produces barcode images one at a time, and allows easy saving to a file or pasting into an application. 2D versions are also available:

Virtual Path Problem


 I get the following error on last line below (working on remote host): 'E:\web\sfcascom\ls_admin/uploads/images/001.JPG' is not a valid virtual path,

Note that the slashes go in different directions

I've tried a number of things but nothing seems to work. Thanks-


Imports System.Drawing
Imports System.Drawing.Drawing2D
Imports System.Drawing.Imaging
Imports System.Web.UI.WebControls

Imports System.Drawing.Imaging.ImageCodecInfo
Partial Class Protected_imageupload
    Inherits System.Web.UI.Page
    Private Sub btnUpload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnUpload.Click
        ' Initialize variables
        Dim sSavePath As String
        Dim sThumbExtension As String
        Dim intThumbWidth As Integer
        Dim intThumbHeight As Integer
        Dim sFilename As String = ""
        ' Set constant values
        'sSavePath = "images/"
        sSavePath = Server.MapPath("~/") + "ls_admin/uploads/images/"

        sThumbExtension = "_thumb"
        intThumbWidth = 160
        intThumbHeight = 120

        ' If file field isn?t empty
        If FilUpload.PostedFile IsNot Nothing Then
            ' Check file size (mustn?t be 0)
            Dim myFile As Http

Resources for soup-to-nuts of website development lifecycle



 I'm looking for a website, or book, or some resource that can lead me down the path from website design to implementation/deployment. I know that covers a ton of material, but I am really looking for the bullet points, or high-lights, to make sure that I think of everything. I am mostly fuzzy on security measures and deployment since I haven't been involved in those aspects before.

Background:  I have been a programmer for many years, and with a little over 3 years' experience coding websites in vb.net/asp.net with sql server. Due to recent restructuring/layoffs at our firm, I find myself in the position of lead IT person - I'm feeling a bit underqualified but I feel this is my chance to work hard and step up to it. I'm very good at vb.net, master pages, css, asp.net, sql server. I'm worried that the person who was the lead before was doing a bunch of stuff that I'm not aware of...so I need to start learning more than just the code. I don't need lessons on how to code anything...I need to learn how it all gets put together - the next step up.

thanks for any suggestions!

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend