Showing posts with label run. Show all posts
Showing posts with label run. Show all posts

Wednesday, March 28, 2012

Atlas works on Dev machine but not on the production server

I get the following error when I try and run Atlas.

Configuration Error

Description:An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message:The system cannot find the file specified. (E:\AtlasTest\web.config line 144)

Source Error:

Line 142: </httpHandlers>Line 143: <httpModules>Line 144: <add name="ScriptModule" type="Microsoft.Web.Services.ScriptModule"/>Line 145: <add name="BridgeModule" type="Microsoft.Web.Services.BridgeModule"/>Line 146: <add name="WebResourceCompression" type="Microsoft.Web.Services.WebResourceCompressionModule"/>


Source File:E:\AtlasTest\web.config Line:144

All of the ATLS DLL's are in the bin directory and I have a couple of home grown components that work fine from the bin directory. The root is marked as an IIS application. The only thing I can think of, is the server is a Windows 2000 server NOT 2003 or XP.

.Net 2.0 runs OK - Will ATLAS run on a Windows 2000 server?

If so any other ideas why I can't get Atlas to run?

Twisted Rider,

That's quite an interesting error - the module concerned is stored inside the Microsoft.Web.Atlas.dll file, are you absolutly sure it's inside the Bin directory on the server?

How have you published the application? Have you used the publish functionality from within VS.NET 2005?

Kind regards,

Phil.


My pages work fine, if there are no atlas components on it, and when I start adding atlas components, it starts showing the following error: Please help, I have tried a lot and unable to solve the issue.

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.Web.AspNetHostingPermission, System, 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.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.] Microsoft.Web.Services.BridgeModule.OnBeginRequestHandler(Object source, EventArgs eventArgs) +0 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64


Looks like the server needs permission to use the System.NET namespace, I don't know much about this - anyone else got any ideas?

Solved this by overwritting web.config file with the following code:

<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<appSettings/>
<connectionStrings>
<add name="InventoryTrackingConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\InventoryTracking.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.

Visual Basic options:
Set strict="true" to disallow all data type conversions
where data loss can occur.
Set explicit="true" to force declaration of all variables.
-->
<httpHandlers>
<add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory, System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
<add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false"/>
</httpHandlers>
<trust level="Full" originUrl=""/>
<compilation debug="true" strict="false" explicit="true">
<buildProviders>
<add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
</buildProviders>
<assemblies>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
<pages>
<namespaces>
<clear/>
<add namespace="System"/>
<add namespace="System.Collections"/>
<add namespace="System.Collections.Specialized"/>
<add namespace="System.Configuration"/>
<add namespace="System.Text"/>
<add namespace="System.Text.RegularExpressions"/>
<add namespace="System.Web"/>
<add namespace="System.Web.Caching"/>
<add namespace="System.Web.SessionState"/>
<add namespace="System.Web.Security"/>
<add namespace="System.Web.Profile"/>
<add namespace="System.Web.UI"/>
<add namespace="System.Web.UI.WebControls"/>
<add namespace="System.Web.UI.WebControls.WebParts"/>
<add namespace="System.Web.UI.HtmlControls"/>
</namespaces>
</pages>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows"/>
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
-->
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm"/>
<error statusCode="404" redirect="FileNotFound.htm"/>
</customErrors>
</system.web>
</configuration>


hello.

if i recall correctly, the problem is that bridges require full control. if you're not using bridges, then remove them from the web.config file an i think that you should be able to run in the "traditional" meddium trust level.


Can you please elaborate on how do we change the trust settings.

Plip:

Twisted Rider,

That's quite an interesting error - the module concerned is stored inside the Microsoft.Web.Atlas.dll file, are you absolutly sure it's inside the Bin directory on the server?

How have you published the application? Have you used the publish functionality from within VS.NET 2005?

Kind regards,

Phil.

Thanks for the response. The "Microsoft.Web.Atlas.dll" is in the "bin" directory, and I used VS2005 to publish the App. Any other ideas?


Found something interesting. I created a simple one button Atlas web page, worked great. But if any of the following assemblies(all seem to belong to MS office) are being used I get the error. The assemblies work fine without Atlas and Atlas works fine without the assemblies. Together they work on the development machine but fail on the server. There must be something wrong with the install/confiuration on the server, any ideas where to start looking?

<addassembly="office, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"/>

<addassembly="VSTOStorageWrapper.Interop, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

<addassembly="Microsoft.VisualStudio.Tools.Applications.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

<addassembly="Microsoft.Office.Tools.Excel, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

<addassembly="Microsoft.Office.Tools.Outlook, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

<addassembly="Microsoft.Office.Interop.Excel, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"/>

<addassembly="Microsoft.Office.Tools.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

<addassembly="Microsoft.Office.Interop.Outlook, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"/>

<addassembly="Microsoft.Vbe.Interop, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"/>

<addassembly="Microsoft.VisualStudio.OfficeTools.Controls.ManagedWrapper, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

