Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 138845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T07:19:45+00:00 2026-05-11T07:19:45+00:00

I’ve got a strange scenario: I’ve got a webpart that calls into a dll

  • 0

I’ve got a strange scenario:

I’ve got a webpart that calls into a dll in the GAC, which is trying to read a section from web.config file. This works fine normally, but under SSL it fails, saying it does not have access to the path (of the config file). However, it’s under the mosssvc account, which has full control over the webconfig file.

Both the 80 web.config file and the 443 web.config file have the same entries the dll is looking for, and mosssvc has full control on both configs.

I have tried elevating the trust level on 443 to full, which didn’t work.

Any ideas, or anything you can think of that I can try?

EDIT: I should have been more clear: the SSL site has already been created and works fine until the one method in the GAC’d assembly tries to examine the web config.

The full error message is:

Event Type:        Warning Event Source:    ASP.NET 2.0.50727.0 Event Category:                Web Event  Event ID:              1310 Date:                     2/9/2009 Time:                     1:44:49 PM User:                     N/A Computer:          XXXXX Description: Event code: 3008  Event message: A configuration error has occurred.  Event time: 2/9/2009 1:44:49 PM  Event time (UTC): 2/9/2009 9:44:49 PM  Event ID: 2d7180cdfbb34acfa6c61f95df12ddde  Event sequence: 26  Event occurrence: 1  Event detail code: 0   Application information:      Application domain: YYYYYYYYYYYYYYYYYYYYYYY     Trust level: Full      Application Virtual Path: /      Application Path: C:\Inetpub\wwwroot\wss\VirtualDirectories\8443\      Machine name: XXXXXXXX   Process information:      Process ID: 5168      Process name: w3wp.exe      Account name: XXXXXXXXX\mosssvc   Exception information:      Exception type: ConfigurationErrorsException      Exception message: An error occurred loading a configuration file: Access to the path 'C:\Inetpub\wwwroot\wss\VirtualDirectories\8443\web.config' is denied. (C:\Inetpub\wwwroot\wss\VirtualDirectories\8443\web.config)   Request information:      Request URL: https://XXXXXXX:443/training/Pages/smartregister.aspx?c=383      Request path: /training/Pages/smartregister.aspx      User host address: 64.34.27.186      User:       Is authenticated: False      Authentication Type:       Thread account name: XXXXXXX\mosssvc   Thread information:      Thread ID: 10      Thread account name: XXXXXXX\mosssvc      Is impersonating: True      Stack trace:    at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)    at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors)    at System.Configuration.Configuration..ctor(String locationSubPath, Type typeConfigHost, Object[] hostInitConfigurationParams)    at System.Configuration.Internal.InternalConfigConfigurationFactory.System.Configuration.Internal.IInternalConfigConfigurationFactory.Create(Type typeConfigHost, Object[] hostInitConfigurationParams)    at System.Web.Configuration.WebConfigurationHost.OpenConfiguration(WebLevel webLevel, ConfigurationFileMap fileMap, VirtualPath path, String site, String locationSubPath, String server, String userName, String password, IntPtr tokenHandle)    at System.Web.Configuration.WebConfigurationManager.OpenWebConfigurationImpl(WebLevel webLevel, ConfigurationFileMap fileMap, String path, String site, String locationSubPath, String server, String userName, String password, IntPtr userToken)    at System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(String path)    at XXXXXXXXX.RegistrationHelper.RegisterStudents(Boolean sendEmail, String Time, String Title, String bFirstName, String bLastName, String bAddress, String bPostalCode, String bCity, String bTelephone, String bCompany, String bEmail, List`1 Registrants, Int32 courseDateID, String pType, String CCNumber_, String NameOnCard, String cExpiry, Double Discount, String DiscountCode, Double CostPerRegistrant, String PurchaseOrder)    at ASP.SmartEventRegistration.lnkSubmit_Click(Object sender, EventArgs e) in c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\CONTROLTEMPLATES\SmartEventRegistration\SmartEventRegistration.ascx:line 401    at System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e)    at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument)    at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)    at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)    at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)    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 Microsoft.SharePoint.Publishing.TemplateRedirectionPage.ProcessRequest(HttpContext context)    at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T07:19:46+00:00Added an answer on May 11, 2026 at 7:19 am

    try this, form Faranz Kan SharePoint blog on how to enable SSL in MOSS:

    1. Go to central admin –> Create or extend a new web application –> Create a new web application.
    2. Fill in the Web app, DB and App pool names as usual. Select yes to enable SSL on the web application. If you are using host headers for this web app, then enter those too. (Important: Make sure to set the port to 443, not 80).
    3. After the web application has been created, reset IIS and then open up IIS mmc. Scroll to the IIS website that MOSS just created for you and select the right SSL certificate from the available certificates (Ask your network folks to generate an internal or external SSL cert for you depending on whether this is a test or prod server). Important: Go to the Home Directory tab and click Advanced. Make sure you set the host header and the right IP for port 80. For SSL entries, select port 443 and the IP. (If you have multiple IP’s on the server, I usually pick one here for these entries). Click on the edit button for SSL entries and check the ‘Require SSL’ box. Also check ‘Require 128 bit encryption’ to make this more secure.
    4. Now go ahead and create your first site collection for this web app. MOSS will automatically create a new site collection for you and present you with a ‘https://..’ link upon completion. You should now have a SSL ready web app.
    5. By default, if you want multiple web apps using SSL on the same server
      • this does not work in IIS 6. If you want multiple MOSS 2007 Web apps to be SSL enabled, there are two ways of going about this. One way is to get as many IPs as you want SSL web apps for that web server and assign one IP per host header settings for port 80 and 443 under IIS Website properties –> Home Directory –> Advanced. The other option is to modify the IIS metabase to allow multiple SSL web apps on the same IP. Be careful with the second option and make sure you know what you are doing.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 123k
  • Answers 123k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer From Wikipedia The stdlib.h and stddef.h header files define a… May 12, 2026 at 1:01 am
  • Editorial Team
    Editorial Team added an answer That executable is a "Linux executable" - that is, it's… May 12, 2026 at 1:01 am
  • Editorial Team
    Editorial Team added an answer Your code as written doesn't compile. I've make some "assumptions"… May 12, 2026 at 1:01 am

Related Questions

I've got two legacy database tables, layouted in simplified manner like this: MASTER SLAVE
I've got a strange problem with SQL Server 2000, and I just can't think
I've got a strange problem with indexing PDF files in SQL Server 2005, and
I've got a strange thing happening with my app.config file. My ConnectionStrings section contains

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.