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

Post New Web Links

The file coloredMenuItems.sitemap required by XmlSiteMapProvider does not exist.

Posted By:      Posted Date: September 24, 2010    Points: 0   Category :SharePoint

Hi all,

I'm seeing this exception (InvalidOperation Exception from XMLSitemapProvider - trace below) every time I try and access my site. It has worked in the past and this error has just materialised recently, after googling around I see a lot of things referring to permissions on the sitemap file, i've used search to find every occurence of the sitemap on my PC and set 'Everyone' to 'read and execute' and I still have the same issue, I have recycled the app pool and redeployed the site multiple times since I set the permissions.

I have an entry in my web.config:

<add name="ColoredMenu" siteMapFile="_layouts/sitemap/coloredMenuItems.sitemap" type="System.Web.XmlSiteMapProvider" securityTrimmingEnabled="false" />

Is there anything i'm missing? Anything else I could try? I've been toying with this for quite some time and i'd really like my development environment back! >)

Thanks in advance,



Stack Trace:


[InvalidOperationException: The file coloredMenuItems.sitemap required by XmlSiteMapProvider does not exist.]

View Complete Post

More Related Resource Links

URL routing with a dynamic .sitemap file

Hi,I've implemented URL routing now I've upgraded to .NET 4 following http://weblogs.asp.net/scottgu/archive/2009/10/13/url-routing-with-asp-net-4-web-forms-vs-2010-and-net-4-0-series.aspx.The only problem I've encountered is with the .sitemap file. If I put, for example: <siteMapNode url="~/recipes/Starters" title="Browse Starters"> it renders correctly. However, I need to do something like this: <siteMapNode url="~/recipes/{category}" title="Browse {category}"> - i.e. dynamically giving a titleOr, I'd settle for something like this: <siteMapNode url="~/recipes/*" title="Browse Recipes"> - i.e. covering all recipe pages Has anyone found a nice solution to this?

problem with sitemap schema 'xsi:schemaLocation' in XML file creation