<addassembly="Microsoft.Office.Interop.SmartTag, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"/>

Server Error in '/' Application.

Configuration Error

Description:An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message:Could not load file or assembly 'office, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified. (E:\OpRpts\web.config line 69) (E:\OpRpts\web.config line 110)

Source Error:

Line 108:</httpHandlers>Line 109:<httpModules>Line 110:<add name="BridgeModule" type="Microsoft.Web.Services.BridgeModule"/>Line 111:<add name="ScriptModule" type="Microsoft.Web.Services.ScriptModule"/>Line 112:<add name="WebResourceCompression" type="Microsoft.Web.Services.WebResourceCompressionModule"/>


Source File:E:\OpRpts\web.config Line:110


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


Figured part of it out. The office assemblies were not in the GAC. Added them to the bin directory as a test and the Atlas started loading ok. Still can't figure out why everything worked without Atlas, guess I'll just check it off to ghosts in the machine.

Just the same also here. Turned both options ON and it start working...In my experimenting it had a for a while a message about the security error, but it sure cannot be...

Saturday, March 24, 2012

Atlas to Ajax Migration issues

We began proting our application yesterday. Many things are different. In the long run, I think these are better bits. It the short run, the beta 1 seems alot less stable than the last release.

For example, We are getting this error message sproradically. Sys.WebForms.PageRequestManager

We also have some Custom Compiled Controls that used to work very well in the update panels, however, now they do not partial render, and sometimes, they redirect to no where, when watching through fiddler.

Are there any tricks in the new beta 1 for using Custome Compiled Controls with in an UPdate Pannel?

We have the simple code:

<asp:ScriptManagerID="ScriptManager1"runat="server"EnablePartialRendering="true"/>

<asp:UpdatePanelID="updPnlAddress"runat="server"RenderMode="Block"UpdateMode="Conditional">

<ContentTemplate>

<cc1:StoreFrontAddressControlID="StoreFrontAddressControl1"runat="server"/>

</ContentTemplate>

</asp:UpdatePanel>

Nothing is on the code begind. The control has a LinkButton on it, which changes the Labels to TextBoxes for editing. When the link is clicked the page actually refreshes.

Here is the request from fiddler

__EVENTTARGET=ctl11&__EVENTARGUMENT=&__VIEWSTATE=%2FwEPDwUJLTM4Njk1MDQ0D2QWAgIDD2QWAgIDD2QWAmYPZBYCAgEPZBYUZg8PFgIeBFRleHQFC01hcmlhIE5vdmFrZGQCAQ8PFgIfAAUPUmUvTWF4IFN1YnVyYmFuZGQCAg8PFgIfAAUUMjMxMSBXLiBTY2hhdWJ1cmcgUmRkZAIDDw8WAh8AZWRkAgQPDxYCHwAFFVNjaGF1bWJ1cmcsIElMLCA2MDE5NGRkAgUPDxYCHwAFDVVuaXRlZCBTdGF0ZXNkZAIGDw8WAh8ABQ4oODQ3KSAyMzAtNzMxOWRkAgcPDxYCHwAFEG1hcnJlbWF4QGFPTC5DT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ION=%2FwEWAgLkx9L4AQKiwPWxAlOkw%2Bolr0%2Bkb8bS%2FkBjgOOKf3pS

The response is the full page, and not the partial secion.

All help is appreciated.

hello.

yes, there are a lot of new things here. i'm not sure on what's the error you're getting, but i'm assuming that it says something like: can't parse the msg? if that is the case, then you're probably using response.write somewhere? this is not a good thing to do in an ajax page. btw, if you search this forum, you'll find several posts about it (maybe one will help you).

regarding the updatepanel, there are some posts about it here:

http://forums.asp.net/thread/1440058.aspx

http://forums.asp.net/thread/1445844.aspx


Yes. I finally ran across these posts. A developer on another project turned trace on. With the nice inherrited configs, our app turned trace on. We are all set.

However, the custom control does not work. I need to figure this out. I will post the solution.

We have also run into some wierd inconsitancies with the page model. We have had to move some code behind logic out of PreRender and into load. So far its been, Dynamic populate and ratings control affected.

Geoff


hello.

sorry, but i'm not a toolkit control user yet so i think i won't be able to help you with those controls.

Atlas to Ajax Control Toolkit

I have been reading the posts for Cascading Drop Down Lists for quite a few days now and trying to run the sample. However when I try to do the sample on my own I donot see the cascading drop down properties in the Behavior group of the Drop Down list. The video talks about some properties whereas the article of how to do it talks different.

Utterly confused. Also after copying the solution I can see a Method Error 500 which is not documented either. Any help would be appreciated.

Regards

Vinit

