.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

GetCompiledPageInstance Issue on shared hosting

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :ASP.Net

Hi all,

I was wondering if anyone could help me with this problem I am having.

I am using friendly URLs in my .net 3.5 website, and this uses the GetCompiledPageInstance method in the PageParser class to work.

This all works a treat on my localhost, but as soon as I upload this to my shared hosting (with 1&1) I get this error

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

I have done loads of Googling and found that this is due to me needing to turn Full Trust mode on. However, this is something that is not allowed on shared hosting.

Does any one know of a workaround for this 'GetCompiledPageInstance' method, or another method I could use? Is there another way of doing Friendly URLs without this?


View Complete Post

More Related Resource Links

Word Automation Issue in Windows Server 2008 Hosting



The problem I am posting here is that I was facing nearly 2 weeks around. Any body comes with this stuff please help.

Word Automation in sample ASP.NET(C#) application.

I am using Microsoft.Office.Inetrop.Word Assembly for automation. Here I am reading a XXX.dot template file and fill the contents with dynamic data.

When i am executing my code in localhost:someportnumber the automation is working fine and I could get expected result and when I am hosting in my inetmgr(Windows XP is my OS) it is also working fine.

But the problem is that when I am hosting in my production server(Windows Server 2008 Standard Edition) I am not able to perform automation and results in the following error.

Data: System.Collections.ListDictionaryInternal
Message: Word has encountered a problem.
Source: Microsoft Word

The code gets failed in the following line:

ApplicationClass wordApp = new Microsoft.Office.Interop.Word.ApplicationClass();

Document wordDoc = wordApp.Documents.Add(ref oTemplate, ref oFalse, ref oMissing, ref oMissing); // Error in this line

I cannot able to proceed further. Can anybody please help me in solving this issue?

Thank you.

With Regards,


online shared hosting sql server problem

 hi all             how to solve the problem in online sql server. A transport-level error has occurred when sending the request to the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)thank u

Mysql connector and medium trust shared hosting

Hi at all. I've a big problem with GoDaddy Shared Hosting. I've written an ASP.NET application with MySql Database, but my application can't run, with the "Security Exception" error. The problem is that mysql connector must be recompiled with some .... different option. But i can't recompile.. i got always error. So i'm asking you if someone have a link for a mysql connector version able to run in medium trust environment.Very Thanks in advance.Bye

MVC2 Could not load file or assembly 'xxxx.Models' shared hosting

Hello,I have an mvc2 site that runs fine locally but when i deploy it to my shared hosting account i keep getting this error.Could not load file or assembly 'AppMVC2.Models, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.I have run Reflector againts the dll to see what dependencies the dll has, I then took each one of the dependant dlls and set them to copy local in the project and deployed them all to the shared hosting account even ones that should be on the server like System.Web. except for mscorlib.dll, but i still get the error.I have also tried to bin deploy and deploy the code files and get the same error.I have seen people write about fusion log but i don't see any examples on how to get this running on shared hosting.Just wondering does anyone else have any recommendations on how to track down the source of this problem?

GoDaddy Hosting Issue

I am very new to this... I created a very simple website using a .master file and I have the navigation linked to my sitemap (all through Microsoft Expression Web). When I open the site through the development server everything works OK, but when I look at the live website on Godaddy, the sitemap path (bread crumbs) do not show up on any pages that are indented beyond the root. www.team300.com This is my sitemap<?xml version="1.0" encoding="utf-8" ?> <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" > <siteMapNode url="Default.aspx" title="Home" description="Team300"> <siteMapNode url="About.aspx" title="About Us" description="About Us" /> <siteMapNode url="Listings.aspx" title="Real Estate Listings" description="Listings" /> <siteMapNode url="\Services.aspx" title="Services" description="Contact Us" > <siteMapNode url="\Buyers.aspx" title="Buyers" description="Contact Us" /> <siteMapNode url="\Sellers.aspx" title="Sellers" description="Contact Us" /> <siteMapNode url="\Asset_Managers.aspx" title="Asset Managers" description="Contact Us" />

Shared Services Administration Issue