SqlConnection conn = new SqlConnection(connStr); conn.Open(); string sql = "select top 10 catnum,cast(case when isnull(onhand,0) < 5 then 0 else round((onhand/2),1) end as int) as onhand from dbo.V_OnHand with (nolock)"; SqlCommand cmd = new SqlCommand(sql, conn); XmlDocument doc = new XmlDocument(); XmlDeclaration dec = doc.CreateXmlDeclaration("1.0", "UTF-8", null); XmlElement rootNode = doc.CreateElement("inventory"); doc.InsertBefore(dec, doc.DocumentElement); rootNode.SetAttribute("xmlns", "http://seller.marketplace.tests.com/inventory/v1"); rootNode.SetAttribute("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance"); rootNode.SetAttribute("xsi:schemaLocation", "http://sellersupport.domain.test.com/test1/s/schema/inventory/inventory-xml-feed-v1.xsd"); doc.AppendChild(rootNode); XmlElement fbm = doc.CreateElement("inventory"); doc.DocumentElement.PrependChild(fbm); SqlDataReader rdr1 = cmd.ExecuteReader(); while (rdr1.Read()) { XmlElement item = doc.CreateElement("item"); item.Set

The cabinet file 'STS.CAB' required for this installation is corrupt and cannot be used


I'm trying to install Microsoft SharePoint Server 2010 Enterpise and I'm getting that error almost right away after I enter the serial number.
I tried to burn DVD, copy files on the local disk, mount original ISO file as a disk.. Nothing did not work.
Please advise.

Thank you,

SSIS File Does not exist or do not have permission


Hi there,

below is the description of  SSIS package,

Step 1 : Creating one excel file in step one using Script task

Step 2 : Uploading data to this newly created Excel file using Dataflow task.

Step 3 : Mailing the Excel file to user

Now the first 2 steps completes successfully but at step 3 it fails with following error:

[Send Mail Task] Error: Either the file "FileName" does not exist or you do not have permissions to access the file.

I think the file is locked with step2 how can i remove the lock?

Thanks in advance!!!

Cannot upload file : 'You must specify a value for the required field'



In any web app, any Sharepoint site, and any document library in my farm (WSS 3.0, Sharepoint Designer 2007), I can't upload any file :

I can select my file in my hard drive with the browse button, but when I click OK button, I get this message :

'You must specify a value for the required field '

I think it's a required field which is hidden : I found 2 required fields, description and name (name is the file path so is mandatory). Changing description's required property didn't solve the problem.

I made a lot of change in a lot of file such as customization and configuration.

Replacing upload.aspx and application.master files with files from a working farm didn't solve the problem too...

However I don't have any problem when adding attachments in announcements ...

Having a Sharepoint site where you can't upload any file in a library is a big problem and I don't find any solution !

Thanks in advance.

Trying to write google video sitemap xsd file


I'm trying to write a gogole video sitemap xsd file, to auto generate video sitemaps.

There is a prefix for the video section <video:video> that I can't seem to get. I get <tns:video> instead

I think it's a namspace issue or I need to add a prefix?

This is my source

<?xml version="1.0" encoding="utf-8" ?>
<!--Created with Liquid XML Studio - FREE Community Edition (http://www.liquid-technologies.com)-->
<xs:schema elementFormDefault="qualified" targetNamespace="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xs="http://www.w3.org/2001/XMLSchema">
            XML Schema for Video Sitemap files. Last Modifed 2010-10-05
  <xs:element name="urlset">
        <xs:element minOccurs="0" maxOccurs="unbounded" name="url">

File do exist in the output directory, But always FileNotFound Exception


Hi all,

I have a solution with several projects, some of them are C# whlie others are C++.net. the c++ projects are used as reference libraries for the c# projects.

the solustion can be complied and run well in 32-bit system, but when i built it in 64-win7, I  change all project to win32 platform.  when i managed to build the solution, and try to run  from one of the c# form appliction project which depend on on c++ project, there alway throw fileNotFoundException as follow:

System.IO.FileNotFoundException was unhandled
  Message=Could not load file or assembly 'CvAdapter.dll' or one of its dependencies. The specified module could not be found.
       at GraphicResarch.DisplayForm..ctor()
       at GraphicResarch.Program.Main() in D:\Develop\Code\AIStudio\AISeeStudio\GraphicResarch\Program.cs:line 18
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)

The file '/UrlRewrite.aspx' does not exist


Here's the back-story:

We have a big old app that's been recently migrated to .net 4 (from 3.5). While we're doing this we decide to move it to a new, more powerful server, because we expect a lot of growth in the near future. (server is running windows server 2008 r2)

With the .net 4 version on the new server we keep getting this error saying urlrewrite doesn't exist. Any ideas or aditional info I should give?

Here's what gets logged:

The file '/UrlRewrite.aspx' does not exist.


Target site
System.Web.Compilation.BuildResult GetVPathBuildResultInternal(System.Web.VirtualPath, Boolean, Boolean, Boolean, Boolean, Boolean)

Stack trace
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossAp

Server error: is checked out or locked for editing by ... but page does not exist


I tried to rename a page in the source variation of a Publishing Site using Site Content and Structure tool, let's call it "newpage". This threw an HTTP 500 error. I then tried to rename it in SharePoint Designer. I got two message prompts, the first said:

"A file with the name Pages/newpage.aspx already exists. Do you want to replace this file?"

There is no file of that name in the Pages list in either the source or target variation. I said "Yes" and got the following error:

"Server error: The file <path>/newpage.aspx is checked out or locked for editing by ."

No user name was given in the message. I can successfully rename the page in the target variation to have the new name.

I also cannot create a new page in the source variation called newpage.aspx, I get an error saying that there is already a page of that name ... but there isn't. I have cleared the site and site collection recycle bins.

fileupload control-file exist



  I need some help to figure out how to check if a file already exist in the db. My mind is froze. I am using sqlserver 2005, vb.net and vs 2008, not that matter for this quesiton, but in case if you deem necessary.  I have an fileupload control and all I am trying is to check if the uploaded file already exist in my webserver or db. I am saving the file to the file directoy but I have the file name stored in the db. So I want to check the file name in the db for duplication. If it exisist I will not save the details. How do I do this.

This is my code  now  - which I know is need correction. Please help, help help....



 Dim conn As New SqlConnection(resumeDatasource.ConnectionString)
        If Exists("select EmailAddress,IPAddress,fleName from Resume where fleName =" & " 'strflename'") Then

            MsgBox(" file already exisist", MsgBoxStyle.OkOnly)

            MsgBox(" than

Error The file '/_layouts/PageEditforTask.aspx' does not exist. at System.Web.UI.Util.CheckVirt


Error  The file '/_layouts/PageEditforTask.aspx' does not exist.   at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)


this coccurend when i was creating a workflow this contenttype in sharepoint 2007 using visual studio 2008

File Splitter in .Net

I love to do utility programs in .Net. And this is one of them. As I was playing with JSplit (a free file splitter program), I wondered if I could do it in .Net. The framework supports file operations like reading files in bytes and creating them. It is indeed easy to do file operations in .Net Basics on File operations

Upload Multiple File using JQuery in asp.net

In this article I have explained how to upload multiple files using file upload control. I have used jQuery plugin for uploading multiple files.

I have also explained how to check for file type, file maximum size limit using jQuery & also using server side validation code.

Creating Excel file from C#

I used below coding for create a excel sheet.I got from on web site.
In below coding there is no problem.Its create the excel file.If i run second time,its ask to overwrite the current excel file.If I said "Yes" then it ok ,but If I select cancel button,its generate the Error message.The exception is

Upload a File to a SharePoint Document Library - Part I

The following helper class demonstrates a few techniques that allow documents to be uploaded to a SharePoint document library programmatically without using the API or a custom web service. You don't need to specify a document library name, and it will create any folders specified in the URL as required. File meta data will be updated if any properties are passed.

SmtpClient and Locked File Attachments

Got a note a couple of days ago from a client using one of my generic routines that wraps SmtpClient. Apparently whenever a file has been attached to a message and emailed with SmtpClient the file remains locked after the message has been sent. Oddly this particular issue hasn't cropped up before for me although these routines are in use in a number of applications I've built.

How to call an .exe file in .net

Sometimes a developer has to call an EXE from another EXE. While calling EXE there can be a requirement to pass parameter.
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