Virtual Machine Requires CppCodeProvider And VJSharpCodeProvider?
Feb 1, 2011
I've been dealing remotely with a weird situation with a Windows Server 2003 virtual machine that's running a ASP.NET 3.5 website... Or, at least is trying to run it.
The website was installed using the standard installer for the project, which has been used to install at several different locations. However, this one is behaving differently.
The website fails when it runs. In the Event Viewer, the following error is reported:
Exception information: Exception type: HttpException Exception message: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
The error is reported on the website as:
Exception Details: System.IO.FileNotFoundException: The specified module could not be found.(Exception from HRESULT: 0x8007007E)
Running the fusion log viewer, I can see that ASP.NET is attempting to load the following assemblies:
CppCodeProvider, Version=8.0.0.0,
Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a
VJSharpCodeProvider, Version=2.0.0.0,
Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a
First off, there is no reason why ASP.NET should be loading these assemblies. I can't find anywhere in machine.config or any other config where these assemblies are listed as required. We tried installing the 3.5 SDK, but neither was installed. I've only got version 10 of the CPPCodeProvider on my development machine.
What the heck is going on here??
NB: don't do a cursory google search and answer. Nothing I found applies. And if anybody answers
"Define DEBUG constant" and "Define TRACE constant"
View 1 Replies
Similar Messages:
May 26, 2010
We just upgraded from VS 2008 to VS 2010 and on compiling I am getting the following error:
[Code]....
Any idea what it means? It does not say what project has the problem. We do have a library built using J# in the solution.
View 6 Replies
Jun 3, 2010
so i have a code which gets me the ip address of a machine i am wroking on.
so if my gui is published on the server and i access it from my local machine it gives me tha address of my local machine and when i access the gui from the server itself it gives me the server address.. which is fine.
But when i put the gui on a VM server and run it from a VM server itself i dont get the ip address. this works fine if i access it from another machine but does not work only when accesing gui on VM server..
[code]....
View 1 Replies
Nov 23, 2010
Microsoft recommends testing older versions of IE with the following virtual machinesThis is all fine and good, except that the virtual machines can't see the Dev Server from Visual Studio. This makes it very difficult to develop or debug since I have to copy or deploy to IIS for every little change I make. I've tried using ARR, but it seems it can only forward to one specific port at a time, whereas i need to have the port typed in the address bar of the virtual machine to match the port that it is connecting to on the host machine. Is this possible?
View 3 Replies
May 4, 2010
I have a Windows 7 machine hosting a Windows 7 virtual machine. I am developing a web application using visual studio 2010 on my host machine. I want to run the application in debug mode and access my localhost server from a browser on the virtual machine. (The purpose of this is to be able to debug an application that uses Windows Authentication using different users without having to log off and on for different users on my host machine...)
I am using a bridged connection for the virtual machine. I googled how to solve this problem and most of the threads that I found said that if I was using a bridged connection, I could access the server on the host machine by just entering the IP address of my host machine into the url in the browser of the virtual machine. I have tried some different urls using the IP but none of them have worked.
As an example, suppose I run my web application in visual studio on my host machine and its url is
http://localhost:62789/MyPage.aspx
Assume also that I ran ipconfig in CommandPrompt on my host machine and found out that the IP address for my host machine is xxx.xxx.xxx.x. What url should I enter on the virtual machine to access my web application?
EDIT:
I set up IIS to host the web project. After that, I just added the following line (xxx.xxx.xxx.xxx is my IP) to my hosts file and I was able to access the website from the virtual machine:
xxx.xxx.xxx.xxx MyWebsite.net
I also had to edit my firewall settings.
View 2 Replies
Jan 10, 2011
I am able to create Virtual Directory on local machine, but I want to create it on a remote machine.
View 2 Replies
Dec 22, 2010
I have a project that must illustrate that connection to the database is not locally, so I have install VirtualBox and I intend to install SQL Server on it. So any one have the idea of how can I connect from the Host Machine to the SQL Server located on the Virtual Machine
View 3 Replies
Jul 14, 2010
I am trying to access a wcf service hosted on a server running on a virtual machine on a windows 2008 R2 hyperv. When i access this service when running my asp.net website through code everything works fine how ever when i deploy the application on the local IIS , in the deployed mode i am getting an securityaccessdeined exception. My Asp.net app is running on a IIS server on another virtual machine. The stack trace is as given below :
Environment Info: My asp.net app has built on .NET 4.0 framework using VS2010. My WCF services are based on .NET2.0 framework.
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 14-07-2010 13:56:54
Event time (UTC): 14-07-2010 08:26:54
Event ID: dd1986e7e7dc4473beb908754c75a580
Event sequence: 4
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1/ROOT/StratosTest-1-129235696025728041
Trust level: Full
Application Virtual Path: /StratosTest
Application Path: C:inetpubwwwrootStratosTest
Machine name: MC-NEWCODE
Process information:
Process ID: 1752
Process name: w3wp.exe
Account name: IIS APPPOOLASP.NET v4.0 Classic
Exception information:
Exception type: SecurityAccessDeniedException
Exception message: Access is denied.
Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at VMMService.IVirtualMachineManagementService.GetAllVirtualMachines()
at Default2.Page_Load(Object sender, EventArgs e)
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Request information:
Request URL: http://localhost/StratosTest/Dashboard.aspx
Request path: /StratosTest/Dashboard.aspx
User host address: ::1
User:
Is authenticated: False
Authentication Type:
Thread account name: IIS APPPOOLASP.NET v4.0 Classic
Thread information:
Thread ID: 4
Thread account name: IIS APPPOOLASP.NET v4.0 Classic
Is impersonating: False
Stack trace: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at VMMService.IVirtualMachineManagementService.GetAllVirtualMachines()
at Default2.Page_Load(Object sender, EventArgs e)
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Custom event details:
View 1 Replies
Jan 26, 2010
Quick question. When updating aspx.cs files on a virtual dedicated server does it require a restart of the virtual server for the changes to take effect?
View 5 Replies
Mar 24, 2010
1. ASP.Net WEB server.
2. I have PC, on which file to copy to device is located, with Active Sync installed and IE running which has a page in that IE has rendered by server #1.
3. I have a DEVICE connected to desktop #2 via AS.
I would like to copy file from a local machine to the device which is connected to this machine. My application is located in a webserver.
View 5 Replies
Sep 22, 2010
On one of my pages I display a datetime (from a database) and it is formatted correctly as a UK date time (dd-mm-yyyy) on my local machine. However when I deploy it to a server it reverts to American format (mm-dd-yyyy). Does anyone have any idea of when this might be happening?This might be outside the scope of stackoverflow
View 3 Replies
Mar 17, 2010
I basically want to transfer a file from the client to the file storage server without actual login to the server so that the client cannot access the storage location on the server directly. I can do this only if i manually login to the storage server through windows login. I dont want to do that. This is a Web-Based Application.
protected void Button1_Click(object sender, EventArgs e)
{
filePath = FileUpload1.FileName;
try
{
WebClient client = new WebClient();
NetworkCredential nc = new NetworkCredential(uName, password);
Uri addy = new Uri("\\192.168.1.3\upload\");
[code]...
View 2 Replies
Jul 1, 2010
I have had a real nightmare with Server.MapPath(). When I call Server.MapPath("~") in my application that is running in ASP.NET Development Server it returns root directory that ends in a back slash like f:projectsapp1, but I call it in published version, installed in IIS, it returns root directory without any back slash like c:inetpubwwwrootapp1.
string mainRoot = HttpContext.Current.Server.MapPath("~");
DirectoryInfo di = new DirectoryInfo(mainRoot);
//added to solve this problem with Server.MapPath
if (!mainRoot.EndsWith(@""))
mainRoot += @"";
FileInfo[] files = di.GetFiles("*.aspx");
foreach (FileInfo item in files)
{
string path = item.FullName.Replace(mainRoot, "~/").Replace(@"", "/");
//do more here
}
View 1 Replies
Apr 21, 2010
ASP.Net Page layout is not displaying properly in QA machine but is displaying correctly in Dev Machine. What could be the issue? We are using ASP.Net 2.0
View 1 Replies
May 1, 2010
I have an ASP.NET app that was compiled on a 32-bit machine. There are many different assemblies that are referenced. I opened the web site's main dll with ILDASM and looked at the .corflags. It stated it was ILONLY. However, when I run the web site locally on the 64-bit machine (Windows XP Pro 64-bit), I get "is not a valid Win32 applciation". Shouldn't the app run as 64-bit since it was compiled with "AnyCPU"? How can I get this to work? I am using .NET 3.5. I want the app to run as 64-bit, not 32-bit.
View 1 Replies
Apr 23, 2010
I am using 'TextBoxWatermarkExtender'.code compiles fine but when i run the application, i get the following js error :
"AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the ToolkitScriptManager in AjaxControlToolkit.dll."
I have installed all necessary things, am i missing something.
View 2 Replies
Mar 12, 2010
I have an application, which requires a user login.The customer I have does not want the session to time out.I have set the webconfig timeout to 160000 to prevent this but I still get an error when the time passes 20 minutes because I use session objects.Can I automatically refresh the browser every 10 minutes if it is not used, so the user can always use the application again after e.g. 3 hours?
View 6 Replies
Jan 11, 2010
I was trying to avoid ViewState in one of my forms, so I thought I could store the selected item as a session variable.
However, I realized that SelectedIndexChanged does not fire on a drop-down's autopostback unless I have ViewState enabled. Am I missing something here?
View 3 Replies
Mar 2, 2011
I have created a simple ASP.Net page to create self printable tickets so non-technical people can change the text and layout of a ticket. Obviously the user has to be logged in to be able to print their tickets.
When providing the URL for wkhtmltopdf to convert, the tickets are not created because wkhtmltopdf does not have a session to prove the user is logged in.
Is it possible to pass the session to wkhtmltopdf in the URL, or is their a better solution?
View 1 Replies
Nov 25, 2010
I have the following code which seems to work OK except for a minor problem.When the user first visits the page the correct phone number appears but on the second visit - if they should see a different number, they need to load the page twice before the number changes to the new one.'m not too sure how to explain this best so if you need more info please do ask.
Public freeCallNumber As String
Private Function getFreeCallNumber(ByVal value As String) As String
Select Case value
Case "EZ12"
Return "0800 11 22 333"
[code]...
View 1 Replies
Mar 30, 2011
I implemented a simple autocomplete method using AJAX Autocomplete Extender through this video:http://www.asp.net/ajax/videos/how-do-i-use-the-aspnet-ajax-autocomplete-controlI am pulling from the web service for my data. Nothing major...But when I am running the application .NET is throwing me this error: Microsoft JScript runtime error: AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the ToolkitScriptManager in AjaxControlToolkit.dll.This is my code for the textbox that implements extender:
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
<Services>
<asp:ServiceReference Path="~/WebService1.asmx" />
</Services>
[code]...
View 1 Replies
Jan 11, 2010
I am building a page which has to search an access table with the text input entered by the user. The thing that is puzzling to me is that the functionality works only when a '%' is explicitly added to the text input at the begginning and end.
If I add '%' programattically in the code behind file, it does not work.
code snippet ( asp page):
<asp:AccessDataSource ID="AccessDataSourcex" runat="server"
DataFile="~/App_Data/company.mdb"
SelectCommand="SELECT [ID], [emp name] AS emp_name, [emp title] AS emp_title FROM [EmpMain] WHERE ([emp name] like [code]...
//the below line is of no use, the % char has to be in the text input
//txtSearch.Text = "%" + txtSearch.Text + "%";
GridView1.DataBind(); <---- this works fine
<--- this does not work, even if I add % chars programatically..
My question is: why does it not work when I programattically add the '%' chars to the search string..
View 3 Replies
Apr 8, 2010
trying to get the latest version of ACT I have (3.0.31106) working with a VS 2010 website, targetting .Net 4.0.
I have researched this and can't find a definitive answer.
I was using the AutoComplete Extender with no problems in VS2008 (ACT version 3.0.30512.1).
In creating this new VS2010 website I thought I ought to also check and get the latest version of the ACT.
Now, when running the new website I get the error other people get,
AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the AjaxScriptManager in System.Web.Ajax.dll, or use the ToolkitScriptManager in AjaxControlToolkit.dll.
What is the best approach here? I don't see the point ofusing the ToolkitScriptManager when the website already has the regular v4.0 ScriptManager.
I seem to have resolved this - fingers crossed - by downloading source version 49157 and then opening the .Net4 soultion file and building in VS2010. Then I got the AjaxControlToolkit.dll file from this project for use in my new website. This works fine now (for the autocomplete extender, at least).
View 5 Replies
Aug 2, 2010
So, I have web apps with web.configs like so:
<authorization>
<deny users="?"/>
</authorization>
<location path="SomeUnsecuredPage.aspx">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
In other words, most pages require authentication and authorization, but some don't.
Then I have an IHttpModule that will be used by all the different applications. All I want to do is check if the current request is "secured" at all. If the page doesn't require authorization I don't want my IHttpModule to do anything at all. I am using FormsAuthentication and I assume that FormsAuthentication already has all of this information cached somewhere, doesn't it? Also, since this check will be running constantly so it has to be very quick.
I am currently subscribing to the HttpApplication.AuthorizeRequest, but surprisingly this event fires even for resources that allow anonymous access.
View 4 Replies
May 7, 2015
ExecuteScalar requires an open and available Connection. The connection's current state is closed.
namespace ITS_Group{ public partial class Login : System.Web.UI.Page {
private DataTable GetData(SqlCommand cmd) {
DataTable dt = new DataTable();
String strConnString = System.Configuration.ConfigurationManager.ConnectionStrings[1].ConnectionString;
SqlConnection con = new SqlConnection(strConnString);
[CODE]..
View 1 Replies