Hi,
I am attempting to add a Map to an existing web app. I debugged the Map display and code in another smaller test app and I now trying to drop the Map code (.aspx and .cs) into the bigger app.
It appears the Map control is trying to save a configuration file and having access denied.
Some of the things i have tried:
* open up the directories from the root to bottom level so that anyone can write files (and i tested it from Notepad).
* Removed all the asp.net temp files in Windows\...
* reboot and re-start apps, IDEs, IISs, etc.
* comment out the Map occurance and backing code and it works OK (obviously no Map :-) so I know the problem only occurs when the Map is trying to render.
* Created all sorts of breakpoints in the page like at OnPrerender, OnLoad, etc. and they provide no help. When the PageLoad method exits, the browser then displayus the error message.
First: what is Map trying to do here?
What is in the .tmp file it is apparently trying to create
Any ideas on how to proceed from this?
I get the following error page when trying to load the page with the map in it:
Any help?
TIA,
paul
--- caution: code follows
Server Error in '/FieldCheckSite' Application.
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: An error occurred loading a configuration file: Access to the path 'C:\Dev\cvtFieldCheck\2.1.1\Presentation\Web\FieldCheckSite\qj6yznga.tmp' is denied.
Source Error:
[No relevant source lines]
Source File: C:\Dev\cvtFieldCheck\2.1.1\Presentation\Web\FieldCheckSite\web.config Line: 0
Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.4028
[UnauthorizedAccessException]: Access to the path 'C:\Dev\cvtFieldCheck\2.1.1\Presentation\Web\FieldCheckSite\qj6yznga.tmp' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
at System.CodeDom.Compiler.TempFileCollection.EnsureTempNameCreated()
at System.CodeDom.Compiler.TempFileCollection.AddExtension(String fileExtension, Boolean keepFile)
at System.CodeDom.Compiler.TempFileCollection.AddExtension(String fileExtension)
at System.Configuration.Internal.WriteFileContext..ctor(String filename, String templateFilename)
at System.Configuration.Internal.InternalConfigHost.StaticOpenStreamForWrite(String streamName, String templateStreamName, Object& writeContext, Boolean assertPermissions)
at System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.OpenStreamForWrite(String streamName, String templateStreamName, Object& writeContext, Boolean assertPermissions)
at System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.OpenStreamForWrite(String streamName, String templateStreamName, Object& writeContext)
at System.Configuration.Internal.DelegatingConfigHost.OpenStreamForWrite(String streamName, String templateStreamName, Object& writeContext)
at System.Configuration.UpdateConfigHost.OpenStreamForWrite(String streamName, String templateStreamName, Object& writeContext)
at System.Configuration.MgmtConfigurationRecord.SaveAs(String filename, ConfigurationSaveMode saveMode, Boolean forceUpdateAll)
[ConfigurationErrorsException]: An error occurred loading a configuration file: Access to the path 'C:\Dev\cvtFieldCheck\2.1.1\Presentation\Web\FieldCheckSite\qj6yznga.tmp' is denied. (C:\Dev\cvtFieldCheck\2.1.1\Presentation\Web\FieldCheckSite\web.config)
at System.Configuration.MgmtConfigurationRecord.SaveAs(String filename, ConfigurationSaveMode saveMode, Boolean forceUpdateAll)
at System.Configuration.Configuration.SaveAsImpl(String filename, ConfigurationSaveMode saveMode, Boolean forceSaveAll)
at System.Configuration.Configuration.Save(ConfigurationSaveMode saveMode)
at ThinkGeo.MapSuite.WebEdition.Map.x1811944f4031e215()
at ThinkGeo.MapSuite.WebEdition.Map.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.ticketimage_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\fieldchecksite\e19a8e7c\46f2af32\App_Web_9_n7lomu.5.cs:line 0
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
-->