Compile error on ASP page.

G

Guest

Any tips for trouble shooting errors when the ASPX page won't even compile? What happens is that VS will "build" the code-behind object and the component that it instantiates, but when I navigate to the ASPX page, I get "An error occurred while try to load the string resources (GetModuleHandle failed with error - 2147023888). Then, I get the message about setting "Debug=true" directives. Those settings are in there.

It appears that what is happening is some kind of an error during the behind-the-scenes compilation of the ASPX page itself.

I have also seen an error saying that there wasn't sufficient privilege to access the component that my ASPX page calls.

So, any tips for how to trouble-shoot this and determine where the permissions are failing? I've tried looking at regmon and filemon, to no avail. But then perhaps I just don't know what I should be filtering on. (Aspnet_wp.exe doesn't seem to look anywhere in either the registry or the file system that appears related to my component.)

Thanks!

Lowell
 
D

DalePres

Do these errors occur across your entire site or do you have some pages that
are working? Can you provide details on the errors?

Dale

Lowell said:
Any tips for trouble shooting errors when the ASPX page won't even
compile? What happens is that VS will "build" the code-behind object and
the component that it instantiates, but when I navigate to the ASPX page, I
get "An error occurred while try to load the string resources
(GetModuleHandle failed with error - 2147023888). Then, I get the message
about setting "Debug=true" directives. Those settings are in there.
It appears that what is happening is some kind of an error during the
behind-the-scenes compilation of the ASPX page itself.
I have also seen an error saying that there wasn't sufficient privilege to
access the component that my ASPX page calls.
So, any tips for how to trouble-shoot this and determine where the
permissions are failing? I've tried looking at regmon and filemon, to no
avail. But then perhaps I just don't know what I should be filtering on.
(Aspnet_wp.exe doesn't seem to look anywhere in either the registry or the
file system that appears related to my component.)
 
S

Steven Cheng[MSFT]

Hi Lowell,


Thanks for posting in the community!
From your description, you found some of your ASP.NET web pages failed to
compile and encountered some certain errors saying there there wasn't
sufficient privilege to access the component that my ASPX page calls,yes?
If there is anything I misunderstood, please feel free to let me know.

Based on my experience, since you mentioned that the project and components
are well builed, this problem may be caused by some certain security issues
and is a runtime error. Would you please try the following steps:
1. Does the problem occur in any other generic web projects or just occcur
in the certain one?

2. If just occur in this particular one, does the problem occurs in every
page or just in some certain pages? If so, can you find any commons of
those certain pages with this problem?

3. Since you've also mentioned the "errors saying there there wasn't
sufficient privilege to access the component that my ASPX page calls",
would you please check all the components you've called in those error
pages or in your application? If there is any particular components you've
referenced in the project, you may try remove them(remove the reference or
those certain codes which calls these components) to see whether the
situation will change?

Please check out my suggestions. I think it'll be much better for us to
trouble-shoot if we could isolate the problem within a small scope. Also,
if you have any other ideas or new findings, please feel free to let me
know.


Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
G

Guest

Well, queue the theme from the "Twilight Zone". I tried taking out the references to the component from the ASPX (and code-behind page.) No dice. Not even when I removed the reference to the project. I tried some other pages and while my VB.NET ASPX pages worked, my C# ASPX pages did not

Then, I rebooted (hmm. I guess I hadn't done that in a while) and now my page (reference-less) worked. So, I started adding stuff back in. First, I just added the reference to the project that builds the component in "Solution Explorer". I got an error about finding another component which the component refers to. So, in "Solution Explorer", I went to my component, removed the reference and added it back. Now my page worked again (once I did a "Rebuild Solution" instead of just a "Build Solution"). Then, I added back everything else

I'm now getting an error from deep inside the component, but that's something I can figure out from here

So, it appears that this issue is closed...just a case of the "creeping crud" in memory

----- Steven Cheng[MSFT] wrote: ----

Hi Lowell


Thanks for posting in the community!
From your description, you found some of your ASP.NET web pages failed to
compile and encountered some certain errors saying there there wasn't
sufficient privilege to access the component that my ASPX page calls,yes
If there is anything I misunderstood, please feel free to let me know

Based on my experience, since you mentioned that the project and components
are well builed, this problem may be caused by some certain security issues
and is a runtime error. Would you please try the following steps
1. Does the problem occur in any other generic web projects or just occcur
in the certain one?

2. If just occur in this particular one, does the problem occurs in every
page or just in some certain pages? If so, can you find any commons of
those certain pages with this problem

3. Since you've also mentioned the "errors saying there there wasn't
sufficient privilege to access the component that my ASPX page calls",
would you please check all the components you've called in those error
pages or in your application? If there is any particular components you've
referenced in the project, you may try remove them(remove the reference or
those certain codes which calls these components) to see whether the
situation will change

Please check out my suggestions. I think it'll be much better for us to
trouble-shoot if we could isolate the problem within a small scope. Also,
if you have any other ideas or new findings, please feel free to let me
know.


Regards

Steven Chen
Microsoft Online Suppor

Get Secure! www.microsoft.com/securit
(This posting is provided "AS IS", with no warranties, and confers no
rights.
 
S

Steven Cheng[MSFT]

Hi Lowell,


Thanks for your followup. I'm glad that you've figured out the problem in
this issue. Also, if you need any assitance in the future, please always
feel free to post here.



Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top