Small business starterkit deployment issues

Discussion in 'ASP General' started by Damian, Jun 15, 2006.

  1. Damian

    Damian Guest

    Has anyone on the team responsible for the smallbusiness starter kit every
    ran this thing on anything other than the Visual Studio Development Server.

    After spending time getting used to this kit and adding my pages to it (only
    pages no custom code), I tryed deploying it to my hosting provider. After
    having everything work fine under VS 2005, I can't even view any pages
    because I get this:


    Server Error in '/' Application.
    --------------------------------------------------------------------------------

    Security Exception
    Description: The application attempted to perform an operation not allowed
    by the security policy. To grant this application the required permission
    please contact your system administrator or change the application's trust
    level in the configuration file.

    Exception Details: System.Security.SecurityException: Request for the
    permission of type 'System.Security.Permissions.FileIOPermission, mscorlib,
    Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

    Source Error:

    An unhandled exception was generated during the execution of the current web
    request. Information regarding the origin and location of the exception can
    be identified using the exception stack trace below.

    Stack Trace:

    [SecurityException: Request for the permission of type
    'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0,
    Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
    System.Security.CodeAccessSecurityEngine.Check(Object demand,
    StackCrawlMark& stackMark, Boolean isPermSet) +0
    System.Security.CodeAccessPermission.Demand() +59
    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) +678
    System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access,
    FileShare share) +114

    System.Configuration.Internal.InternalConfigHost.StaticOpenStreamForRead(String streamName) +80

    System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.OpenStreamForRead(String
    streamName, Boolean assertPermissions) +115

    System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.OpenStreamForRead(String streamName) +7

    System.Configuration.Internal.DelegatingConfigHost.OpenStreamForRead(String
    streamName) +10
    System.Configuration.UpdateConfigHost.OpenStreamForRead(String
    streamName) +42
    System.Configuration.BaseConfigurationRecord.InitConfigFromFile() +443





    Apparently I don't have the proper trust levels (thats what the message
    says) to run this starter kit. Now my hosting provider isn't going to up my
    trust level, as it seems you guys recommend medium trust in a shared hosting
    environment anyway, so does anyone have any guidance on how to get this kit
    working in a medium (I'm assuming its medium it may be lower) trust
    environment?

    I've spent 4 days on this already so any help would be appreciated.
     
    Damian, Jun 15, 2006
    #1
    1. Advertising

  2. Hello,

    This group (microsoft.public.inetserver.asp.general) is for the issues on
    ASP/Visual InterDev. For smallbusiness issues, I suggest you may post in
    microsoft.public.smallbiz. You can have more experienced people there who
    may help on this issue.

    Thank you for the understanding!

    Luke Zhang
    Microsoft Online Community Support

    ==================================================
    When responding to posts, please "Reply to Group" via your newsreader so
    that others may learn and benefit from your issue.
    ==================================================

    (This posting is provided "AS IS", with no warranties, and confers no
    rights.)
     
    Luke Zhang [MSFT], Jun 15, 2006
    #2
    1. Advertising

  3. Damian

    Damian Guest

    "Luke Zhang [MSFT]" wrote:

    > Hello,
    >
    > This group (microsoft.public.inetserver.asp.general) is for the issues on
    > ASP/Visual InterDev. For smallbusiness issues, I suggest you may post in
    > microsoft.public.smallbiz. You can have more experienced people there who
    > may help on this issue.
    >


    Just to clarify I am not talking about small business server but the small
    business ASP.NET StarterKit (There is a set of these Perasonal, Commerce,
    Club, and SmallBusiness). My post has absolutely nothing to do with small
    business server.

    > Thank you for the understanding!
    >
    > Luke Zhang
    > Microsoft Online Community Support
    >
    > ==================================================
    > When responding to posts, please "Reply to Group" via your newsreader so
    > that others may learn and benefit from your issue.
    > ==================================================
    >
    > (This posting is provided "AS IS", with no warranties, and confers no
    > rights.)
    >
    >
     
    Damian, Jun 15, 2006
    #3
  4. Hello,

    I appologize if I misunderstood the question. Anyway, this group is still
    not a place for ASP.NET question, it is for old ASP and Visual InterDev.
    For ASP.NET issue, you may post in microsoft.public.dotnet.framework.aspnet
    or microsoft.public.dotnet.framework.aspnet.security, which are also MSDN
    managed group.

    Regarding the issue, if you need to allow your application to access files
    outside of the application's virtual directory hierarchy, you can create a
    custom policy file based on the Medium trust file, and then modify the
    FileIOPermission. For more details, you can refer to:

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html
    /PAGHT000020.asp

    But this also require the provider's assistance. I am not familiar with
    small bussiness starterkit, not sure if this can help. If there is any
    things I can provide, please feel free to let me know.

    Regards,

    Luke Zhang
    Microsoft Online Community Lead

    ==================================================
    When responding to posts, please "Reply to Group" via your newsreader so
    that others may learn and benefit from your issue.
    ==================================================

    (This posting is provided "AS IS", with no warranties, and confers no
    rights.)
     
    Luke Zhang [MSFT], Jun 16, 2006
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Stylus Studio
    Replies:
    0
    Views:
    404
    Stylus Studio
    Feb 17, 2006
  2. =?Utf-8?B?RGFtaWFu?=

    Small business starterkit issues

    =?Utf-8?B?RGFtaWFu?=, Jun 16, 2006, in forum: ASP .Net
    Replies:
    3
    Views:
    804
    Luke Zhang [MSFT]
    Jun 21, 2006
  3. Jeff

    newbie: DotNetNuke StarterKit

    Jeff, Aug 15, 2006, in forum: ASP .Net
    Replies:
    3
    Views:
    1,543
  4. Guatemala Balla
    Replies:
    3
    Views:
    380
    Guatemala Balla
    Sep 27, 2006
  5. GOOD LUCK GROUP
    Replies:
    0
    Views:
    400
    GOOD LUCK GROUP
    Apr 28, 2008
Loading...

Share This Page