RE: Custom asp.net app error in Sharepoint 2007



Yes. It works in my XP development workstation, but not on the Windows 2003
Server sp2. I wonder if I am publish this project correctly. Do you
recoommend any clear steps on how to publish a custom asp.net app. on a
sharepoint site? Where should I create the virtual folder?

Thanks

AD

"Ameet Phadnis(e Tek Global Inc.)" wrote:

Does the Application work on its own?


--
Ameet Phadnis
Sr. Technical Consultant
e Tek Global Inc.
ASP Alliance Author Page: http://aspalliance.com/author.aspx?uId=44260


"AirDuster101" wrote:

Thanks. I set the trust level to medium now. I can see the files in the
directory in browser, but when I try to open any aspx files, I got this error
now,

Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set
to an instance of an object.

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:


[NullReferenceException: Object reference not set to an instance of an
object.]
PRUpdateWizard.Utility.SetThreadCulture() +211
PRUpdateWizard.UpdateWizard2.UpdateWizard2Page.OnInit(EventArgs e) +194
System.Web.UI.Control.InitRecursive(Control namingContainer) +321
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +692




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET
Version:2.0.50727.210

Any suggestion?

Thanks
AD




"Ameet Phadnis(e Tek Global Inc.)" wrote:

Go to Web.config file and set the Trust level. You can also create your own
trust level config file and add it to the web.config section.

--
Ameet Phadnis
Sr. Technical Consultant
e Tek Global Inc.
ASP Alliance Author Page: http://aspalliance.com/author.aspx?uId=44260


"AirDuster101" wrote:

Hi,

I am trying to publish my custom asp.net app to a virtual directory setup
under the our Sharepoint Server site. When I try to run the url.
https://fy.portal/prupdatewizard. then I got this error.


Server Error in '/PRUpdateWizard' 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.Web.HttpRequest.get_PhysicalPath() +48
PRUpdateWizard.Global.Application_BeginRequest(Object sender, EventArgs
e) +23

System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +64

Please help!

Thanks
AD


.



Relevant Pages

  • Re: Exchange OWA 2003 "Server Error in /OWAAdmin Application"
    ... Exception Details: System.UnauthorizedAccessException: Access to the path ... granting access rights to the resource to the ASP.NET request identity. ... exception can be identified using the exception stack trace below. ... context) +85 ...
    (microsoft.public.exchange.admin)
  • Re: IE6 link problem
    ... > Object reference not set to an instance of an object. ... > current web request. ... > Exception Details: System.NullReferenceException: Object reference not set ... > be identified using the exception stack trace below. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Server Error in /Backup Application
    ... Please review the stack trace for more information about ... Exception Details: System.UnauthorizedAccessException: Access to the path ... granting access rights to the resource to the ASP.NET request identity. ... System.Web.HttpRuntime.PreloadAssembliesFromBin(HttpContext context) +176 ...
    (microsoft.public.windows.server.sbs)
  • Re: How to solve it ?
    ... :>> current web request. ... :>> Exception Details: System.UnauthorizedAccessException: Access is ... :>> exception can be identified using the exception stack trace below. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Sessions timing out quickly despite very high timeout set in web.config
    ... Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. ... and location of the exception can be identified using the exception stack trace below. ... When reviewing the code from the trace, it always is something that references something in the Session, and my ...
    (microsoft.public.dotnet.framework.aspnet)