Configuration :: Replacing System.web/sitemap With WDP?
Mar 18, 2011
Is it possible to replace the sitemap section of web.config using the replacement functionality of Web Deployment Projects? I have tried doing this in every configuration I can think of and I get a WDP00002 missing section error every time.Web.config file section replacement command: system.web/sitemap=sitemap.configBoth .config files are in the root of the project and no matter how I set up the sitemap.config file I still get this error.
View 1 Replies
Similar Messages:
Sep 20, 2010
I have a System.Web.UI.WebControls.Xml control (Xml1) in a webforms app that I have upgraded from .NET 2.0 to .NET 4.0
I am getting two warnings from the code-behind page that I'd like to do something about.
[code]....
'Public Property Document As System.Xml.XmlDocument' is obsolete: 'The recommended alternative is the XPathNavigator property. Create a System.Xml.XPath.XPathDocument and call CreateNavigator() to create an XPathNavigator.
View 3 Replies
Jun 22, 2010
I have 3 dll's compiled and put inside the bin dir of a website. They were referenced some time ago on a different computer with their respective source code.
I don't have the original source code for this version (all 3 dlls are like one app. They use each other functions) but I do have a newer version.
What I wanted to do was to completely remove any reference for the old version and just add a reference to the new version dlls. I tried:
Rightclick on dll---> delete , tried: look inside project file,sln, anywhere - web.config etc. to find the reference ..... Nothing. The old dlls come back after I recompile.
One of the new dlls has a different name than the same one in the older version. When I replace the older versions with the new ones and add the third dll with the different name and delete the older one and recompile. The older one just comes back from nowhere, and I get an error that I have some functions running both on the older dll and the newer one and it won't compile.
How do I completly remove the older version so I can start over with the new one?
View 2 Replies
Mar 10, 2010
I am getting this error on a website. does that mean the server is not competible with asp.net 3.5
Configuration Error
Description:An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Unrecognized configuration section system.serviceModel.
Source Error: [Code]....
Line 236: </assemblyBinding>Line 237: </runtime>Line 238: <system.serviceModel>Line 239: <serviceHostingEnvironment aspNetCompatibilityEnabled="true" />Line 240: </system.serviceModel>
Source File: D:Inetpubvhostsmuratmalli.comhttpdocsweb.config Line:
238
View 2 Replies
Jan 22, 2010
Can anyone tell me the differnce between
System.web.httpcontext.current.application["tag"]
or
System.Configuration.Appsettings["tag"]
View 2 Replies
Feb 28, 2011
I want to write a sitemap.xml to the root folder of my website automatically every month. Ofcourse I havent given the IIS_IUSRS group full permissions on the root folder of my website or on sitemap.xml
But what permissions should I give to which usergroup on which folder/file in order to have my ASP.NET application update the sitemap.xml from within the asp.net web application?
View 6 Replies
May 14, 2010
Here is my connection string...?? I cannot for the life of me find out where I'm missing a >, or where there is an invalid < .. the debugger directs me here....
<connectionStrings>
<add name="dbnameremoved" providerName="System.Data.Sql.Client" connectionString="server=dbserverremoved;database=dbremoved;uid=username;pwd=password" />
</connectionStrings>
View 2 Replies
May 11, 2010
We are getting this error message when we try to click the link in the menu to go to Report Server:
Source Error:
Line 31: <siteMapNode title="Reports" description="Reports">
Line 32:
Line 33: <siteMapNode url="https://ffxsqldgc01.ffx.co.fairfax.va.us/Reports/Pages/Folder.aspx?ItemPath=%2fDPZ&ViewMode=List" title="View Reports"
description="Click here to view the reports" />
Line 34: </siteMapNode>
Line 35:
I tried to add after the &, as it was suggested on one of the forum but it did not work. Any other ideas.
View 5 Replies
Aug 2, 2010
I've been having some production runtime errors that I don't fully understand. This has happened to us on a couple different ASP.NET 4.0 Web Sites (shudders - yes, I know - we're porting it to MVC but that's taking some time).
First of all, we have never been able to reproduce this issue in development/QA environments. Secondly, upon deployment, the issue seems to be non-existent. Sometimes the issue manifests within a day or two of deployment and other times the deployment will be live for a month without it manifesting at all. However, once it manifests, then ANY page viewed under the web site causes the error. Lastly, this problem seemed to only come up once we migrated to .NET 4.0. We started at 2.0, a year ago upped to 3.5, and recently upped to 4.0 with this solution and most child projects.
The error:
Could not find the sitemap node with URL '~/Default.aspx'.
A simplified version of our sitemap (with some names changed and uninteresting nodes removed) is as follows:
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0">
<siteMapNode roles="*" title="EG">
<siteMapNode url="~/../SM/Default.aspx" title="Welcome" description="" roles="*" />
<siteMapNode url="~/../SD/Default.aspx" title="SD" description="" roles="*" />
<siteMapNode url="~/../SMD/Default.aspx" title="SMD" description="" roles="*" />
[code]...
I have confirmed in all of the SiteMaps that there is a node with url="~/Default.aspx" with roles="*" (which includes public/anonymous access), so I am very confused as to why this problem occurs.
SiteMap does not have a node for Default.aspx. All of them do. SiteMap's Default.aspx node is not accessible for security reasons to the current user/role. They're all accessible to anonymous users and this problem even exists for super admin users. Passed-in URL contains querystrings (Default.aspx?abcd). I don't know if this is a problem (I sure would hope not) but once the problem manifests itself, I can handwrite the URL with no querystrings and the problem still exists.
SiteMap changes. It doesn't Service's permissions to the sitemap file. The sitemap works perfectly fine after a deployment, so unless permissions are changed in a way that IISRESET fixes, then this is not an issue. The worker process becomes globally corrupt. I don't think so. We have ~12 web sites all in the same app pool and the problem always stays confined within a single web site. Also, we have yet to have this happen to more than a single web site at a time although it has manifested itself in 4 different ones so far.
View 1 Replies
Jan 25, 2011
I've got a custom menu navigation built from a web.sitemap file, the first line of this would be something like:
SiteMapNodeCollection topLevelNodes = SiteMap.RootNode.ChildNodes;
However, now I want to be able to create multiple web.sitemap files, and then programmatically determine which web.sitemap file to use, but I can't seem to find out how to do this. I'm assuming I could either create one custom SiteMapProvider that can perform the logic to determine which web.sitemap file to load, or I have multiple providers, each one with the SiteMapFile property set to a specific *.sitemap file, and then switch providers programmatically before I access SiteMap.RootNode.
View 2 Replies
Oct 19, 2010
currently, I am working on the project where I have to configure Application on IIS7 with network drive and doing this I am getting the error regarding security. Let me explain in detail. We have two production server, both having Windows 2008. now one server acting as the storage server and other server will work as web server which having the IIS (here IIS7). Now, I have to deploy the application on the storage server and in web server I have to configure the application in IIS with the path of network drive (here network drive means path of the folder at storage server). At here I had provide the full path like \ servernamedrivename$foldername, and also provide the credential at "connect at" button.Now when I open the page it will display the page but with the following error.
Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. Now new question that Credential is proper or not? Here my both production server having the user : username1 and password: Password1 but the domain is different. So, what I do that enter only the username1 in user name and password1 in password box.
View 1 Replies
Oct 6, 2010
I am creating a CacheDependency on the file that my SiteMap provider uses. I would like to get the name of the file from my sitemap provider instead of hard coding it. Is there a way?
Edit
Duh, I forgot to mention: XmlSiteMapProvider that comes with ASP.NET
Edit 2
Reflector shows a private member field called _filename that isn't exposed in any way as far as I can tell.
View 1 Replies
Jun 15, 2010
why this error is coming...this error is cmng after i have re-installed VS 2005 and its framework.
System.ServiceModel.Diagnostics.DiagnosticTrace..ctor(System.ServiceModel.Diagnostics.TraceSourceKind, System.String, System.String)
Description:An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.MethodAccessException:System.ServiceModel.Diagnostics.DiagnosticTrace..ctor(System.ServiceModel.Diagnostics.TraceSourceKind, System.String, System.String)
Source Error:[Code]....
Stack Trace: [Code]....
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
View 1 Replies
Nov 4, 2010
How would I programatically reference a .sitemap file that is not the root web.sitemap file? I have a file called research.sitemap in a folder a level under root. I want to refernce this file in my code behind like his: SiteMapNode m1 = SiteMap.RootNode (but since this isnt web.sitemap in the root, I dont know how to get access to it).
View 1 Replies
Mar 25, 2010
I have a second level node that goes onto two lines. The first line indents 15px as is set by the class for node level 2. The seond line kicks back to the same level as 1st level nodes. Here's what I mean:
Parent Node
Second node
line 2 of second node
I want it to be like this:
Parent Node
Second Node
line 2 of second node
View 4 Replies
Feb 24, 2011
I am getting the error Configuration System Failed to Initialize , i have two projects inside my solution and Listed belwo is the app.config for each of them
Project-1 Data Layer App.config
[Code]....
View 1 Replies
Mar 18, 2011
When I am running the web application in Visual studio 2010, i am getting the following error for the dll, Interop.Encryption.dll. I am not getting any compilation errors. Given reference to the dll Inerop.Encryption.dll in the web project.
System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {DA173F55-2740-4FF5-BC48-4A594AFF3579} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
View 2 Replies
Aug 22, 2010
I built a cms system which use the aspnetdb and I made few changes on that database.I use it for login and registeration only , but today when I uploaded all the files , I realize that my hosting company use a prefix for the database name for example db1010101_*** so , is it ok to rename the database or I should create my own ?
btw I build my database on mssql 2005 and the hosting is 2000 so I will have some troubles :
View 1 Replies
Nov 9, 2010
In our web site project we need to reference the assembly System.Data.DataSetExtensions, 4.0.0.0. So we added a reference to it in the webconfig, but we are getting the following error on build:
error CS0012: The type 'System.Data.TypedTableBase`1<T0>' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data.DataSetExtensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. We added the dll version 4.0.0.0 in the bin folder of the site just in case. At first in gac there was only version 3.5.0.0 of this dll, but we installed the 4.0.0.0 version via gacutil.exe. Now when we check with "gacutil.exe /l" the correct assembly version (4.0.0.0) appears to be loaded in gac, but we can not see it in the windows explorer in windows/assembly folder (there is only version 3.5.0.0). And we are still getting the same error. Obviously we missed something, but the question is what ?
View 1 Replies
Oct 14, 2010
I have a website that I have run for years running a custom built CMS. It has had no problems ever. I decided to create a demo (temporary url) of the CMS using the exact same website. Only people I give access to would be able to login and change it, so it basically is not in use for the most part.
I tried this demo site the past few days, and I noticed that I kept getting System.OutOfMemoryException errors. I would wait for an hour or so, then it would work. Next day, same thing.
What could explain this? 2 exact same websites....one that is used all the time (no memory issues), and one that is hardly ever used (memory issues). Doesn't really make sense to me.
View 6 Replies
Dec 24, 2010
I have to design asp.net application which has to work on kiosk system. I don't know anything about the kiosk system .so, whether the asp.net application will work on the kiosk system are not I don't know. So any ideas and any sample examples will be very useful for me to start thanking on those lines.
View 1 Replies
Mar 8, 2010
System.Web.Compilation.CompilationLock' ERROR
View 2 Replies
Apr 30, 2010
I'm migrating a piece of functionality from my App_Code directory to a separate project that's going to build a class library to be referenced by my web app. One of my classes in the App_Code piece inherits form System.Configuration.ConfigurationSection, like so:
Imports System.Configuration
Imports System.Web.Configuration
Imports Microsoft.VisualBasic
Namespace P10.WebStore
#Region "WebStore Section"
Public Class WebStoreSection
Inherits ConfigurationSection
I absolutely cannot get the project to recognize ConfigurationSection as a class. Nothing I google about this class mentions having to do anything special to use it. Is it because this is a class library and not an .exe or somethign?
View 1 Replies
Sep 6, 2010
Is there any way to read configuration section group of IIS7 by using WebConfigurationManager o anything?
I tried to read the authorization section but WebConfigurationManager.GetSection() returns an 'IgnoredSection' instance.
This is what my code looks like...
authSection = WebConfigurationManager.GetSection("system.webServer/security/authorization", HttpContext.Current.Request.Path)
View 1 Replies
Mar 26, 2011
The file system I'm publishing to is a not hosted by me, but by my university. IT here offers students their own web directory to host a website. My intention is to use it to host projects for classes and demo them for my professors. You can enter in a specific link in any browser to go to this website and view it as long as there is a file named 'index.html' in the directory with some presentable html code.
So here's the problem. I want my website to be written using ASP.NET and when I use VS2010 to publish my ASP.NET website to the 'File System,' I cannot simply open up my browser, type in the normal link, and have it display. It just shows up as a list of files in the directory and I can see all my source code for the web site
View 2 Replies