I believe the video and article (although not aware of the article - which is a gripe of mine - I hate the video tutorials as I do not watch them (not enough bandwidth and attention span - prefer just the copy and paste from articles method myself)... are based ON atlas and not the new Beta...

I have everything installed as per your directions. However I am unable to run the methods and everything seems to have changed. Not sure but after changing some namespaces I started getting the Method Error 500 and Method Error 12030. I can populate the Make drop down using the Page Method Webservice method but the other drop downs are not getting populated.

Moreover I found some post for adding the ScriptService attribute to the class which i did too but does not work :-(

Help appreciated


This usually means one of the following;

* Your method is not accessible (it's not public, it's not marked with ScriptService (class) or ScriptMethod(method))

* You've got the name of the service path wrong

* You've got the method name wrong

* The method name doesn't have the exact same parameters and parameter naming that the component is expecting


I'm having this problem, getting the Method Error 500. I have ScriptService and ScriptMethod in the proper places, my parameter names are correct, and I am calling the correct method name. Everything runs fine on my development machine, but when I copy the files over to my server it doesn't work. Is there something I should have on the server? I am reading a database using a dataset's table adapter. I have tried everything I've read on the posts. I've even tried just passing back bogus data from the method and not even reading the database, but I still get the same thing.

I did put the sample from the How do I series for the CDD and it worked fine. So why can't I even get to the web service if I can with the sample? I don't recall doing anything differently.

Please Help!


These all happen due to 500 or 12030 or both, please elaborate

I have given the physical path to my web service like this

<ajaxToolkit:CascadingDropDownID="CascadingDropDown1"

runat="server"

TargetControlID="ddlMake"

Category="Make"

PromptText="Select a manufacturer"

ServicePath="../WebSite6/Service.asmx"

ServiceMethod="GetCarMakes">

</ajaxToolkit:CascadingDropDown>

See the service path tag - Am i to give the name of the web service only? cause when i give the name, it says file not found (but it doesn't stop debugging & continue loading the project) - In this case, the error is 500 (when no physical address is given, only web service name)

Other wise when i give the physical path, it gives error 12030?

Can this ever work???????????????

Wednesday, March 21, 2012

Atlas running on Microsoft Windows 2000 Server

Hi,

I'm trying to run a webpage with atlas on a W2000 Server.

When I run my webpage with VStudio 2005 (in the iis of Vs2005 of development) it runs correctly, but when y publish it to my W2000 Server, It saids that 'Sys' isn't defined.

I'd installed ASP.NET AJAX 1.0 Beta 2 and ASP.NET 2.0 AJAX Futures November CTP in my develop computer with win xp, and in the server with W2000 Server.

How can I do to run this webpage correctly in the server?

This webpage is very simple. I only am using an UpdatePanel to do a little form without refreshing the navigator.

Thanks.

Best Regards.

hello.that error means that you're not getting the embedded files from the ajax extensions dll. several issues can cause that. verify that your web app os configured to run ASP.NET 2.0, that you've installed AJAX extensions in the server and that the webresource.axd requests aren't being blocked by sogtware on the server,

Hello Luis, I'd like to question you...

AJAX extensions runs correctly if the Server is Windows 2000 Server?

How can I config the webresource.axd request's? I don't know if it is blocked or notConfused How can I look it?

And I have an other problem. I'd like to use Ajax.net in my hosting. In this hosting I can't Install the Extensions. In this case, Couldn't I use ajax.net (atlas)?

Thanks Luis.

Best Regards.


hello.

1. i haven't tried it but i've read a thread in this forum where a MS team member said that it was supported

2. to get webresource.axd you must install asp.net 2.0 on the server. you should also check the to see if that extensions is not blocked in your server by any 3rd party software you might be using

3. you can put the ajax dll on the server but you must also garantee that you'll be running yuor web app at full trus. if your host installs ajax extension, then you don't need to worry about anything.

ATLAS RC and AJAX 1.0

Hi

If I were to install the new full version of AJAX on my server, would applications that depend on the old release candidate still run okay, or would the install remove the older version?

Many thanks

Darren

There have been lots of changes since atlas. Its like that it wont run but it also depends on what methods or properties u are using.

I would suggest keep your old DLL's in the Bin folder of your old applications and add the ajax 1.0 DLL for your newer applications. This way each application uses its own version of Ajax DLL's.

Dont forget to uninstall Atlas on the server because your application will pick up the DLL's from the GAC rather than the Bin folder.


In the end I just updated everything and published - no problems encountered :)

Sorry for the late reply, I didn't think anybody had replied... but that's because I didn't have e-mail notifications on!

Doh!

Regards


Darren

Atlas project from CDROM

I have developed an application using Atlas and ASP.NET Tree control loading data from an XML file.

Can anyone tell me if there is a solution to run this application from a CD with a web server (Cassini web server) packaged in the CD itself.

Many thanks in advance for any kind of help

hello.

well, you can do that. you just have to assure that cassini is running on a predetermined port (which you can set when you start it up) and then you must open a browser and load the initial page. this will only work for requests made on the same machine where the cassini web server is running (ie, localhost).