iqworks
 Nuke Pro Posts:66

 |
| 11/08/2009 8:43 AM |
|
Hi, I cant find out what in the web.config gets updated when you update a module in this scenerio. Is there a place that tells of what gets updated in the web.config by the different parts of DNN ? thanks |
|
|
|
|
Joseph Craig DNN MVP Posts:11667

 |
| 11/08/2009 6:33 PM |
|
When you update a module, generally nothing is updated in web.config. If the module does need something changed, that will be specified in the module's manifest file. |
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
iqworks
 Nuke Pro Posts:66

 |
| 11/08/2009 9:40 PM |
|
Then why would I get an error about my web.config not having enough permissions to process when I clicked on the "Update Module". DotNetNuke.Services.Exceptions.ModuleLoadException: Access to the path 'C:\IQSys\iqDNN\web.config' is denied. ---> System.UnauthorizedAccessException: Access to the path 'C:\IQSys\iqDNN\web.config' 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, FileShare share, Int32 bufferSize) at System.IO.File.OpenFile(String path, FileAccess access, SafeFileHandle& handle) at System.IO.File.SetLastWriteTimeUtc(String path, DateTime lastWriteTimeUtc) at DotNetNuke.Common.Utilities.Config.Touch() at DotNetNuke.Modules.Admin.Features.ModuleEditor.UpdateModuleInterfaces(String BusinessControllerClass) in C:\IQSys\iqDNN\DesktopModules\Admin\Extensions\Editors\ModuleEditor.ascx.vb:line 248 at DotNetNuke.Modules.Admin.Features.ModuleEditor.UpdatePackage() in C:\IQSys\iqDNN\DesktopModules\Admin\Extensions\Editors\ModuleEditor.ascx.vb:line 321 at DotNetNuke.Modules.Admin.Extensions.EditExtension.UpdatePackage(Boolean displayMessage) in C:\IQSys\iqDNN\DesktopModules\Admin\Extensions\EditExtension.ascx.vb:line 187 at DotNetNuke.Modules.Admin.Extensions.EditExtension.cmdUpdate_Click(Object sender, EventArgs e) in C:\IQSys\iqDNN\DesktopModules\Admin\Extensions\EditExtension.ascx.vb:line 250 --- End of inner exception stack trace --- |
|
|
|
|
iqworks
 Nuke Pro Posts:66

 |
| 11/08/2009 9:41 PM |
|
not sure if you get notified on a quick message ? |
|
|
|
|
iqworks
 Nuke Pro Posts:66

 |
| 11/08/2009 9:42 PM |
|
Since I was on the screen where the friendly URL could be updated, could it be that it really was trying to update the manifest ? |
|
|
|
|
Joseph Craig DNN MVP Posts:11667

 |
| 11/08/2009 10:07 PM |
|
It does look like there is a permissions issue. Have you verified that the directory has full permissions for the .NET worker task?
Also, it would help to know what you were doing when this error occurs. |
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
iqworks
 Nuke Pro Posts:66

 |
| 11/09/2009 9:25 AM |
|
I selected the Module definitions page. I clicked on the pencil next to a module. I went into a particular controls information, came out of it.
At some point I hit "Update Module" as I stated previously, and then, got this error. One fix was to go into the web.config file properties through windows explorer. There i saw that it didnt have write checked, so I check it. That seemed to fix it. I really didnt like that fix. ASPNET belongs to the users group, I think I should of just added another group to it that had sufficient authority, but I didnt like that either. My other environments had ASPNET as a user and the web.config write unchecked. This was the only time I ever had THIS issue with my web.config. So, I am just wondering what DNN is trying to write to my web.config that its not telling me about ?
thanks as always, for your time
|
|
|
|
|
Joseph Craig DNN MVP Posts:11667

 |
| 11/09/2009 5:56 PM |
|
To run DotNetNuke correctly, the default ASP.NET worker task should have full access to all of the files. There are ways to run DotNetNuke in medium trust.
There are modules that will add keys or other data to web.config. Do you know which module did this?
|
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
iqworks
 Nuke Pro Posts:66

 |
| 11/09/2009 6:01 PM |
|
Yes, it was my custom guest book sample application.
Do you happen to know exactly WHAT in the web.config file gets updated in this scenerio ? |
|
|
|
|
Joseph Craig DNN MVP Posts:11667

 |
| 11/10/2009 6:48 AM |
|
Have you tried letting this run and see what gets updated? Save the existing web.config and then run a 'diff' on the two versions?
|
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
iqworks
 Nuke Pro Posts:66

 |
| 11/10/2009 7:06 AM |
|
diff ? never heard of it, will look it up. thanks |
|
|
|
|
Joseph Craig DNN MVP Posts:11667

 |
| 11/10/2009 7:09 AM |
|
The is a free WinDiff program that will compare two files and report the "differences" between them.
|
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
iqworks
 Nuke Pro Posts:66

 |
| 11/10/2009 7:27 AM |
|
Thanks again. I am wondering though, if there is documenation that tells you what, when and why DNN wants to update your web.config ? |
|
|
|
|
Joseph Craig DNN MVP Posts:11667

 |
|
iqworks
 Nuke Pro Posts:66

 |
| 11/10/2009 7:52 AM |
|
Got it, thanks again |
|
|
|
|