Hi, I have done all the steps in create new SSP, But at the end, When I tried to click on my SSP Name on the left navigations (E.g http://sharpointportal/ssp/admin)  I am not able to get Admin Home page. For me its showing "Page cannot be displayed" I am not sure where it went wrong. please help me for solve this issue.

Shared Services Administration Issue

I successfully configured the central administration sharepoint services and Shared services administration. the url like: http://sharepointportal/ssp/admin. But it is not working. Internet Explorer cannot display the webpage error displayed. please give me the solution for this issue

Shared Data Sources permissions issue


I have created a Shared Data source in my Report Manager, granted my network account all the permissions to the connection. I build my report in Report Builder 2.0 (I have access to the necessary tables and views etc). I save my report to the report server. I can run the report through Report Manager, however, I can't run the report through Report Builder 2.0. I get the error:

The permissions granted to user 'domain\myusername' are insufficient for performing this operation. (rsAccessDenied)

The odd thing is, if I create a report with an embedded data source, I can run it through Report Builder 2.0 until I save it to the server. Then I can only run it on the server (same as the Shared Data source), and not through Report Builder 2.0

Anyone have any ideas?

Email Errors to mailbox in shared hosting environment


Is there a way to email any error message a user recieves to a mailbox.

Basically if the user recieves one of the asp.net error pages is there a way for that message to be emailed to a mailbox for me to look into?

It is on a shared hosting environment.

Any help?

ReportViewer issue after deploying to hosting site


I have a report on my local machine that is running just fine usiing report viewer 10. and VS2010


After copying from local machine to host site I get the below error when I run it.


Line 1:  <%@ page language="VB" autoeventwireup="false" inherits="Reports_YTDExpenses, App_Web_lxq5vdkk" %>
Line 2: 
Line 3:  <%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>
Line 4: 
Line 5:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Linked server access issue when hosting application in IIS



I have two instance of database and connected the other with linked server. When i run the application locally its working fine. It gets valur from linked server tables. After hosting the application in IIS im getting following eror.

The OLE DB provider "SQLNCLI" for linked server "LINK" does not contain the table ""90"."dbo"."table"". The table either does not exist or the current user does not have permissions on that table.


Can anyone specify what user should be mapped to solve this issue?

Report Viewer on a GoDaddy Shared Hosting Account


I contacted GoDaddy and they informed me that their Shared Hosting accounts only allow partial trust and Report viewer requires Full Trust and therefore I cannot use Report Viewer on my website. (nor do they know of any report tool that will work on their site)

I just have a hard time believing that of all the accounts on Godaddy that NO ONE is running any kind reports, I can see some uses for databases with no reporting needed, but not as many as need reporting.


So....Just a quick question, has anyone been succesful with a report tool that will work on GoDaddys shared hosting environment ?





SSRS Webservice issue on the hosting account


 I have couple of reports deployed on a hosting server. When I run my code to generate PDF files using these reports from my local machin it works fine. But when I run the same code on the hosting server I get the following error message. It seems that the service acocunt does not have enough permission in Temp ASP.NET folder on the hosting server. What can be done to resolve this issue?

Error Details:

Server Error in '/' Application. 
The request failed with HTTP status 401: Unauthorized. 
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.Net.WebException: The request failed with HTTP status 401: Unauthorized.

Source Error: 

Line 264:        [return: System.Xml.Serialization.XmlElementAttribute("executionInfo")]
Line 265:        public ExecutionInfo LoadReport(string Report, string HistoryID) {
Line 266:            object[] results = this.Invoke("LoadReport", new object[] {
Line 267:                        Report,
Line 268:                        HistoryID});

Source File: c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\3a1f18d1\6aa08967\App_WebReferences.hy

Data source not found issue in subscribed report (subscribed in ssrs 2005) , with shared data source


Recently we have upgraded from SQL 2005 to SQL 2008. Following is the issue am facing in some reports in SSRS 2008. More details are below. Any solution/ cause for the issue would be of great help.

 1) Reports having issue are the ones which were deployed in SSRS 2005 through SUBSCRIPTION (Listed under My Subscriptions) and now tried to view in SSRS 2008.

2) The reports use a shared data source with name ‘Test Center’

3) After upgrading to 2008 and when we try to open the report data source not found error is thrown. “An error occurred during client rendering. An error has occurred during report processing. The data source ‘Test_Center’ cannot be found". Why does it have ‘_’ added in the data source name !!

4) When we go to the report Properties – Data sources and check the path of the shared data source, the path is correct and the data source do exists in the path.

5) If we go to report Properties – General – Report Definition – select Edit and save the RDL. Immediately select Update and browse the saved RDL and upload. The report works fine. However the data source reference still remains same.

6) Also if we deploy a report fresh referring the same data source, that too runs fine with no issues.

- Thanks & Regards, RaSuHe

How to create Umbraco database on shared hosting.

The article How to create Umbraco database on shared hosting. was added by codenickel on Monday, March 21, 2011.

I had to create Umbraco database on my shared hosting (I am using Winhost at the moment) couple of days ago. After checking few examples on Umbraco forum, I came up with my own quick solution which works like a charm. Here is how I do it, hope it will

IsapiModule Error 500 Issue


I am about exhausted trying to figure out this error:

HTTP Error 500.0 - Internal Server Error

Description: The page cannot be displayed because an internal server error has occurred.

Error Code: 0x8007007b

Notification: ExecuteRequestHandler

Module: IsapiModule

Requested URL: http://localhost:80/ReportServer

Physical Path: c:\Program Files\Microsoft SQL Server\MSSQL.2\Reporting Services\ReportServer

When I enable Failed Request Tracing Rules and view the log output I am supposing that the actual problem is in the 2nd call where there are 2 backslashes before the actual filename in the specified path:


CALL_ISAPI_EXTENSION DllName="C:\Windows\Microsoft.NET\Framework\v2.0.50727\\aspnet_isapi.dll"


Setting the default start page in godaddy hosting?


 How do you set the start page with godaddy hosting? I can see no way of doing this! You do not seem to have access to the IIS settings that allow you to change it!

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend